What will be the effect of the following commands?
who | grep 'mary'
who | grep '^mary'
grep '[Uu]nix' ch?/*
ls -l | sort -k4n
sed '/^$/d' text > text.out
sed 's/\([Uu]nix\)/\1(TM)/g' text > text.out
date | cut -c12-16
who | grep 'mary'
Show any who output lines that have the pattern mary
who | grep '^mary'
Show any who output lines that begin with the pattern mary
grep '[Uu]nix' ch?/*
Show lines that contain the pattern Unix or unix in all files within any directory that matches the pattern ch? (that is, ch followed by a single character)
ls -l | sort -k4n
Sort the output of ls -l numerically, starting with the fourth field of each output line
sed '/^$/d' text > text.out
Save in the file text.out the contents of the file text with the exception of any lines that contain no characters at all (e.g., are blank)
sed 's/\([Uu]nix\)/\1(TM)/g' text > text.out
Convert any occurrence of Unix or unix to append (TM) immediately after the pattern on every line of the file text, saving the output in text.out
date | cut -c12-16
Show the 12th-16th characters only of the output of the date command
You might also like to view...
In a monochrome monitor, the bitmap is displayed by manipulating the pattern of "off" and "on" pixels displayed on the screen.
Answer the following statement true (T) or false (F)
Identify the two types of cron tables the cron system daemon uses.
What will be an ideal response?
When using macros in a document, you must save the document with a ________ file type
A) .html B) .dotx C) .docm D) .docx
You work for a small pet shop and the store manager asks you to convert some of his paper records to an online system. A simple database exists and the owner wants to add to the existing database. Your supervisor wants a list of all the customers who purchased something recently from the store. Can you do this with the current database design?
What will be an ideal response?