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 7 years ago by siamcreative
  • Latest reply from Scott
  • Topic Viewed 1236 times

PARTNER SPOTLIGHT

Recommended: Clean Your Mac the Easy Way with CleanMyMac 3

If you want to clean up your Mac the easy way, CleanMyMac is a great tool to get the job done easily, and it will even keep your computer clean automatically.

Unlike the competition, it also includes great tools like a Clean Uninstaller, to get rid of applications and clean up the junk that they leave behind. All with the click of a button.

Download CleanMyMac 3 for Free Today

Posted yesterday 
Top
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 7 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 7 years ago
Top
 
Scott
Posts: 5618

Thank you for posting back siamcreative.

Posted 7 years ago
Top
 



Topic Closed

This topic has been closed to new replies.