Donnerstag, 10. März 2011

Shell 001: How to mv a big number of files efficiently

Suppose a directory contains ten files of the following structure:


1scf-001.mop
1scf-002.mop
1scf-003.mop
1scf-004.mop
1scf-005.mop
1scf-006.mop
1scf-007.mop
1scf-008.mop
1scf-009.mop
1scf-010.mop


The question is, how can the files be changed such that both '1scf' and 'mop' are changed to 'mutant' and 'inp' on one command?

Keine Kommentare:

Kommentar veröffentlichen