![]() |
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 |
| deleting specific lines from all files in a directory | vrms | UNIX for Dummies Questions & Answers | 3 | 04-25-2008 11:08 AM |
| deleting lines from multiple text files | vrms | Shell Programming and Scripting | 3 | 04-25-2008 11:01 AM |
| deleting a varying amount of lines from a list of files | benair | Shell Programming and Scripting | 4 | 04-14-2006 01:48 PM |
| deleting lines | ajnabi | Shell Programming and Scripting | 8 | 05-02-2003 11:50 AM |
| deleting lines | supercbw | High Level Programming | 1 | 05-06-2002 12:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Deleting Lines from .CSV Files
I have written an script which will excluded some records from .csv file and put it on another excluded file from primary file.This is working very fine.Now the problem is that I want to delete those excluded lines from Primary file but not able to delete it.
I have stored the line number in lname variable. lname=`awk -F, '($14 >=8 ) || ($19 > 3 ){print NR, $14 , $19 }' $csvfile | grep -i [a-z][A-Z] | cut -d " " -f1` The current output of lname is echo $lname 7 88 91 94 97 100 103 106 I have heard it somehow possible to delete those lines with sed command but I am not aware how to . Can Anybody help me .This is very urgent............??? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|