[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#24025: closed (grep usage question)

From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#24025: closed (grep usage question)
Date: Sat, 24 Sep 2016 21:39:02 +0000

Your message dated Sat, 24 Sep 2016 14:38:04 -0700
with message-id <address@hidden>
and subject line Re: grep usage question
has caused the debbugs.gnu.org bug report #24025,
regarding grep usage question
to be marked as done.

(If you believe you have received this mail in error, please contact

24025: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24025
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Date: Tue, 19 Jul 2016 08:11:09 -0400
I am not sure if this is a bug or not. Her is an example of my script that I am running.


rm -f x.txt
rm -f new_file

wc -l file1 | sed 's/file1//g' >> x.txt


while [ $i -le $x ]
            #echo "$i"
         A=$( awk -v var="$i" 'NR==var {print}' file1)
        #ack -k file1 file2 --match $A >> new_file
        grep $A some_file.txt


grep does not appear to be grepping inside of the while loop. When I initialize a variable directly from the command line and write the same script it works no problem, any help on this matter would be greatly appreciated.

--- End Message ---
--- Begin Message --- Subject: Re: grep usage question Date: Sat, 24 Sep 2016 14:38:04 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0
No further comment and it has been a couple of months, so closing the bug 

--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]