![]() |
|
|
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 |
| Unix Arithmatic operation issue , datatype issue | thambi | Shell Programming and Scripting | 23 | 02-19-2008 07:19 AM |
| ftp issue | ravi raj kumar | Shell Programming and Scripting | 5 | 02-06-2008 08:24 AM |
| awk issue on AIX | ranj@chn | Shell Programming and Scripting | 1 | 07-04-2007 07:22 AM |
| Issue with rsh | sriram.s | AIX | 5 | 07-03-2007 12:37 PM |
| FTP issue | u263066 | Shell Programming and Scripting | 1 | 07-28-2006 07:18 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
SED Issue
Can anyone tell me ...on the below listed command
cat /mnt/winbox/list_measurement/ds1c/ds1_f.rome_27A03A 2>> error_log | sed -e '1,3d;s/^/27A03A,/' | sed -e "s#\(.*\)#\1 ,$(date +%Y-%m-%d)#g" > /SBS/ds1_f.rome_27A03A The outcome is this: ,2005-08-29 Forestdale,3:02 am MON AUG 29, 2005,6:25 pm SAT JUN 25, 2005,08/29,02:54,0,0,0,0,N/A,N/A I need it to append the date to the end of each line rather than over writing the first 11 characters of each line. So it will look like this 27A03A,Forestdale,3:02 am MON AUG 29, 2005,6:25 pm SAT JUN 25, 2005,08/28,21:39,0,0,0,0,N/A,N/A,2005-08-29 -- Does anyone know???? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|