Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # genconfig.sh
- # Israel Torres
- # generate system configuration output
- # Tue May 10 21:14:40 PDT 2011 further beautification applied
- macver=$(sw_vers | cut -f 2 | tr '\n' ' ')
- sysver=$(system_profiler SPHardwareDataType | grep -E 'Processor Name|Processor Speed|Memory' | cut -d : -f 2 | sed 's/^ //g' | tr '\n' ' ')
- #bashver=$(bash --version | grep version)
- bashver=$(bash --version | grep version | cut -d '(' -f 1,2 )
- #viver=$(vi --version | grep 'compiled')
- viver=$(vi --version | grep 'compiled' | cut -d '(' -f 1 )
- gdbver=$(gdb --version | grep 'GNU gdb' | cut -d '(' -f 1 )
- #darver=$(uname -v)
- darver=$(uname -v | cut -d : -f 1)
- echo -e "$macver\n$sysver\n$darver\n$bashver\n$viver\n$gdbver"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement