The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to execute multiple commands via ssh srage Shell Programming and Scripting 9 01-05-2008 03:18 AM
Can I spread commands over multiple lines? tphyahoo UNIX for Dummies Questions & Answers 1 06-07-2006 10:08 AM
Multiple commands TAB delimited cdunavent Shell Programming and Scripting 2 05-09-2005 10:48 PM
sed: Multiple Commands applied to an address google Shell Programming and Scripting 2 08-11-2004 12:55 PM
Alias confusion - multiple commands ? HikerLT UNIX for Dummies Questions & Answers 1 11-17-2003 12:01 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 03-29-2006
george_ george_ is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 16
multiple sed commands

hello!
I have a few sed commands
sed '/^$/d' < $1 > tmp.t
sed '/^ \{3,\}/d' < tmp.t > tmp1.txt
.....
how can I write them in a single line?

sed '/^$/d' < $1 > | '/^ \{3,\}/d' < $1 > tmp1.txt

any idea?

thanks.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0