LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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

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


Reply



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 04:05 AM
sendmail and NIS databases (aliases, mail.aliases) - what kind of databases? cotton213 Linux - Software 0 03-14-2006 05:57 PM
aliases in C++ djgerbavore Programming 6 03-16-2005 08:35 PM
bash does not wrap long lines correctly monkeyman2000 Linux - General 8 09-08-2004 09:30 PM
aliases depaul Linux - Software 23 07-30-2003 06:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:25 PM.

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