Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Understanding sed

Status
Not open for further replies.

drimades

IS-IT--Management
Nov 8, 2004
221
0
0
MK
Can someone explain what the following does?

sed -i -e "s@^#include <linux/config.h>@/* & */@" \
`grep -lr linux/config.h *` &&
( make World 2>&1 | tee xorg-compile.log && exit $PIPESTATUS )
 
Looks like somekind of script generator.
do a man sed and maybe there is a man page about it :)
 
for each file that has linux/config.h in it
substitute /* & */ for any string #include <linux/config.h> that is at the beginning of the line.

if that completed successfully run make World
and pipe the output to stdout and to a logfile

if that completed successfully exit with an error level of $PIPESTATUS
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top