![]() |
|
|
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 |
| replacing characters | infyanurag | Shell Programming and Scripting | 3 | 05-21-2008 02:55 AM |
| Replacing characters in csv file | finwhiz | UNIX for Dummies Questions & Answers | 1 | 03-31-2008 06:25 AM |
| replacing characters | palmer18 | UNIX for Dummies Questions & Answers | 3 | 08-20-2007 10:58 AM |
| Replacing characters in file with line break | johnemb | Shell Programming and Scripting | 10 | 04-26-2007 08:38 AM |
| Replacing all but last Hex characters in a text line | BAH | Shell Programming and Scripting | 2 | 03-26-2004 04:00 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
replacing certain characters with new line?
i have a text file which domains something like this
123213213213/32434342 324324324/12312321321 12321321,435435435 12321312 / 12313213 / 12435435345 4353213 , 123213213213 21321321312-12334324 234324324 - 235645645645 456456456 - 45456456456 - 45645645654243 how can i replace '/' and ' / ' and ',' and '-' and ' - ' with new line so the numbers gets sorted all into new lines using any tool such as sed, awk etc.. ? Thank you. |
|
||||
|
Quote:
Code:
awk '{gsub(/ - |-| \/ |\//, "\n"); print}'
![]() Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|