Sign in with
Sign up | Sign in
Your question

sed command help

Tags:
  • Unix
  • Command Prompt
Last response: in Linux/Free BSD
Share
Anonymous
January 29, 2014 11:52:49 AM

Hi,

I am a new student learning about Unix. Can anyone help with the following sed command. It is related to my class assignment and I am a little confused. What would this command do?
Can anyone provide an explanation?

sed -n -e '/^s/p'


Any help you can provide would be a big help.

Thanks in advance!

More about : sed command

January 29, 2014 12:00:06 PM

I think you need to read the sed man page and also read about regular expressions. This sort of information is readily available and you'll learn a lot more by doing your own research rather than being spoonfeed the answer. Alternatively, you may find it useful to discuss this with your tutor.

If the above are unacceptable, a good alternative would be to choose a less demanding subject to study.
m
0
l
!