![]() |
Read a line in a txt file with bash
Hi all!
First excuse me for my bad english, but i'm french. Well... let's stick to the question. In fact I'm looking for a unix command that would allow me to display a precise line of a text file in the console in order to do a grep on an other file to check if the line is in the second file too. I first planed to use diff to compare my files, but it does'nt match my needs. Something like that would be perfect: Command -line_number file.txt. Thank you ;-) |
Try this:
Code:
sed -n '#p' filenameCode:
sed -n '52p' filename |
ok i'll try it right now!!!
|
It works well!!! thanks a lot scuzzman ;-)
|
| All times are GMT -5. The time now is 03:44 PM. |