![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | 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. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Combining information from a comma delimited file | vzismann | UNIX for Dummies Questions & Answers | 1 | 08-06-2007 06:20 PM |
| Parsing comma delimited text file | chengwei | Shell Programming and Scripting | 5 | 02-23-2007 05:38 AM |
| Loading a comma Delimited file into an Array | grandtheftander | UNIX for Dummies Questions & Answers | 2 | 07-26-2006 01:19 PM |
| Converting Tab delimited file to Comma delimited file in Unix | charan81 | Shell Programming and Scripting | 22 | 01-20-2006 09:24 AM |
| Comma Delimited file | dbrundrett | Shell Programming and Scripting | 2 | 04-05-2004 10:50 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How do you delete multiple text from a comma delimited file
I would like to know code that will delete multiple text from a comma delimited file. For example, how would the comma delimited file below delete the word 'PEST' in Perl language (previously an excel file that was converted to a csv and the last column was PEST):
1, 2,43,34, bosx,PEST 1, 2,53,24, boax,PEST 1, 2,63,14, bovx,PEST 1, 2,73,44, boxb,PEST 1, 2,93,54, boxb,PEST Please help me the best way you can, I greatly appreciate it ![]() |
|
||||
|
You can achieve this as follows (Assuming content will be in file 'file1')
sed 's/PEST//' file1 |
| Sponsored Links | ||
|
|