head -3 <FileName> | tail -2
| cut -d "," -f 2-3
or
cat
<FileName>
| sed -n '2,3p' | cut -d "," -f 2-3
or
cat
<FileName>
| awk 'NR==2,NR==3' | cut -d "," -f 2-3
This blog provides some ready-made tips, tricks, tweaks & interview questions-answers on C, C++, Perl, Shell Scripting and UNIX Commands.
head -3 <FileName> | tail -2
| cut -d "," -f 2-3
or
cat
<FileName>
| sed -n '2,3p' | cut -d "," -f 2-3
or
cat
<FileName>
| awk 'NR==2,NR==3' | cut -d "," -f 2-3
No comments :
Post a Comment