LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sed command execution (https://www.linuxquestions.org/questions/linux-newbie-8/sed-command-execution-4175526615/)

rattat 11-26-2014 03:35 PM

sed command execution
 
What's the output of following command ?
sed --in-place '13,$/bash/csh/g' /etc/passwd

syg00 11-26-2014 06:46 PM

Don't post homework - see the LQ rules.

jlinkels 11-26-2014 07:52 PM

Quote:

Originally Posted by rattat (Post 5275586)
What's the output of following command ?
sed --in-place '13,$/bash/csh/g' /etc/passwd

42

jlinkels

jpollard 11-26-2014 08:04 PM

Easiest way is to run it and see.

SAbhi 11-26-2014 08:23 PM

apart from above suggestions, i recommend reading the man page for sed that will tell you what was done by which switch and parameter.

grail 11-26-2014 08:23 PM

I am with jpollard ... are you not able to test it yourself?

rattat 11-26-2014 08:59 PM

Thanks for all your replies.

@jlinkels 42 is the answer ?

Quote:

Originally Posted by jlinkels (Post 5275688)
42

jlinkels


grail 11-27-2014 12:27 AM

42 IS the answer .... to the ultimate question of life, the universe and everything :)


All times are GMT -5. The time now is 05:24 AM.