With X the number of the line to be displayed sed -n 'Xp' file.txt Display the 10th line of a text file: sed -n '10p' file.txt