Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

pass bash variable to grep

    for j in {0..16}; 
    do
        echo A $i 
        grep -A 2 " $i " file
    done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #bash #variable #grep
ADD COMMENT
Topic
Name
7+7 =