Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #/bin/sh
- sudo apt-get install curl
- curl -R -O http://www.lua.org/ftp/lua-5.0.tar.gz
- tar zxf lua-5.0.tar.gz
- cd lua-5.0
- sudo make linux test
- sudo apt-get install libncurses5-dev
- sudo apt-get install libevent-openssl-2.0-5
- sudo apt-get install libssl-dev
- curl -R -O elinks.or.cz/download/elinks-current-0.12.tar.gz
- tar zxf elinks-current-0.12.tar.gz
- cd elinks-current-0.12*
- ##################
- # just an idea for editing a bunch of lines in a file/files
- ##################
- # starts here
- ##
- config[0]='#some config line'
- config[1]='#Removed Comments'
- config[2]='#YET_ANOTHER_+CONFIG='
- # single and double quotes matter when nesting variables '$var' vs "$var" especially for whitespace/special characters
- # iterating for loop ... http://www.cyberciti.biz/faq/bash-iterate-array/
- for var in "${config[@]}"
- do
- LINE="$var"
- #string slicing ${str:0:${#str} - 20}
- #${[variableName]:[startIndex]:[length]}
- # len of string is ${#str} ... http://tldp.org/LDP/abs/html/string-manipulation.html
- NEW_LINE="${LINE:1}"
- echo "$NEW_LINE"
- # replace lines in some file
- #sed "s/'$NEW_LINE'/'$LINE'/g" /some/path/to/file
- done
- ##
- # idea Ends here
- ##################################
- ./configure && sudo make && sudo make install
Advertisement
Add Comment
Please, Sign In to add comment