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


Please Help Members By Posting Answers For Below Questions

What are the unix commands?

643


Which unix command to make a new directory?

687


Does cp command overwrite files?

705


What is a bash command?

718


What does this command do? Cat food 1 > kitty

1069






What does awk stand for?

683


Who wrote grep?

658


What is the behavioural difference between cmp and diff commands?

752


What does touch command do in unix?

837


What are bash commands?

673


Why is it called grep?

645


Explain command to view process running?

699


What does the command ' $who | sort –logfile > newfile' do?

892


What is grep command in unix with examples?

685


Enumerate some of the most commonly used network commands in unix?

707