|
| | Re: TXT-file question
|
| (...) I'm on a pretty straightforward XP 98 system, alas. Maybe I should just pay some neighborhood kids to do it for me... Thank you for the input, though. Dave! (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
| | | | Re: TXT-file question
|
| (...) or, if you have perl (windows or unix), you can do this: perl -i.bak -p -e 's/ABCS/WXYZ/g' *.txt which will create a backup (file.txt.bak) before changing all 'ABCD' to 'WXYZ'. :) Dan (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
| | | | Re: TXT-file question
|
| (...) Are you on windows? (if so I don't know) or on UNIX/linux? If you're on UNIX or linus you could use sed. Somethign like: (this is untested so YMMV) for FILE in *.txt; do if sed 's/ABCD/WXYZ/g' < $FILE >$FILE.new; then mv $FILE.new $FILE else (...) (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
| | | | TXT-file question
|
| Hello all: I have a bunch of text files, each of which contains a character sequence (say, ABCD) that I need to change (say, to WXYZ). The character sequence is within the body of each file, rather than the title. Is there an easy method of swapping (...) (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
| | | | Re: Brickshelf speed
|
| (...) Yes. But SLA's are rarely enforced because apparently dropping a screwdriver in a DMS battery frame is considered an act of god. Calum (formerly employed by Canada's largest backbone provider) (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
| |