[BASH][HELP] Can someone help me write a script to rename files? - Programming On Unix
Users browsing this thread: 3 Guest(s)
|
|||
Great, I will work on it. and then compare it with the code you have given. I haven't clicked on the show button yet!
(06-09-2014, 07:42 AM)z3bra Wrote: #!/bin/sh I have to give up with sed. I mean I looked up into it, but I clearly need to understand more about it. Can you explain those regex to me? Edit: To be more clear I was stuck to that part of sed, where I thought that how can I extract text from sed, where you can replace text using sed. I mean I was trying to do this in sed: sed -n 's/[[:digit:]]/WhatToPutHere/2p' Knowing that the second digit is the episode number. I would have used 3p where the episode number entered double digits. |
|||
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
|