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 |
Which command is used to restrict incoming messages?
Is it inbetween or in between?
What is $0 bash?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
What Command will remove a Directory in UNIX?
What is grep and sed command?
Assume that a file’s permissions give you read and write access. What operations can you perform on the file if it is in a directory which has “r”(read) only process? What operations can you perform on the file if it is in a directory which has “x”(execute) only access?
What are the dos commands?
What is time_t?
How can you see the command line history?
Name the general commands in using unix os for a beginner?
who to change the duplex setting of network interface in command line