lamiastella

formatting

May 19th, 2016
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1.   1 #!/bin/bash
  2.   2 size=$(df -h / | grep  "\/" | awk '{print $4}')
  3.   3 printf "\t Free Space is:\t%s:$size\n"
  4.   4 printf "\t Machine Type is:\t%s:$MACHTYPE\n"
  5.   5 printf "\t Number of files in the directory:\t%s:$(ls -1 | wc -l)\n"
  6.   6 printf "\t Report generated on:\t%s:$(date +"%m/%d/%y")\n"
Advertisement
Add Comment
Please, Sign In to add comment