Today i wrote this simple Shell script that can be useful for some of you.
Basically it replaces words inside a text file without the need to open the file. My case was i had to change paths to textures in a vrayscene file which had +35000 characters in it. It took a few seconds to do it with this.
#!/bin/bash echo "drag file here" read FICHEIRO echo "search word" read SEARCH echo "replace word" read REPLACE echo "enter new file name" read NEWFILE sed s/"$SEARCH"/"$REPLACE"/g $FICHEIRO>"$HOME/Desktop/$NEWFILE" ----- save it as yourscriptname.sh and run it in terminal (Linux), or as yourscriptname.command to run it on mac. It gets saved on the desktop by default.