添加 'shell/awk替换分隔符.md'
This commit is contained in:
parent
08c386fc67
commit
704fd926bf
1 changed files with 4 additions and 0 deletions
4
shell/awk替换分隔符.md
Normal file
4
shell/awk替换分隔符.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
```bash
|
||||||
|
# 分隔符由','切换为':',并分隔结果
|
||||||
|
cat test.txt | awk -F ',' -v OFS=':' '{printf "%s%s%s%s",$1,OFS,$2," "}'`
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue