answersLogoWhite

0

In AWK, once you have a successful selector then the action could be to print the resulting line (if thats what you wish to do). For example,

/a test/ { print ; }

would match (and print) all lines containing "a test"

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Which is the most commonly used command for referencing detailed information about a particular command in UNIX?

In Unix, use the 'man' command.


In unix command to search files for lines that match a particular string pattern given?

Use the 'grep' family of commands to search for string pattern matches in multiple files.


What is the use of execute command in unix?

There is no traditional 'execute' command in Unix.


Brief description of format command in unix?

There is no standard 'format' command in Unix.


What do CD command do in unix?

The 'CD' command is not standard for Unix. The 'cd' command, however, will change directories (folders). It is a means of navigating the Unix file system.


What is head command in UNIX?

The 'head' command will list out certain number of lines in a file from the beginning. The standard is to list the first 25 lines, but you can change that: head -100 myfile will list out the first 100 lines of myfile.


Write the UNIX command to display the number of characters lines and words in the files myfile1txt myfile2txt and myfile3txt?

Use the 'wc' command: wc myfile[123].txt


What is the Unix command to check to see who is logged in?

The "who" command.


What is the command to get the Unix version?

cat /proc/version The above answer will only work on certain systems. For most Unix systems, use the 'uname' command to get the Unix version. AIX uses the oslevel command.


What is the unix command to display the first two characters of all the lines from a file?

Assuming that the file you are looking at is a columnar file you can use the 'cut' command, as in 'cut -c1-2 filename'


Which command is the UNIX equivalent of the windows command nslookup?

dig


Which command is the UNIX is equivalent of the windows command nslookup?

nslookup