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"
In Unix, use the 'man' command.
Use the 'grep' family of commands to search for string pattern matches in multiple files.
There is no traditional 'execute' command in Unix.
There is no standard 'format' command 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.
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.
Use the 'wc' command: wc myfile[123].txt
The "who" command.
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.
Assuming that the file you are looking at is a columnar file you can use the 'cut' command, as in 'cut -c1-2 filename'
dig
nslookup