Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-26-2007, 08:49 AM   #1
Senior Member
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 210Reputation: 210Reputation: 210
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)....

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...
alias alias_name 'command | grep -v "something" | \
grep -v "somethingelse" | grep -v "yetanotherthing" | \
sort -k4g'
but that's not working out.

Last edited by jhwilliams; 07-26-2007 at 08:51 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Console does not wrap long lines z-vet Linux - Software 11 10-10-2013 05:05 AM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 06:57 PM
aliases in C++ djgerbavore Programming 6 03-16-2005 09:35 PM
bash does not wrap long lines correctly monkeyman2000 Linux - General 8 09-08-2004 10:30 PM
aliases depaul Linux - Software 23 07-30-2003 07:49 PM

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration