我试图将它输出到一个文件并同时打印它,我试图> test.txt在“扫描”后面使用但没有用,有人有什么建议吗?
> test.txt
sudo iwlist wlan0 scan | awk -F ':' '/ESSID:/ {print $2;}'
bash
bash ×1