On Sun, Sep 16, 2012 at 3:53 PM, Teemu Likonen <tliko...@iki.fi> wrote:
> Maybe not what you are asking for but one can get the desired output > with these: > > $ awk 'NR >= 1 && NR <= 3 { print }' inputfile > > $ head -n3 inputfile > > $ sed -n 1,3p inputfile > thanks, Teemu. i already know that, but right now i need to understand how passing for loop bash variables to awk works. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAD9kJ0Nofx3Thr=eBN4zM=JN=bjop4cksx5jp0vnmdrrxzz...@mail.gmail.com