Re: Use a list of files

From: Dale DeRemer (dderemer_nospam_at_agmc.org)
Date: 02/27/04


Date: Fri, 27 Feb 2004 14:54:13 -0500

Thanks for the replies, it works, and I've already used it in about 3
places.

"Heiner Steven" <heiner.steven@nexgo.de> wrote in message
news:403e6668$0$17576$9b4e6d93@newsread4.arcor-online.net...
> Dale DeRemer wrote:
> > I have a file, (list.txt) that contains a list of files that I need to
> > reformat. The file structure is like this:
> >
> > D101
> > D723
> > D445
> >
> > The number of files in the list will vary. The file changes with each
> > upload.
> > I have a fix script, fix.ksh that will manipulate the files for upload
to a
> > database, (remove useless lines and characters).
> > If I hardcode a file name in to the fix script, or use a command line
> > argument, it works. I need to automate this. What I'd like to do is have
> > fix.ksh read list.txt and operate on each file, one at a time. Any
> > suggestions?
> [...]
>
> while read filename
> do
> fix.ksh "$filename"
> done < list.txt
>
> Heiner
> --
> ___ _
> / __| |_ _____ _____ _ _ Heiner STEVEN <heiner.steven@nexgo.de>
> \__ \ _/ -_) V / -_) ' \ Shell Script Programmers: visit
> |___/\__\___|\_/\___|_||_| http://www.shelldorado.com/



Relevant Pages

  • Re: Use a list of files
    ... > reformat. ... The file structure is like this: ... > I have a fix script, fix.ksh that will manipulate the files for upload to a ... > If I hardcode a file name in to the fix script, ...
    (comp.unix.shell)
  • Use a list of files
    ... reformat. ... The file structure is like this: ... fix.ksh that will manipulate the files for upload to a ... If I hardcode a file name in to the fix script, ...
    (comp.unix.shell)
  • Re: Webcam Application
    ... thank you to everybody for their replies!!! ... I've learned hell of a lot from your suggestions. ... I can do the upload thing, ... > the foggiest on how to interact with a webcam. ...
    (comp.lang.java.programmer)
  • Re: NASA Worldwind, & Large scale features in Africa
    ... > At last, some replies. ... Looks like it's taken a while to propagate ... Do you have webspace to upload it to (this is ... not a binary newsgroup). ...
    (sci.geo.geology)
  • Re: git
    ... > your replies 8 hours before you upload them. ... > always be lagging in the conversation by 8 hours, no matter what ... You know, even if he'd uploaded the replies before going to bed, he ...
    (sci.lang)