Centos和Ubuntu最小化安装命令
Centos 最小化安装命令
1 | yum install vim iotop bc gcc gcc-c++ glibc glibc-devel pcre \ |
Ubuntu 最小化安装命令
1 | sudo apt-get install build-essential cmake pkg-config qt4- qmake libqt4-dev desktop-file-utils \ libavformat-dev libavcodec-dev libavutil-dev libswscale- dev libasound2-dev libpulse-dev libjack-jackd2-dev \ libgl1-mesa-dev libglu1-mesa-dev libx11-dev libxfixes-dev libxext-dev libxi-dev libxinerama-dev selinux-utils |
删除一个文件里面的所有空格
#grep
grep -v "^$" a.txt
grep [^$] ip1
#sed
sed '/^$/d' data.txt
sed '/^\s*$/d' data.txt
#awk
awk NF data.txt
awk '!/^$/' data.txt
#tr
tr -s '\n' < data.txt
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Mr.yang 个人博客!
评论