LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   wrap lines at 80 for long aliases in .aliases.csh (https://www.linuxquestions.org/questions/linux-software-2/wrap-lines-at-80-for-long-aliases-in-aliases-csh-572404/)

jhwilliams 07-26-2007 07:49 AM

wrap lines at 80 for long aliases in .aliases.csh
 
Noob question:

I have a long alias that looks like this (all on one long line)....

Code:

alias alias_name 'command | grep -v "something" | grep -v "somethingelse" | grep -v "yetanotherthing" | sort -k4g'
except there are about 5 more greps in there. How do I wrap that line at 80?

I tried something like...
Code:

alias alias_name 'command | grep -v "something" | \
grep -v "somethingelse" | grep -v "yetanotherthing" | \
sort -k4g'

but that's not working out.


All times are GMT -5. The time now is 09:19 AM.