[Techtalk] filtering command line
Miriam English
mim at miriam-english.org
Wed Jun 13 23:22:32 UTC 2007
Hi Michelle,
Michelle Konzack wrote:
> Try:
> 's|\\|/|g'
>
> and it just works... Had to fight several times with it.
and also:
> What about:
>
> if [ $1 = "" ]; then
> wine c:\irfanview\i_view32.exe
> else
> wine c:\irfanview\i_view32.exe "$(echo "z:$@" |sed 's|\\|/|g')"
> fi
>
> which is much shorter.
Neat! I'll file this away for future use. Thank you Michelle.
Many years ago I used to use a non-interactive editor in scripts to
perform all kinds of magic on my Amiga computers. It is nice to see how
to do similar stuff on linux.
I'm grateful.
Best wishes,
- Miriam
--
---------=---------=---------=---------=---------=---------=------
A life! Cool! Where can I download one of those from?
---------=---------=---------=---------=---------=---------=------
Website: http://miriam-english.org
Blog: http://miriam-e.livejournal.com
More information about the Techtalk
mailing list