|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
I'm trying to replace some text in a bunch of docs using sed...when I do this all is fine:
$ sed s/class=\"bodytext\"//g computing.php > newfilename.php
but if I sed the file and don't change the name I get an empty file, all the contents get wiped out and the size is shown as 0 bytes:
$ sed s/class=\"bodytext\"//g computing.php > computing.php
am I missing a command line arg or is my use of the command wrong?
I'm using GNU sed version 3.02 on a RedHat 6.2 based distro.
Thanks
Jason Wertz
Senior Technology Specialist / WebMaster
Delaware County Community College
______________________________________________________________________
Philadelphia Linux Users Group - http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion - http://lists.phillylinux.org/mail/listinfo/plug
|