View Single Post
Old 08-02-2010, 10:30 PM  
CYF
Coupon Guru
 
CYF's Avatar
 
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
Quote:
Originally Posted by acctman View Post
hmm I noticed that you removed -ne, it works without that. also is there a way to make it append the outputs each time the command is run? it seems to be writing a new file each time I run the command. thanks

Code:
sed 's/^.*terms_id=\([^&]*\)&.*$/\1/' test.txt > getIDs.txt
sed 's/^.*terms_id=\([^&]*\)&.*$/\1/' test.txt >> getIDs.txt
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

CYF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote