Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

Find the lines containing a number in a file

Posted By: Ben Evans     Category: Unix / Linux / Ubuntu     Views: 2738

Find the lines containing a number in a file.

Code for Find the lines containing a number in a file in Unix / Linux / Ubuntu

echo Enter filename
read filename
grep [0-9] $filename
  
Share: 


Didn't find what you were looking for? Find more on Find the lines containing a number in a file Or get search suggestion and latest updates.

Ben Evans
Ben Evans author of Find the lines containing a number in a file is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!