what is 's' in here


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers what is 's' in here
# 1  
Old 04-26-2012
what is 's' in here

Hi there I have a very stupid question I know that for different command there are different flags but for eg,
Code:
sed 's/\(.....$\)/\L\1/'

in here what is 's' and where I can find information about the things like this I just even does not how they are called to google and the same refer to
Code:
sed -e :a -e '$q;N;'$cnt',$D;ba' abc.txt > xyz.txt

and how to make this thing by myself???:/

Cheers
# 2  
Old 04-26-2012
The s is a substitute command. It will match the pattern between the first and second slant characters, and replace it with what is between the second and third slant characters. That is very simplified. Have a look at the sed man page for starters.

Man Page for sed (Linux Section 1) - The UNIX and Linux Forums

Maybe a bit easier to digest is a tutorial:
Sed - An Introduction and Tutorial
This User Gave Thanks to agama For This Post:
# 3  
Old 04-26-2012
thanks!
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question