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}
I would like to set it so that its nice and neat on multiple lines..if i can, i would like to have it look like this:
Code:
echo $blah $blah $blah |
awk -F { blah...........................}
I haven't been able to find away to tell the system that it is all one command. I know that you can do something similar in the command line, but i am unsure of how i can do it in my script or even if i can. I am currently using VIM to code my script (its the only text editor i know well for right now).
If there is away to do what I am explaining here any advice would be welcomed.
Thanks in advance
todd