shell脚本学习日志

作为linux新手,对shell脚本一直抱着敬畏的心理,把自己学到的命令记录在这里吧,一直记性不太好~

1、正则:*[0-9]* *[^0-9]* ^表示非

2、管道作为输入:

ls *[0-9]* | while read line
do
input=${line}
echo $input
done

可以用管道把多个程序联合起来工作~

慢慢补充吧~

原文地址:https://www.cnblogs.com/changxiaoxiao/p/2870409.html