SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Linux

(Solved) - Show text in file by identify the line number.

(3 posts)
  • Started 5 years ago by siamcreative
  • Latest reply from Scott
  • Topic Viewed 1236 times

siamcreative
Posts: 2

Hello
I have some questions to ask guru in shell script, If I want to get a text in file by identify the line number,
Could you help advise the command or functions?
Thank so much for any answer... and happy new year. :)

Posted 5 years ago
Top
 
siamcreative
Posts: 2

This is my answer... :) after I try to find out ...
if you want to print out line number 35.

sed -n 35p input_file

from : http://www.unix.com/unix-dummi.....-file.html

Posted 5 years ago
Top
 
Scott
Scott
Posts: 5618

Thank you for posting back siamcreative.

Posted 5 years ago
Top
 



Topic Closed

This topic has been closed to new replies.

Enter Your Email Here to Get Access for Free:

Go check your email!