Question: . Write a program called nf.sh to display the number of files in your current directory. 2. Write a program called whos.sh to display a
. Write a program called nf.sh to display the number of files in your current directory. 2. Write a program called whos.sh to display a sorted list of the logged-in users. Just display the usernames and no other information.
3. Write a program called twice.sh that takes a single integer argument and double its value. Example: ./twice.sh 15 30 ./twice 0 0 4. Given the following variable assignments: x=* y=? z='one two three' now=$'>'
And these files in your current directory:
names test1 u vv zebra What is the output of the following commands? $echo *** error *** $echo $x $echo "$y" $echo $z | wc -l $echo "$z" | wc -l $echo _$now_ $echo hello $symbol out $echo "\"" $echo 'Is 5 * 4 > 18 ?' $echo \*\*\* $echo \$$symbol $echo $\$symbol
UNIX
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
