Re: Removing "\n" from a list of files
From: Justin Dearing (jdearing_at_cuthbeat.com)
Date: 09/15/03
- Next message: Moshe Jacobson: "Re: THOSE ANNOYING POP UP MESSAGES."
- Previous message: Pat LaVarre: "an editable history for every stdin"
- In reply to: Michael Heiming: "Re: Removing "\n" from a list of files"
- Next in thread: Ed Morton: "Re: Removing "\n" from a list of files"
- Reply: Ed Morton: "Re: Removing "\n" from a list of files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 15 Sep 2003 05:42:51 -0700
Michael Heiming <michael+USENET@www.heiming.de> wrote in message news:<ki51kb.lld.ln@news.heiming.de>...
> Justin Dearing <jdearing@cuthbeat.com> wrote:
> > Hello all. I have a bunch of IIS servers that I must archive the zips
> > by month and have written the following script to aid the task.
>
> Unsure, what you are trying, but then does IIS run on *nix?
>
> Best bet, install a real OS/web-server and try:
> man logrotate
Ok let me rephrase, my employeer has severall IIS web servers. These
servers are not going away. Now let me ask the question in a way that
takes the IIS element out of the picture.
I have a a shell script. It first does a "curl -l ${FTP_URL} >
folders.txt"
Now folders.txt looks like this afterwards:
W3SVC1
W3SVC10
W3SVC42
etc etc.
A few lines later the following happens:
for FOLDER in `cat ${SERVERNAME}/folders.txt | line`
do
wget ${FTPURL}/${FOLDER}/[filemask]
done << ${SERVERNAME}/folders.txt
now the problem is that $FOLDER contains the trailing \n and that is
screwing up my calls to wget. How do I get rid of the '\n'?
- Next message: Moshe Jacobson: "Re: THOSE ANNOYING POP UP MESSAGES."
- Previous message: Pat LaVarre: "an editable history for every stdin"
- In reply to: Michael Heiming: "Re: Removing "\n" from a list of files"
- Next in thread: Ed Morton: "Re: Removing "\n" from a list of files"
- Reply: Ed Morton: "Re: Removing "\n" from a list of files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|