hombrew is required
brew install caskroom/cask/brew-cask
brew cask install xquartz
type your password
brew tap homebrew/science
brew install gcc
brew install r
hombrew is required
brew install caskroom/cask/brew-cask
brew cask install xquartz
type your password
brew tap homebrew/science
brew install gcc
brew install r
#!/bin/bash | |
if [ $# -ne 1 ] | |
then | |
echo "Syntax: $0 FILE" | |
echo $0 - display a random line from FILE. | |
exit 1 | |
fi | |
RAND=`od -d -N2 -An /dev/urandom` | |
LINES=`cat "$1" | wc -l` | |
LINE=$(( RAND % LINES + 1 )) |