On Tue, Dec 30, 2008 at 6:49 PM, Oleg Goldshmidt <p...@goldshmidt.org> wrote:

> "Erez D" <erez0...@gmail.com> writes:
>
> > this is a solution speceific to the .txt being preceided by the 000.
> > (it will not work on path/input_000_xyz.txt).
>
> Why not? "basename ${foo/*input_/} _xyz.txt" will do it.
>
> Frankly, the exact requirements were not clear from your post (it is a
> coincidence that the solution I offered works for the revised
> requirements as well).


btw, it didn't

my reqierment was to concatenate  more than one substitution in one bash
line
(like i can de with sed : sed 's/a/b/g;s/c/d/g' )


>
> > i just wanted to know if i can do that in one line in bash without any
> > external programs (like sed )
> > the answer is - it can't be done. that's good enough for me, i'll use a
> temp
> > var and two lines.
>
> Which is usually better, anyway, as it makes the code more readable,
> typically without tradeoffs.

i do not agree.


>
> --
> Oleg Goldshmidt | p...@goldshmidt.org
>
> =================================================================
> To unsubscribe, send mail to linux-il-requ...@cs.huji.ac.il with
> the word "unsubscribe" in the message body, e.g., run the command
> echo unsubscribe | mail linux-il-requ...@cs.huji.ac.il
>
>

Reply via email to