Joe*_*ale 0 grep colors shell-script
我目前正在用 raspberry pi 编写一个程序,它可以让我查看文件内部并以彩色显示我输入的内容我想我需要做一些事情,--colour
但我不知道该怎么做 100%
这是我当前的代码。
#!/bin/bash
echo "Enter the name of the file to search within"
read file
echo "Enter what you would like to look for"
read search
Run Code Online (Sandbox Code Playgroud)
然后我希望 grep 行。感谢您提供任何意见!