Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
problems with sed
Name: mgonzalo Date: October 5, 2005 at 03:50:19 Pacific OS: SunOs isis 5.8 CPU/Ram: Generic_108528-15
Comment:
I have the following file aa1
uno dos tres cuatro
and I want to have it as
uno dos tres cuatro
I make the following thing:
sed '1,$j' aa1
and he responds me
sed: command garbled: 1,$j
as I can make it?
"La experiencia es algo maravilloso. Nos permite reconocer un error cada vez que lo volvemos a cometer.", Franklin P. Jones
Summary: Your sed syntax of 2s/old/new/ is asking to change first occurrence of old to new only in line 2 of the file, and that is why it works with your abbreviated file. And s/old/new/2 would change only the...
Summary: Hello All I'm having a little problem using SED. I can get the SED command to work on the command line but not in a script below is the script I'm using. #!/usr/bin/ksh logfile=/var/adm/messag...
Summary: Hi all, I'm having a problem with a script I am using. I need to pass in a directory as a dynamic varible, but this directory needs to get added to lots of different files. So, I'm using sed to change...