- 文件为res.txt
- 命令
-
ids=$(cat res.txt | jq .data.list[].id) echo ${ids}
-
#!/bin/bash for line in `cat res.txt` do echo $line done
-
-
shell/Linux读取文件数据并赋值给变量
猜你喜欢
转载自blog.csdn.net/m0_37518413/article/details/120405643
今日推荐
周排行