grep AWK

awk '/pattern/ {action}'

path: type:
find: Lang   File at      
 

one-liner

return=0
*Returns only for
a command without ';'.
2> /home/users/2/boy.jp-soy/web/tools/grep/error.log

OUTPUT

arr.count=0

Edit / SED file

     

ERROR

sh: line 4: 
BEGIN 
ACTIF 
/guess/{print $0;}
: No such file or directory
# パターンで行を抽出 ※grep awk '/guess/'
# 特定の列が特定の文字列 awk '$1=="can" && $2~/^be/'
# フォーマットで数字を出力 awk '{sprintf("%04d", NR);}'
# 偶数行のみをパイプで抽出 awk 'NR % 2==0 { print NR " " $0; }'
# awk 'pattern {action}' [input] awk '/bar/ { print $0 }' foo.txt
# -F 区切り文字指定 awk -F, '{print $2}'; awk -F'\t' '{print $2}'
find BOM: find ./ -type f -name '*.php' -exec file {} \; | grep "with BOM"
find BOM: find ./ -type f -name '*.php' -exec file {} + | grep "(with BOM)"
remove BOM: sed -i -s -e '1s/^\xef\xbb\xbf//' *.html
| TTS
target=
SESSION
echo variablesecho global variables