I am writing script, I need to use sed for changing somefiles, I want to know if the operation failed by an error such as “No Such File” could I save the error in a text file or in a variable? and how?
I am writing script, I need to use sed for changing somefiles, I want
Share
You can redirect the
stderrby:stdinstdoutstderr