![]() |
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 multiple lines from file | shekhar_v4 | Shell Programming and Scripting | 9 | 03-16-2009 08:38 AM |
| deleting lines after pattern using sed | larne | Shell Programming and Scripting | 2 | 10-13-2008 12:54 PM |
| Checking for a file in file pattern before deleting it | dsrookie | UNIX for Dummies Questions & Answers | 1 | 05-09-2008 04:29 PM |
| prom in deleting a pattern | suvendu4urs | Shell Programming and Scripting | 18 | 04-10-2008 06:36 AM |
| deleting multiple records from a huge file at one time | dsravan | Shell Programming and Scripting | 5 | 02-06-2008 11:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
deleting multiple accourances of a pattern from a file
I have a .sh file with the following contents:
a b c a a b d c i want to delete the multiple occurances and keep one. say there are 3 a's in the file. I want to delete 2 of them and just keep 1 occurance. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|