2018. 11. 27.

batch replace string in files by command line

batch replace string in files by command line
sed -i — ‘s/want_str/rep_str/g’ file_patterns

ex) -i — ‘s/abc/123/g’ *.txt




November 27, 2018 at 01:06PM

2018. 11. 10.

Listing wifi at command line in Mac OS X

Listing wifi at command line in Mac OS X
/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s

Or

cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources 
./airport -s 


November 10, 2018 at 04:16PM