版权声明:©懂你科技(https://dongni.net/) https://blog.csdn.net/u011087213/article/details/84637954
方法:
1 awk ‘sub($1,"")’
2 awk ‘{KaTeX parse error: Expected 'EOF', got '}' at position 12: 1=""; print}̲' 3 awk '{for(…i}
else {print $i}
}
}’
18:38:55 ~/program/dongde br: dev* history | tail -25 | awk 'sub($1,"")'
git log
ls
git checkout dev
git log
ls
mkdir c
mv ../c/* ./c/
cd ..
rm -rf c
cd -
ls
cd c
ls
cd ..
git add .
git commit -m "add c directory and files"
git push origin dev
git log
history | tail
history | tail -15
history | tail -17 | awk '{print sub($1,"")'
history | tail -17 | awk 'sub($1,"")'
history | tail -17 | awk '{$1="", print}'
history | tail -17 | awk '{$1=""; print}'
history | tail -25 | awk 'sub($1,"")'
18:39:13 ~/program/dongde br: dev* history | tail -25 | awk '{$1=""; print}'
ls
git checkout dev
git log
ls
mkdir c
mv ../c/* ./c/
cd ..
rm -rf c
cd -
ls
cd c
ls
cd ..
git add .
git commit -m "add c directory and files"
git push origin dev
git log
history | tail
history | tail -15
history | tail -17 | awk '{print sub($1,"")'
history | tail -17 | awk 'sub($1,"")'
history | tail -17 | awk '{$1="", print}'
history | tail -17 | awk '{$1=""; print}'
history | tail -25 | awk 'sub($1,"")'
history | tail -25 | awk '{$1=""; print}'
18:39:19 ~/program/dongde br: dev* history | tail -25 | awk '{for(i=2;i<=NF;i++) {
→ if(i<NF) {printf "%s ",$i}
→ else {print $i}
→ }
→ }'
mv ../c/* ./c/
cd ..
rm -rf c
cd -
ls
cd c
ls
cd ..
git add .
git commit -m "add c directory and files"
git push origin dev
git log
history | tail
history | tail -15
history | tail -17 | awk '{print sub($1,"")'
history | tail -17 | awk 'sub($1,"")'
history | tail -17 | awk '{$1="", print}'
history | tail -17 | awk '{$1=""; print}'
history | tail -25 | awk 'sub($1,"")'
history | tail -25 | awk '{$1=""; print}'
history | tail -25 | awk '{for(i=2;i<=NF;i++) {
{printf "%s ",$i}
{print $i}