#TIL #linux #sed 첫번째 라인만 교체
$ cat test.csv header1,header2,header3 1,2,3 2,3,1 3,1,2 $ sed -i.bak -e "1s/[^,]/x/g” test.csv $ cat test.csv xxxxxxx,xxxxxxx,xxxxxxx 1,2,3 2,3,1 3,1,2
$ cat test.csv header1,header2,header3 1,2,3 2,3,1 3,1,2 $ sed -i.bak -e "1s/[^,]/x/g” test.csv $ cat test.csv xxxxxxx,xxxxxxx,xxxxxxx 1,2,3 2,3,1 3,1,2
$ curl -s http://support-sp.apple.com/sp/product?cc=`system_profiler SPHardwareDataType | awk '/Serial/ {print $4}' | cut -c 9-` | sed 's|.*<configCode>...