|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Delete " in my file
Hi, all I need to do is delete " from my file. Normally I would open this file and just delete it using the replace function but this file is massive and crashes my computer every time I open it. So an example of my file looks like this (tab separated) Code:
"joe" "jack" "bob" and I want it to look like this Code:
joe jack bob Thanks |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Code:
sed -e 's/\"//g' filename > newfile or for inline editing: Code:
sed -i -e 's/\"//g' filename |
| The Following User Says Thank You to brianjb For This Useful Post: | ||
phil_heath (05-09-2012) | ||
| Sponsored Links | ||
|
|
#3
|
||||
|
||||
|
what about the tr command
Code:
tr -d '"' should delete the " character |
| The Following 2 Users Say Thank You to joeyg For This Useful Post: | ||
methyl (05-09-2012), phil_heath (05-09-2012) | ||
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need unix commands to delete records from one file if the same record present in another file... | msathees | Shell Programming and Scripting | 6 | 05-08-2012 12:46 AM |
| Delete a pattern present in file 2 from file 1 if found in file 1. | machomaddy | Shell Programming and Scripting | 5 | 02-26-2012 09:41 PM |
| Before I delete any file in Unix, How can I check no open file handle is pointing to that file? | kchinnam | Solaris | 12 | 10-06-2010 02:30 PM |
| How to delete a string pattern in a file and write back to the same file | mwrg | Shell Programming and Scripting | 1 | 11-18-2009 05:30 AM |
| Delete block of text in one file based on list in another file | Festus Hagen | Shell Programming and Scripting | 3 | 09-03-2009 11:07 PM |
|
|