Forrest logo
back to the fastmod tool

fastmod:tldr:0ac48

fastmod: Replace for an exact string without prompt for a confirmation, printing changed files.
$ fastmod --accept-all --print-changed-files --fixed-strings ${exact_string} ${replacement}
try on your machine

The command fastmod is being used with several options and arguments:

  • --accept-all: This option tells fastmod to automatically accept all changes without prompting for confirmation.
  • --print-changed-files: This option instructs fastmod to print the names of the files that have been modified.
  • --fixed-strings: This option indicates that the search string and replacement string to be provided are to be treated as exact and not interpreted as regular expressions.

The ${exact_string} is a placeholder for the actual string that you want to search for and replace. It should be replaced with the specific string you wish to find in the target files.

The ${replacement} is a placeholder for the actual string that will be used to replace the found occurrences of ${exact_string}. It should be substituted with the desired replacement string.

To summarize, the command is using fastmod to search for ${exact_string} in files, replacing it with ${replacement}, and then printing the names of the modified files. It accepts all changes without confirmation. The --fixed-strings option ensures that the search and replacement strings are treated as exact matches.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the fastmod tool