Changes

From Amahi Wiki
Jump to: navigation, search
rm -rf elevated;
===MiscellaneousSED===* Retrieve System Information apaste --sysinfo* Update application domain: sed -i 's|<nowiki>http://app</nowiki>|<nowiki>http://app</nowiki>.'"$HDA_DOMAIN"'|' app.sql;* Replace string in files find ./ -type f -exec sed -i 's/string1/string2/' {} \;* Suppress Console Output (to include errors): command &> /dev/null 2>&1* Kill process: kill $(ps -gaux | grep 'process name' | awk '{print $2}')
* Remove blank lines from file:
sed -i '/^$/d' filename
* Replace text with variable:
sed -i 's/text/'$VARIABLE'/' filename;
 
===Miscellaneous===
* Retrieve System Information
apaste --sysinfo
* Update application domain:
sed -i 's|<nowiki>http://app</nowiki>|<nowiki>http://app</nowiki>.'"$HDA_DOMAIN"'|' app.sql;
* Replace string in files
find ./ -type f -exec sed -i 's/string1/string2/' {} \;
* Suppress Console Output (to include errors):
command &> /dev/null 2>&1
* Kill process:
kill $(ps -gaux | grep 'process name' | awk '{print $2}')
* Patch Comment:
# FIXME - this needs to be hosted in dl.amahi.org prior to going live!
12,424

edits