Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


to list a particular line in the file

Answers were Sorted based on User's Feedback



to list a particular line in the file..

Answer / jam

To print a specific line without using a string.

sed -n '1p' <filename>

Where 1 is teh line number

Is This Answer Correct ?    5 Yes 0 No

to list a particular line in the file..

Answer / deepak

grep -i " give_the search keyword here" (specify the directory location/file to search)

Is This Answer Correct ?    3 Yes 2 No

to list a particular line in the file..

Answer / ramesh

grep "pattern" filename

Is This Answer Correct ?    1 Yes 0 No

to list a particular line in the file..

Answer / abani_mahana

sed -n '1p' <filename>
head -n filename | tail -1
(change n as per your requirements)

Is This Answer Correct ?    0 Yes 0 No

to list a particular line in the file..

Answer / ranjitha

using head and tail command we can print the required line
as an output.

Is This Answer Correct ?    2 Yes 7 No

Post New Answer

More Unix Commands Interview Questions

How do you execute a UNIX command in the background?

6 Answers  


What does touch command do in unix?

0 Answers  


What difference between cmp and diff commands?

0 Answers  


Explain iostat, vmstat and netstat.

3 Answers   CTS, Wipro,


Can you explain a little bit about command substitution?

0 Answers  


How to open a Database using Unix Command Please Do Reply

9 Answers   Cognizant, CTS,


what is the command to find out which shell you are running?

14 Answers  


Who command in unix?

0 Answers  


Where LOG fiels resides in AIX and pls tel me how to remove the log file

6 Answers   Vestas,


What is the different between UNIX command and UNIX shell script?

2 Answers  


how to delete entire records in unix ?

13 Answers   Cap Gemini,


How to setup sudo, only can use for particular date & time only ( for solaris10 )

1 Answers   ups,


Categories