![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| text file editing | injeti | Shell Programming and Scripting | 26 | 06-04-2008 11:11 AM |
| Building Full-Text Search Applications with Oracle Text | iBot | Oracle Updates (RSS) | 0 | 04-06-2008 05:10 AM |
| Text editing on iPhone using ed | drewcifer | UNIX for Dummies Questions & Answers | 1 | 03-05-2008 07:15 PM |
| Cons: Configuration is done by editing the text-based config file ... - Techworld.com | iBot | UNIX and Linux RSS News | 0 | 10-09-2007 09:10 AM |
| grep multiple text files in folder into 1 text file? | coppertone | UNIX for Dummies Questions & Answers | 7 | 08-23-2002 02:50 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
Quote:
Since you are new to these forums, I would recommend you to read the RULES we practice here: (9) Edit your posts if you see spelling or grammar errors (don't write in cyberchat or cyberpunk style). English only. Regards, Tayyab |
|
||||
|
uniq wont work coz it only removes the repeated line if they come one after the other
if the file is like the following ab hjk jl as ab it wont work. i know its not the ans u want, but i am working on it. |
|
||||
|
there is some minor defect with this code. i think the logic is ok. someone plz try n debug it. i am doing it in a hurry n hv to go now.
#!/bin/awk -f~ cat bc|while read line do x=`wc -l bc|awk '{print $1}'` for ( k=( NR + 1 ) ; k<=x ; k++ ) { if /$line/ then sed 'k d' bc fi } done error: awk: syntax error near line 2 awk: bailing out near line 2 |
| Sponsored Links | ||
|
|