Clear log file content without impacting service that is running (in batch):
find . -name "*.log" -exec bash -c ">{}" \;
Subsitute file content in batch:
find -name "*.xml" -exec bash -c "sed -e 's/aaa/bbb/' {} > {}" \;
Clear log file content without impacting service that is running (in batch):
find . -name "*.log" -exec bash -c ">{}" \;
Subsitute file content in batch:
find -name "*.xml" -exec bash -c "sed -e 's/aaa/bbb/' {} > {}" \;