xorg instructions from LFS CVS

Anderson Lizardo lizardo at linuxfromscratch.org
Sat Oct 2 07:30:07 PDT 2004


On Saturday 02 October 2004 01:04, Jeremy Utley wrote:
> The command giving me fits is this:
>
> *sed -i -e "s@#include <linux/config.h>@/* #include <linux/config.h> */@" \
> `grep -lr linux/config.h *`*

I think this command can be simplified to the following, if I understand it 
correctly:

grep -lr linux/config.h . | xargs sed -i -e '\@#include <linux/config.h>@d'

Can someone confirm that this command has the same effect (note that it 
deletes the line instead of commenting it out, it's simpler IMHO)?
-- 
Anderson Lizardo
lizardo at linuxfromscratch.org
http://www.linuxfromscratch.org/



More information about the alfs-discuss mailing list