The UNIX Forums
"Join the Network of UNIX System Users"


 
Subject: sed command help
darzuaga
Newbie
Rank: 1



UID 106
Digest Posts 0
Credits 0
Posts 50
Reading Access 10
Registered Apr 25, 2007
Status Offline
Post at Jun 13, 2007 10:43 AM  Profile | P.M. 
sed command help



sed command help



hi all,

i have a script which has the following lines


----------------------------------------
filename =detail.txt
text='hai'
var1=`cat $filename|grep text|sed 1q`
echo var1
--------------------------------


i just want to know what does sed 1q does?

thanks in advance


Top
 

 

All times are GMT, the time now is Jul 31, 2010 03:35 AM

Powered by Discuz! 5.0.0  © 2001-2006 UNIX Forums
Processed in 0.004524 second(s), 8 queries

Clear Cookies - Contact Us - UNIX Help - Archiver - WAP