[NTLUG:Discuss] linux -> GNU/Linux (was 2.6 is out)

Robert Citek rwcitek at alum.calberkeley.org
Thu Dec 18 18:39:01 CST 2003


On Thursday, December 18, 2003, at 02:50  PM, Chris Cox wrote:
> find / -type f -exec perl -pi -e 's/Linux/GNU Linux/g' {} \;

For that many files, using xargs would probably be faster:

find / -type f -print0 |
   xargs -0 perl -pi -e 's/(?<!GNU\/)linux\b/GNU\/$&/ig

Regards,
- Robert




More information about the Discuss mailing list