Markos <[EMAIL PROTECTED]> wrote:
> #Delete "logo_1.gif" string from every line in results_1,
> #leaving only the path to prepare for "cd" step
>
> sed 's/logo_1.gif//' /tmp/results_1 >/tmp/results
This would be more precisely expressed as:
sed 's:/logo_1\.gif$:/:' /tmp/results_1 >/tmp/results
If
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: nto-qnx6.3.2
Compiler: qcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='nto-qnx6.3.2' -DCONF_MACHTYPE='i386-pc-nto-qnx6.3.2'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/local
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Markos on 1/10/2007 5:49 AM:
> Hello ,
> I'm having problems with the script I send below.
>
> ...
> + sed -n '$line_number"p"' /tmp/results
> /tmp/logo_changer.sh: : No such file or directory
> + cd
> + pwd
> + ls -go logo_1.gif
> logo_
Hello ,
I'm having problems with the script I send below.
Problem description:
I'm trying to run a script called logo_changer.sh that creates a file called
results containing different lines
and every line is a path to a dir where the "logo_1.gif" file is located.
After the
results file is fi