sed print a range of lines code example Example: sed range of lines result ip address | sed -n '2, 4p'