I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file.
For eg.If input file name is abcd.csv and contents is :
Akashtcs you can even use a unix machine to remove double quotes, first transferring ur file to unix machine then applying above SED command. Then FTP ur csv files to windows machine. Once i needed to substitute "/" with "\\" as windows accept "\\" instead of "/" in property files and i used this method
No dont have perl in the system,
Also cant do it by transferring the file to unix and doing it...
There must be something simple in windows to read file line by line and replace a character.
Perl or SED for windows could really be great, i didnt know SED was available for windows.
You can also use an editor too, I could substitute doubles quotes with space in Notepad++ after opening .csv file with this editor.
I cannot download anything as it is a server and I dont have the permission.
Also I have to use a batch file only to do this task and not anything else.
---------- Post updated at 04:37 AM ---------- Previous update was at 04:34 AM ----------
Anybody has an idea what is the windows equivalent command of SED?
Hi again,
there is really no good way of doing what You want (search/replace in text files) in simple cmd.exe. You may want to have a look at other scripting methods (ie vbs or some power tools) or just download a good program that does it for You.