小编Rub*_*enM的帖子

如何使用 Firefox 打开文件中的所有链接并忽略注释?

所以该文件包含类似的数据

# entertainment
youtube.com
twitch.tv

# research
google.com
wikipedia.com
...
Run Code Online (Sandbox Code Playgroud)

我想将该文件作为脚本中的参数传递,该脚本将打开所有不以 # 开头的行。有关如何做的任何线索吗?

到目前为止我所拥有的:

for Line in $Lines
do
case "# " in $Line start firefox $Line;; esac
done
Run Code Online (Sandbox Code Playgroud)

一些可能有用的代码(?):

while read line; do chmod 755 "$line"; done < file.txt
Run Code Online (Sandbox Code Playgroud)

bash shell firefox command-line

1
推荐指数
1
解决办法
352
查看次数

标签 统计

bash ×1

command-line ×1

firefox ×1

shell ×1