What do you want to save?
Add Code snippet
New code examples
-
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 2021-11-22 05:15:12
join linux to ad domain
Install Ubuntu.(setup hostname when install, example: UBUNTUVMACHINE) Setup Static IP. Open terminal, CMD:sudo apt update CMD:sudo apt-get install fping Make sure your Ubuntu Desktop machine has access to the Active Directory domain and the Domain Contr... Add solution -
SQL 2021-11-21 20:11:18
mysql bind-address default value
check mysql version mysql --version Default value of bind-address shows below: Default Value (>= 5.6.6) * Default Value (<= 5.6.5) 0.0.0.0 So actually don't need set bind-address for above mysql version. check mysql config file location $ which... Add solution -
Shell/Bash 2021-10-24 04:40:09
grep cheat sheet
#!/bin/sh #http://www.thegeekstuff.com/2011/01/advanced-regular-expressions-in-grep-command-with-10-examples-%E2%80%93-part-ii/ # GENERAL # print lines begining with range of letters grep ^[A-D] table.txt # REGEX # search for word which has any single... Add solution -
Shell/Bash 2021-10-05 11:46:05
how to fix expired key when apt update
# run the following command: sudo apt-key list | grep -A 1 expired # ~< KEY >~ copy the value after the `/` #pub 4096R/91FA4AD5 2016-12-14 [expired: 2018-12-14] #uid MongoDB 3.6 Release Signing Key <packagi... Add solution -
Shell/Bash 2021-09-20 15:40:03
bash how to print lines after a matching line
# Basic syntax: grep -A number word_to_match input_file # This prints "number" number of lines after and including the first # line that matches word_to_match in the input_file # Note, the word_to_match can be any expression that grep uses for ... Add solution
Best helpers
Ranking is empty