How does the user view the contents of a text file in UNIX?

Answer Posted / pitambar mishra

awk '{print}' filename

sed -n 'p' filename
p : print
n : restrict printing duplicate row

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does this command do? Cat food 1 > kitty

974


What is the use of the command 'ls -x chapter[1-5]' ?

658


What is ctrl d?

588


Is it inbetween or in between?

572


How do I run a bash script?

574






What is command statement?

538


What is awk good for?

578


What are the commands in UNIX to list the files in a Directory?

610


What is the comma to display different lines that are found when compare two files?

590


What does the command '$ls | wc –l > file1' do?

675


How do I clear my terminal history?

576


How to find $ai_serual resolved path by using unix

1020


How do I find previous commands in unix?

592


What is the difference between cat command and more command?

596


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

949