fork download
  1. tom:~> cat mysystem.sh
  2. #!/bin/bash
  3. clear
  4. printf "This is information provided by mysystem.sh. Program starts now.\n"
  5.  
  6. printf "Hello, $USER.\n\n"
  7.  
  8. printf "Today's date is `date`, this is week `date +"%V"`.\n\n"
  9.  
  10. printf "These users are currently connected:\n"
  11. w | cut -d " " -f 1 - | grep -v USER | sort -u
  12. printf "\n"
  13.  
  14. printf "This is `uname -s` running on a `uname -m` processor.\n\n"
  15.  
  16. printf "This is the uptime information:\n"
  17. uptime
  18. printf "\n"
  19.  
  20. printf "That's all folks!\n"
Success #stdin #stdout 0.02s 5312KB
stdin
1
2
10
42
11
stdout
This is information provided by mysystem.sh.  Program starts now.
Hello, .

Today's date is Wed Feb  8 21:28:05 Local time zone must be set--see zic manual page 2012, this is week 06.

These users are currently connected:

This is Linux running on a i686 processor.

This is the uptime information:

That's all folks!