Solved can some one help with sed and awk commands

December 16, 2014 at 15:35:36
Specs: unix
Write a sed command that will change the ServerRoot value from /usr to the absolute directory patch for your apache directory.

Write a sed command that will change the Document value from /Library/WebServer/Documents to the absolute directory patch for your www directory.

Write an awk command that will print only the comment field and the login id of all users in the /etc/passwd file in this format: <Comment Field> - <login id>. can any one help me with this


See More: can some one help with sed and awk commands

Report •

#1
December 16, 2014 at 19:56:09
✔ Best Answer
This link shows you how to process the /etc/passwd file using awk:

http://www.computing.net/answers/so...

This link shows basic sed syntax for replacing text:

http://www.computing.net/answers/un...

Make an effort, post code, and ask specific questions and I'll help.


Report •
Related Solutions


Ask Question