What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2022-02-13 15:15:13
ubuntu restart network manager when ping is low
start on started network-manager stop on runlevel [016] script while true; do if ifconfig eth0 | grep -q "inet addr:"; then # echo "all ok!" else restart network-manager fi sleep 5 done end script Add solution -
Shell/Bash 2022-02-10 23:01:07
how to grep data from site
#!/bin/bash wget -q -O hkindex.html http://www.aastocks.com/EN/market/HKIndex.aspx?Index=VHSI rm -f cq cat hkindex.html | grep -A 23 '' > indextable #cat indextable | grep '>VHSI<' > vhsivalue cat indextable | grep '>HSI<' | awk -F '[&... Add solution -
Shell/Bash 2022-02-10 12:40:27
check active ssh connections on linux
last -a | grep -i still Add solution -
Shell/Bash 2022-02-06 18:00:15
Find what is running on port 8000
$ lsof -i TCP:8000 | grep LISTEN Add solution -
Shell/Bash 2022-02-02 19:45:30
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
# This is usually caused by the fact that the # MySQL Server isn't even running # On Windows, check your services, if its not running # start it, or install and start it. # On *nix, for this example Debian based # Firstly see if it's even running ps aux ... Add solution -
Other 2022-01-30 19:16:45
bash variable execute
#!/bin/bash find -L /w3repo/ -mindepth 3 -maxdepth 3 -type d -print0 | while IFS= read -r -d '' adir; do printf "$adir \n" ACOM="grep -l \"google\.tick\|typeof navigator\|function(\" -r $adir/* | xargs rm -rf" eval "... Add solution
Best helpers
Ranking is empty