Hi,
I want to read the file from nth line (where n is an integer) to until I encounter @ char.
Can any one please help me how to do this?
Thanks.
Hi,
I want to read the file from nth line (where n is an integer) to until I encounter @ char.
Can any one please help me how to do this?
Thanks.
You can do something like that :
awk 'NR>=From {print; if (/@/) exit }' From=3 inputfile
Jean-Pierre.
sed -n '3,/@/p' inputfile
for exa from 3.rd line to line with @ and break read..
# sed -n '3,${;/@/q;p}' infile