[BASH][HELP] Can someone help me write a script to rename files? - Programming On Unix
Users browsing this thread: 2 Guest(s)
|
|||
Can be done with a for loop, using a bit of extracting with sed, and formatting with printf :)
Try to do it as an exercise ! extract the season number using sed, same for the episode. then use printf to create a new name for your file. Then move the old name to the new name ! |
|||
Messages In This Thread |
[BASH][HELP] Can someone help me write a script to rename files? - by neo1691 - 06-09-2014, 05:22 AM
RE: [BASH][HELP] Can someone help me write a script to rename files? - by venam - 06-09-2014, 05:45 AM
RE: [BASH][HELP] Can someone help me write a script to rename files? - by neo1691 - 06-09-2014, 06:22 AM
RE: [BASH][HELP] Can someone help me write a script to rename files? - by z3bra - 06-09-2014, 07:42 AM
RE: [BASH][HELP] Can someone help me write a script to rename files? - by neo1691 - 06-09-2014, 09:32 AM
RE: [BASH][HELP] Can someone help me write a script to rename files? - by z3bra - 06-09-2014, 01:35 PM
RE: [BASH][HELP] Can someone help me write a script to rename files? - by neo1691 - 06-09-2014, 01:38 PM
|