|
Shaken, not stirred.
When you are dead, you won't even know that you are dead. It's a pain only felt by others.
Same thing when you are stupid.
modified 19-Nov-21 21:01pm.
|
|
|
|
|
After ruminating for a while, I believe that joke should be killed by driving a steak through its heart.
If you have an important point to make, don't try to be subtle or clever. Use a pile driver. Hit the point once. Then come back and hit it again. Then hit it a third time - a tremendous whack.
--Winston Churchill
|
|
|
|
|
I am using an app called "Bulk Rename Utility"
It can be found HERE
It renames a bunch of files (thousands if you want)
According to its own documentation, it uses pattern matching, stating...
the syntax supported by this program is the same as that offered by PERL 5
...with a link to the PERL 5 site HERE
Could someone who is familiar with that standard please tell me how I can put an underscore character after the letters "DSC" in a file name ?
i.e., The "_" character (no quotes) also known as ASCII character 05Fh
Evidently, that character has special meanings and powers in the PERL syntax.
|
|
|
|
|
C-P-User-3 wrote: Evidently, that character has special meanings and powers in the PERL syntax.
If so, escape it.
|
|
|
|
|
PIEBALDconsult wrote: If so, escape it
Escape IT - wish I thort of that much earlier
but IT is where I made and still makes money (- though these days freelancing as I choose.)
can take the man out of it, but cant take it out of the man. Oops, sorry, not PC (no, not the thing on your desk "PC")
can take the person out of it, but cant take it out of the person.
Sin tack ear lol
Pressing the any key may be continuate
|
|
|
|
|
Why PERL? Use standard regex to find matches and then do a replace...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
BRU allows you to append it anywhere or replace it. If you're using that, it should allow you a preview of the new filename (assuming you're using the GUI).
|
|
|
|
|
You are Correct
Bassam Abdul-Baki wrote: it should allow you a preview of the new filename
I made an error, and now want to correct it.
Certain filenames had a sort of nomenclature like this...
"xxxxxxx_4"
Bulk Rename Utility successfully removed the "_4" as I requested (actually, "_\d", no quotes) but it also removed several thousand desirable instances of that pattern which were embedded into other file names.
i.e., the desired part is in the middle of other file names, which I did not see on the preview screen when I was targeting the pattern on the end of the file names.
|
|
|
|
|
Then remove from position might be better or backwards replace. They may also have instance count, but I'm not at my desk to verify.
I've been using BRU for years. My first thought was ugly GUI and my second was amazing GUI. It really can do anything. Just preview before accepting.
|
|
|
|
|
Bassam Abdul-Baki wrote: My first thought was ugly GUI and my second was amazing GUI.
Mind reader ?
Exact same thoughts here.
|
|
|
|
|
Bassam Abdul-Baki wrote: Then remove from position might be better or backwards replace
No, the filenames are not currently uniform, so the trailing underscore and digit (sometimes there were two digits) could be at position N, N+1, N+2, etc.
I don't know how to do a backwards replace. Is that in their help facility ?
Can you show me here ?
|
|
|
|
|
Seems to be more complicated than I remember. Try this:
In RegEx (1):
Match: (.*)-\d+([^-]+)
Replace: \1\2
|
|
|
|
|
Interesting educational activity here on CodeProject.
In my previous post, I placed these three bytes in squence
Quotation mark " (Ascii 022h)
Underscore _ (Ascii 05Fh)
The digit 4 (Ascii 034h)
Quotation mark " (Ascii 022h)
i.e., These four bytes...
"_4"
The CodeProject website removed the underscore from the screen.
A backslash put it back in.
|
|
|
|
|
What is this monstrosity of a UI?
It would be quicker to do this with a quick-and-dirty PowerShell script, IMO.
|
|
|
|
|
C-P-User-3 wrote: Bulk Rename Utility Holy Cr@p![^] That's worse than Kameisi[^]
If you're not dealing with multi-byte characters, why not try something more usable, like Lupas Rename[^]?
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Perl Special Variables[^]
Other than $_, I don't believe underscore has any significance in PERL. Perhaps it's the program itself, not the regex expression.
|
|
|
|
|
So, after years of keeping nearly EVERY work email I receive, in my Inbox, I'm trying to now go the route of keeping nothing in my Inbox. All unnecessary mail gets deleted & anything I want to hold onto, gets placed into a folder.
I feel my folder setup is a little messy though, & just looking for suggestions to see if there's a better way I can set them up. There are times I need to go back to an old email & need to shuffle through a few folders to find which folder category I filed the email under.
I basically have a folder for each dept in my company, & then for my IT dept, I have sub folders setup for each application our department works on & maintains. Plus add'l folders for general IT emails & stuff & another separate one for the ticket requests we have come in from around the company.
Anyone have an email folder structure that they like & they're happy with?
Thanks
|
|
|
|
|
Inbox.
ProjectX.
ProjectY.
...
Bugs.
Trashcan.
Sent.
I have rules to move emails to the project and bugs folders; everything else that stays in the inbox will be manually filtered.
Most emails end up in the trash .
I'd rather be phishing!
|
|
|
|
|
Simples, at 4:55pm on a Friday, CTRL+A then DEL
veni bibi saltavi
|
|
|
|
|
Print the important ones, delete everything else. If you need to respond to a printed one, scan it.
|
|
|
|
|
You left out renting storage area for all that paper that accumulated.
And - oh yeah - filing them, too. And looking through those files, which is somehow easier than email based filing?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Hence the JOKE icon on my response.
Must be a Packers or Steelers fan.
|
|
|
|
|
What's a packer steeler?
MarkTJohnson wrote: Hence the JOKE icon on my response. Real reply: ooops! Maybe you can change the icon?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
rent storage space?
shred it, then take it down to the recycling depot.
(Depending where you live may even get a few cent's back for doing it - if nothing else can feel good about saving some trees.)
Sin tack ear lol
Pressing the any key may be continuate
|
|
|
|
|
But now I cannot open attachment from my printed email.. Give me code please
Zen and the art of software maintenance : rm -rf *
Maths is like love : a simple idea but it can get complicated.
|
|
|
|