Search Results

Search: Posts Made By: Redg
3,187
Posted By Redg
vgersh99 My apologies man...I had STOUT going...
vgersh99
My apologies man...I had STOUT going to the screen, which was being affected by my SecurCRT Session.. of having limited columns.
Your the greatest bro... Let me know if i can ever help you...
3,187
Posted By Redg
I am using Bash
I am using Bash
3,187
Posted By Redg
This is weird...i see where you are telling it to...
This is weird...i see where you are telling it to append at the end of the line.... But it doesnt....

[root@localhost ~]# sed -e "1,3d;s/^[^ ][^ ]* /27A03A,/;s/$/,$(date +%Y-%m-%d)/"...
3,187
Posted By Redg
Thanks for you reply Vgersh99.... not sure...
Thanks for you reply Vgersh99....
not sure why...but its still writing the date over the first few characters rather than appending it to the end of each line

Results:
2005-08-29luth...
3,187
Posted By Redg
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" >...
124,480
Posted By Redg
Works Great...Thanks for your help
Works Great...Thanks for your help
124,480
Posted By Redg
using sed to append text to the end of each line
Anyone know how to use SED to append a comma to the end of each line

example:

field1,field2,field3,field4

If i Cat /textfile ---- How can i append the end of /textfile with a comman?
2,091
Posted By Redg
Thanks
Vino...Thank you sooo much for your help...

Here is the command i have that works:

[root@localhost ds1c]# cat /mnt/winbox/list_measurement/ds1c/ds1_f.rome_27A03A 2>> error_log | sed -e...
2,091
Posted By Redg
Here is my current command which works: ...
Here is my current command which works:

[root@localhost ds1f]# cat /mnt/winbox/list_measurement/ds1c/ds1_f.rome_27A03A 2>> error_log | sed '1,3d;s/^/27A03A,/;s/$ > /mnt/winbox/ds1_f.rome_27A03A
...
2,091
Posted By Redg
SED Question -- on appending to a file
:confused:
I have a script that Cats a flat database file which contains 12 columns into sed. I want to add a 13th column which includes " ,2005-08-29 " * The date needs to be the current...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 02:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy