Im trying to use -exec to invoke a sed statement below:
find '$path' -mtime +$daysold -exec sed -E -f redact.sed file.txt {} \;.
what does {} do? and what goes inside {}?
Im trying to use -exec to invoke a sed statement below:
find '$path' -mtime +$daysold -exec sed -E -f redact.sed file.txt {} \;.
what does {} do? and what goes inside {}?
it should be find "$path" -mtime +$daysold -exec sed -E -f redact.sed file.txt \;
and put $path in " " instead of the ' ', also remove the braces