bash cat file and rewrite it same line code example
Example: bash cat file and rewrite it same line
sed -e ... "datafile" >"datafile.tmp" && mv -f "datafile.tmp" "datafile"
sed -e ... "datafile" >"datafile.tmp" && mv -f "datafile.tmp" "datafile"