Find and Replace Template

From wiki.jriver.com
Revision as of 22:33, 24 May 2015 by Glynor (talk | contribs)
Jump to navigation Jump to search
See also: {{#if:Rename, Move, and Copy Files |[[:Rename, Move, and Copy Files{{#if:||{{{l1}}}}}]] |Error: Template must be given at least one article name

}}{{#if:|{{#if:|, | and }} [[:{{{2}}}{{#if:||{{{l2}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{3}}}{{#if:||{{{l3}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{4}}}{{#if:||{{{l4}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{5}}}{{#if:||{{{l5}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{6}}}{{#if:||{{{l6}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{7}}}{{#if:||{{{l7}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{8}}}{{#if:||{{{l8}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{9}}}{{#if:||{{{l9}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{10}}}{{#if:||{{{l10}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{11}}}{{#if:||{{{l11}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{12}}}{{#if:||{{{l12}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{13}}}{{#if:||{{{l13}}}}}]] }}{{#if:|{{#if:|, |, and }} [[:{{{14}}}{{#if:||{{{l14}}}}}]] }}{{#if:|, and [[:{{{15}}}{{#if: || }}]] }}{{#if:| —
Error: Too many links specified (maximum is 15)

}}

The Find & Replace Template is used to alter the existing file path by searching for text in the original filename, and replacing it with new text. It is often most useful when moving large sets of files from one disk or storage location to another. Unlike the Filename and Directories Templates, the Find & Replace Template is used to transform the existing filename.

For example, you might want to:

  • move all of the files from Drive E to Drive M, or
  • move all of the files from /Users/<USERNAME>/Music over to /Users/Shared/Media/Audio/Music
  • copy all of the files from a network drive to a local disk, while preserving the original filename and directory structure

The Find & Replace Template is perfect for these kinds of tasks, where you want to preserve the existing file and folder structure on disk, but alter it in specific ways.

Use

  • It can be combined with the other Rename, Move, and Copy Files Templates, but usually it is simplest to use it by itself.