RE: shell script - expert question

2003-03-17 Thread Kleiner Hampel
Thanks! Am Son, 2003-03-16 um 22.23 schrieb Robert P. J. Day: >... -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list

RE: shell script - expert question

2003-03-16 Thread Robert P. J. Day
On 16 Mar 2003, Kleiner Hampel wrote: > Hi, > > tricky! > > But what is about: > > ${var##string} > ${var%string} > ${var%%string} > > What means the double #, the single and double #? > Please explain me in some words! Thanks! > Is there a man page with this information? these are internal

RE: shell script - expert question

2003-03-16 Thread Kleiner Hampel
Hi, this results in the same error message! regards, hampel Am Son, 2003-03-16 um 18.20 schrieb Cowles, Steve: > > -Original Message- > > From: Kleiner Hampel > > Sent: Sunday, March 16, 2003 10:41 AM > > Subject: Re: shell script - expert question > >

RE: shell script - expert question

2003-03-16 Thread Kleiner Hampel
16 Mar 2003, Cowles, Steve wrote: > > > > -Original Message- > > > From: Kleiner Hampel > > > Sent: Sunday, March 16, 2003 10:41 AM > > > Subject: Re: shell script - expert question > > > > > > > > > Hi, > > >

Re: shell script - expert question

2003-03-16 Thread Kleiner Hampel
Thanks, this works! regards, hampel Am Son, 2003-03-16 um 18.23 schrieb Mikkel L. Ellertson: > On 16 Mar 2003, Kleiner Hampel wrote: > > > Hi, > > > > now it works, but because of the '*'. > > > > now i want to remove the leading abc from all files in my directory. > > i tried this: > > > > f

RE: shell script - expert question

2003-03-16 Thread Robert P. J. Day
On Sun, 16 Mar 2003, Cowles, Steve wrote: > > -Original Message- > > From: Kleiner Hampel > > Sent: Sunday, March 16, 2003 10:41 AM > > Subject: Re: shell script - expert question > > > > > > Hi, > > > > now it works, but because

Re: shell script - expert question

2003-03-16 Thread Mikkel L. Ellertson
On 16 Mar 2003, Kleiner Hampel wrote: > Hi, > > now it works, but because of the '*'. > > now i want to remove the leading abc from all files in my directory. > i tried this: > > for i in *; do mv $i `echo $i | sed s/abc//`; done > > but it doesn't do that. > i always get the error, that the l

RE: shell script - expert question

2003-03-16 Thread Cowles, Steve
> -Original Message- > From: Kleiner Hampel > Sent: Sunday, March 16, 2003 10:41 AM > Subject: Re: shell script - expert question > > > Hi, > > now it works, but because of the '*'. > > now i want to remove the leading abc from all files in

Re: shell script - expert question

2003-03-16 Thread Kleiner Hampel
Hi, now it works, but because of the '*'. now i want to remove the leading abc from all files in my directory. i tried this: for i in *; do mv $i `echo $i | sed s/abc//`; done but it doesn't do that. i always get the error, that the last arguement must be a directory! I guess, the reason are th

Re: shell script - expert question

2003-03-16 Thread Rus Foster
On Sun, 16 Mar 2003, Kleiner Hampel wrote: > Hi, > > i have a directory with some files with spaces in the name: > > abc 1.mp3 > abc 2.mp3 > abc 3 track 2.mp3 > > For my shell script i have to begin so: > > for i in `ls`; do echo $i; done > Try cd /tmp/foo for i in * ; do echo "$i" ; done You n