{"id":52,"description":"sed - Get a line or range of lines","tags":["linux","tools","shell","sed"],"contents":["# Get contents of line number n from file","# -n - tells sed not to print the lines unless explicity requested","# 'p' - print command","# 'q' - quit sed","sed -n '10p' # print line number 10, but will continue processing the rest of the file too","sed -n '10p;11q' # print line number 10 and quit processing","sed -n '5,10p;11q' # print line number from 5 to 10 and quit processing"]}
