RE: linux question
Date: Tue, 24 Mar 2009 19:15:37 -0400
Message-ID: <6AFC12B9BFCDEA45B7274C534738067F14010591_at_AAPQMAILBX02V.proque.st>
If you want to remove just the quotes, you could do: vi your_file.txt
and in vi, do:
:s/"//g
That's colon,s,forward-slash,double-quote,forward-slash,forward-slash,g
Then, if it looks ok, to save the changes:
:wq
And there are probably a million other ways to do it, between, sed, awk, perl, emacs, etc,etc,etc.....
If you're unfamiliar/uncomfortable w/ vi, two other thoughts:
1.) Make a backup of the file before you begin. Do: cp your_file.txt your_file.txt.backup
2.) If you're in vi, and you do NOT want to save changes, instead of doing ':wq', do this:
:q!
Hope that helps,
-Mark
From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Eugene Pipko
Sent: Tuesday, March 24, 2009 7:08 PM
To: 'oracle-l'
Subject: linux question
Hi all,
I have a file that I am moving from Windows to the Linux box.
The file looks like:
"1,2,3,....." "1,2,3,....." So, every like is in double quotes.
How can I open the file and remove them (quotes) using Linux command? Is it easier to do it on Windows via some batch file?
Thanks,
Eugene Pipko
P Please consider the environment before printing this e-mail.
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Mar 24 2009 - 18:15:37 CDT