# Using head - Print few lines (5 lines) from the top of a file
head -n 5 file.txt
# Using tail - Print few lines (5 lines) from the bottom of a file
tail -n 5 file.txt
# Using sed
# show from line 12 to line 23
sed -n '12,23 p' archivo.txt
# or just one (line 15)
sed -n 15p archivo.txt
Comments
Post a Comment
Please post your comment