what is 's' in here

Thread Tools Search this Thread
# 1  
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,
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
sed -e :a -e '$q;N;'$cnt',$D;ba' abc.txt > xyz.txt

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

# 2  
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  

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #458
Difficulty: Medium
NTP uses a flat, peer-to-peer system of time sources.
True or False?

Featured Tech Videos