sed output to new file code example
Example 1: sed output to file
sed 's/Hello/Hi/g' file-name > file
Example 2: gsed comand store file
sed -i 's/Hello/Hi/g' file-name
sed 's/Hello/Hi/g' file-name > file
sed -i 's/Hello/Hi/g' file-name