silly question but can't think...
Simon Barner
barner at in.tum.de
Tue Apr 22 03:58:48 PDT 2003
> Want to remove /ORGNAME/ for that file and pipe back out to a file, same or
> otherwise...
Assuming that the file is called my.file, you can do the following:
perl -pi -e "s/ORGNAME//g" my.file
^
you can put a string of your choice here.
This command will work directly on the file.
For details see the perlre(1) and perlrun(1) man pages.
HTH,
Simon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030422/762577d3/attachment.bin
More information about the freebsd-questions
mailing list