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
- # Tue Aug 23 12:38:17 PDT 2011 updated and cleaned up
- #
- 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 | cut -d '(' -f 1,2 )
- viver=$(vi --version | grep 'compiled' | cut -d '(' -f 1 )
- gdbver=$(gdb --version | grep 'GNU gdb' | cut -d '(' -f 1 )
- darver=$(uname -v | cut -d : -f 1)
- gccver=$(gcc --version | head -1| cut -d '(' -f 1,2)
- echo -e "$macver\n$sysver\n$darver\n$bashver\n$viver\n$gdbver\n$gccver"
- #
- #EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement