a single command the spans more then 1 line
hey guys whats up. I am currently writing a bash script for school, I am still pretty new at scripting so this is all pretty new to me. Anyways, I have this command that is reeaally big, its actually an echo command piped into an awk command. My issues is that the command spans multiple lines and its looks ugly and is hard to edit. so right now it looks like this:
Code:
echo $blah $blah $blah | awk -F {blah blah blah blah blah blah blah blah blah blah blah blah blah} Code:
echo $blah $blah $blah | If there is away to do what I am explaining here any advice would be welcomed. Thanks in advance todd |
The ubiquitous "escape" ("\")
I just tried it in interactive mode--I'm assuming it works the same in a script. |
Quote:
thanks todd |
amazing news, that worked like a charm man thanks so much. Now i can actually edit the code properly lol
thanks again dude you just saved me a huge headache todd |
well, if it's a pipe you can
Code:
do_this | |
All times are GMT -5. The time now is 07:21 PM. |