To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 4110 (-10)
  Re: TXT-file question
 
(...) Oh, I would usually scoff anyone who called themselves a programmer for having written batch code, but this stuff was fully fledged programming. My boss had me doing testing on a linker that was written for a DSP. It started as "maybe you (...) (22 years ago, 19-Dec-02, to lugnet.off-topic.geek)
 
  Re: TXT-file question
 
<snip> (...) have (...) on (...) was (...) <snip> and <sigh> oh dear, yup those were the days, writing simple batch files and people calling you a programer. my computers were organized and navigated with batch files since 92 because windows was so (...) (22 years ago, 19-Dec-02, to lugnet.off-topic.geek)
 
  Re: TXT-file question
 
(...) Or get PERL for Windows (URL) (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
 
  Re: TXT-file question
 
(...) There may be some batch commands you can use, but I'm not sure offhand-- I used to be somewhat of a whiz with Windows NT batch (1), but it's been a while... not to mention that I know Windows 95/98 didn't have the same functionality for "for" (...) (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
 
  Re: TXT-file question
 
(...) try textpad (IMO the best text editor for the win-systems). you can download a version at www.textpad.com. there is a feature in the find-replace dialog where you can replace text in mulitple files at once. -chris (22 years ago, 18-Dec-02, to lugnet.off-topic.geek)
 
  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)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR