A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answers were Sorted based on User's Feedback
Answer / raja
head -n <filename>
here n for no.of records we want.
ur quention my ans is
head -1 <filename>
Is This Answer Correct ? | 7 Yes | 1 No |
what is the command to get help on a UNIX terminal?
Which mode is used for allowing file write,read and append mode?
what is mount ,tell me about mount ,how can u use in real time project??
Explain the read, write, and execute permissions on a UNIX directory.
what do you understand by 'building block primitive'?
Hi All, Can you please let me know how to grep for a particular pattern in unix. I want to print the dates from the file exp.txt. the date pattern is DD:MM:YYYY, I just want to print all the dates from the file exp.txt.
8 Answers Concentrix, IBM, Symantec, TCS,
to list a particular line in the file
How does pipe () work?
What command is used to replace the existing string with some other?
How do you find out all processes that are currently running in UNIX OS?
what is the difference between pipe(|) and tee command..
how will u execute a file in unix