[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Inverted piped commands
From: |
Tiago Peczenyj |
Subject: |
Re: [shell-script] Inverted piped commands |
Date: |
Mon, 27 Jun 2011 17:20:53 -0300 |
maybe in your environment the grep -i changes something (ie put all in
lowercase).
Its hard to explain without a sample of HDLM_MATRIX.txt -- can you put in
pastebin or other place?
2011/6/27 eric miranda <address@hidden>
> **
>
>
> Dear experts,
>
> I'm facing an issue wich I can't figure out how to solve.
>
> I wrote a script that contains a line:
>
> ...
> cat MATRIZ/HDLM_MATRIX.txt|grep -i "${OSFULLNAME}"|grep -i
> "${HBAMANFAC}"|grep q
> ...
>
> But, when executed it inverts (as far as i noticed it) the order of the
> piped commands, returning nothing:
>
> ...
> + cat MATRIZ/HDLM_MATRIX.txt
> + grep -i QLogic
> + grep q
> + grep -i Windows 2003 SP2 (X64 / x86_64)
> ...
>
> Why is bash messing up my life? :)
>
> tnx in advance!
>
> [As partes desta mensagem que não continham texto foram removidas]
>
>
>
--
Tiago B. Peczenyj
Linux User #405772
http://pacman.blog.br
[As partes desta mensagem que não continham texto foram removidas]