1. How do you write the contents of 3 files into a single file?
cat file1 file2 file3 > file
2. How to display
the fields in a text file in reverse order?
awk 'BEGIN {ORS=""} {
for(i=NF;i>0;i--) print $i," "; print "\n"}' filename
3. Write a command
to find the sum of bytes (size of file) of all files in a directory.
ls -l | grep '^-'| awk 'BEGIN
{sum=0} {sum = sum + $5} END {print sum}'