Bash-scripting Extracts all files with the .txt extension and renames them with the TXT_RENAME_PREFIX if exists as a local variable. If not, it uses the default value = "RN_" Here an example: Another example with the TXT_RENAME_PREFIX variable set. Execution: You need to open your terminal and type: $ bash <File_name> <Direction_to_be_altered>