A file has 1000 lines and i want to display only 1st line
how to do it?
pls ..tel me
Answer Posted / eswar
head -n 1 filename
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the unix commands?
Which unix command to make a new directory?
Does cp command overwrite files?
What is a bash command?
What does this command do? Cat food 1 > kitty
What does awk stand for?
Who wrote grep?
What is the behavioural difference between cmp and diff commands?
What does touch command do in unix?
What are bash commands?
Why is it called grep?
Explain command to view process running?
What does the command ' $who | sort –logfile > newfile' do?
What is grep command in unix with examples?
Enumerate some of the most commonly used network commands in unix?