User Tools

Site Tools


Sidebar

Computer Science

Germany

Others

Links

computer_science:software:linux:commands:display_only_the_line_n_of_a_text_file

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
computer_science/software/linux/commands/display_only_the_line_n_of_a_text_file.txt · Last modified: 2015/03/12 10:39 by thomas