Since the replace of strings with slashes is not a linear task with the sed, here’s a tip:
cat <Original_File> | sed “s%”string_to_replace”%final_string%g” > Destination_File
Since the replace of strings with slashes is not a linear task with the sed, here’s a tip:
cat <Original_File> | sed “s%”string_to_replace”%final_string%g” > Destination_File
Three simple commands to fix the directory/files permission:
chown -R <user>.<group> <directory>
find <directory> -type f | xargs chmod 644
find <directory> -type d | xargs