我想使用 find 命令搜索一个目录中的所有文件:
find . * -exec ll {} \;
结果显示每个文件有四个 (!) 结果:
file123
./test/file123
test/file123
是否可以./test/file123使用 find-out-of-the-box-command仅显示第二个结果(因此不使用诸如 之类的东西| grep '^\./')?
| grep '^\./'
我正在使用最新版本的 HP/UX。
find hp-ux exec
exec ×1
find ×1
hp-ux ×1