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.
line too long in a script
Name: Br1an Date: October 15, 2002 at 06:26:03 Pacific OS: Unix CPU/Ram: 256
Comment:
Hi,
I got a script that execute a command like this : et -A array_name `ps -ef | grep -i $process_name | grep -v 'grep' | grep -v 'kill' |grep -v $0| sort|awk '{print $2}' | sort -u`
this is bloody long ... i vaguely remember that I could actually use a backslash "\" to "cut" this line into several lines without making the shell confuse that i wanna press "enter" every times there... Does any one know how to do this ? It would be greate, much appreciated. Please help if you could. Thank you very much
Summary: When running the script below I get nothing.. I am a newbie with this. Not sure If you can run awk in a script. Also Im having problems getting a variable from the command line to the script. from com...
Summary: Hi, I have some datasets that are coming up as being 'line too long' when I try to vi or edit them. I can cat/more them no problem. Does anyone know how I could edit them in unix?? I'm thinking I may ...
Summary: Hi all, I have an input file containing one line of record. Apparently, the line is too long, and when I try to replace a string using sed, I got message, "Output line too long" and the output file s...