IsraelTorres

genconfig.sh

May 10th, 2011
273
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # genconfig.sh
  3. # Israel Torres
  4. # generate system configuration output
  5. macver=$(sw_vers | cut -f 2 | tr '\n' ' ')
  6. bashver=$(bash --version | grep version)
  7. viver=$(vi --version | grep 'compiled')
  8. gdbver=$(gdb --version | grep 'GNU gdb')
  9. darver=$(uname -v)
  10.  
  11. echo -e "$macver\n$darver\n$bashver\n$viver\n$gdbver"
RAW Paste Data