我有很多行的 txt 文件,其中大部分是重复的,想要在包含“find”的每一行上进行更改,在最后一个“/”上进行分隔并在其后添加“-name”。
文本文件:
find /etc/cron.*
find /etc/inet.d/*.conf
find /etc/rc*
grep root /etc/passwd
预期视图:
find /etc/ -name cron.*
find /etc/inet.d/ -name *.conf
find /etc/ -name rc*
grep root /etc/passwd