![]() |
|
|
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 |
| Spurious line feeds | ajcannon | Shell Programming and Scripting | 2 | 10-29-2007 07:24 AM |
| line feeds in csv | gowrish | Shell Programming and Scripting | 10 | 09-01-2005 04:04 PM |
| Remove line feeds | vsk | Shell Programming and Scripting | 8 | 06-16-2005 01:28 PM |
| carriage return/line feeds | pitstop | Shell Programming and Scripting | 4 | 11-24-2003 03:47 PM |
| cant find command that returns blank line | jeffersno1 | UNIX for Dummies Questions & Answers | 2 | 11-15-2001 04:14 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
supressing carrige returns/line feeds
Hi gurus I am stripping lots of email addresses from a file with this Code:
grep "^To" file.log |awk '{print "1,"$2}' > recipients.out
file.log looks something like this: oasndfoasnosf To: person@email.co.uk lsdfjosd sdlfnmsopdfwer dtlghodrgn To: person2@emailsss.com sldfnsdf I want the recipients.out to not have a carrage return, so suppress and then only take the last letter of the email address. Thanks in advance |
| Bookmarks |
| Tags |
| carrage return, grep, suppress |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|