Portál AbcLinuxu, 12. července 2025 13:28
Řešení dotazu:
find adresar -type f -print0 | xargs -0 sed -i 's/XCOMM/#/'
find adresar -name '*.txt' -exec sed -i 's/XCOMM/#/' '{}'
Přijde mi to čistší než kombinovat find s xargs.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.