- In the file specified line (n) insert designated contents:
sed -i "niecho "haha"" a
After the execution, the n-th row is inserted into a fileecho "haha"
-
Multi-threaded compression tool
- installation
yum install -y pigz
- use
tar -cvf - xxx/ | pigz -p 16 > xxx.tar.gz