脚本常用写法
作者:互联网
目录
shebang
#!/usr/bin/env bash
#!/bin/bash
#!/usr/bin/python
find
find . -name "*.txt"
find . -name "*.txt" -type f -exec ls -l {} \;
grep
grep -in "xxx" /tmp/xx.txt
grep -R "xxx" --exclude-dir="xxx" xxx.txt
awk
awk '{print $2}'
ps -elL | grep main | xargs -I {} taskset -p {}
for
sed
cat
echo
标签:脚本,bin,常用,grep,xxx,usr,txt,写法,find 来源: https://www.cnblogs.com/aaron2932/p/16538768.html