Issue
I wish to remove all caret characters from all files present in the current directory. Please help.
id='dv4'>
Solution
You must tell sed
to edit the file in place by specifying the the -i
option, otherwise sed
will write to its stdout.
You're not passing any file names to sed
. Use {}
syntax of find
to pass matched file names.
find . -type f -exec sed -i 's/\^//g' {} +
Please note that to replace matched patterns with nothing, you must leave the replace part of the substitution empty.
Answered By - ziggurat Answer Checked By - Mary Flores (WPSolving Volunteer)