Subj : Re: bash script and grep To : Daniel Path From : Wilfred van Velzen Date : Thu Feb 02 2023 17:30:09 Hi Daniel, On 2023-02-02 14:39:49, you wrote to Rick Smith: RS>> cat /fido/etc/areas_fidonet | grep EchoArea | grep 1:105/81 |sort> RS>> $TMPFILE while read -r line do RS>> TAGLONG=`echo $line|awk {'print $2'}` RS>> TAGSHORT=`echo $line|awk {'print $2'}|sed s/FIDO_//` RS>> FILE=`echo $line|awk {'print $3'}` RS>> DESC=`cat backbone.na | grep $TAGLONG | awk '{$1=""; print RS>> $0}'|sed 's/\r$//'` DP> try: grep "1:105/81" or set it as a variable as in the original script Strange... On my linux in bash these give the same result: # echo 1:1/1 | grep 1:1/1 1:1/1 # echo 1:1/1 | grep "1:1/1" 1:1/1 There is an alias for grep: alias grep='grep --color=auto' But that shouldn't make a difference. Maybe on ubuntu it's different? Bye, Wilfred. --- FMail-lnx64 2.1.5.2-B20230114 * Origin: FMail development HQ (2:280/464) .