Search Results

Search: Posts Made By: scribling
540
Posted By scribling
Wow. I like the look of those. They seem...
Wow. I like the look of those.

They seem like they'd be much easier to edit being that we're just calling each piece of the file a different variable.

I don't completely understand it yet,...
540
Posted By scribling
Hey, I got lucky and worked it out myself. I...
Hey, I got lucky and worked it out myself. I thought it would be harder.



#!/bin/sh

for file in "$@"
do
ext=${file##*.}
base=${file%.*}
num=${base##*[r_]}
...
540
Posted By scribling
Yes well, unfortunately, I don't get to keep up...
Yes well, unfortunately, I don't get to keep up with this stuff as often as I'd like, since this isn't really part of my job. I took a stab at it but failed miserably. So rather than have my boss...
540
Posted By scribling
"Revision up" instead of version up
I need to alter this script to work with a revision instead of a version.
RF_102_209_200_v001_r01.nk is the new format and I'll be revisioning up the r01 portion and not the v001.


#!/bin/sh ...
250
Posted By scribling
That works great! Thank you. It seems to...
That works great!
Thank you.

It seems to easy now that I see it done correctly.
250
Posted By scribling
That works but I lose the "initials." The...
That works but I lose the "initials."
The file produced is 098_FGT_550_comp_v0003.nk

Once I get this working, several different people will be using it, so I need it to restore the initials.
250
Posted By scribling
Versioning up a file with initials?
I have this code that works great ...

#!/bin/sh

for file in "$@"
do
ext=${file##*.}
base=${file%.*}
num=${base##*v}
zeroes=${num%%[!0]*}
...
543
Posted By scribling
Ok, here's a crazy question: Does anyone know how...
Ok, here's a crazy question: Does anyone know how to do this on windoz that will produce windoz shortcuts?
543
Posted By scribling
Yes. Thank you. I'll do that. I was thinking...
Yes. Thank you. I'll do that. I was thinking of adding some interactivity to the script for the 53:14 but it works so well, I only need to use it once per item.

The code is genius, works like...
543
Posted By scribling
The final script
Fantastic success! The script works even better than I'd hoped after I set some variable for other files I want links to.

Thanks so much! This code is truly awesome.
#!/bin/sh
#Variables...
543
Posted By scribling
Without trying that code, it looks to be exactly...
Without trying that code, it looks to be exactly what I need. Thank you. I'm fairly confident it will work. Also, I can easily use an underscore instead of a space, which I will per your...
543
Posted By scribling
In production we have NDAs. I can't just go...
In production we have NDAs. I can't just go posting stuff like that. I'll have to make up similar paths. Yes, even the names of the production are protected.


I still don't understand why you...
543
Posted By scribling
Thank you for taking the time to reply, but I...
Thank you for taking the time to reply, but I really don't understand what the big confusion is.

I need to search several directories for a specific directory name, which will occur in every...
543
Posted By scribling
Ah, yes I see. Your assumptions are right. I do...
Ah, yes I see. Your assumptions are right. I do expect a long string to be returned from find, and I do need to extract characters from that long path and pass them to the ln command.
I'm using...
543
Posted By scribling
Calling specific characters from a find variable
I'm trying to do something like this:


find . -name blablabla -exec ln -s ./"{:53:14} blablabla" \;


The idea is find blablabla and create a symbolic link to it using part of it's path and...
1,538
Posted By scribling
Wow, you're right. I completely wrote that...
Wow, you're right. I completely wrote that command backward in the original post. It should have been mv ../fa/la/bla ./.bla

I got great feedback even though I completely screwed up the...
1,538
Posted By scribling
That's it.
I'll try that newer code. I'm sure it'll work great. Thanks again.

I find it funny that I know so little about simple coding like this and a lot of people think I'm some sort of genius. If...
1,538
Posted By scribling
Yes! That's what I'm looking for
Actually, I wanted it to fail if no files matched.

I like the cp "$c" ".${c##*/}" idea. I'll try that.
Thanks!

Thanks for allowing me to vent. My wife can't comprehend. I told her it's...
1,538
Posted By scribling
No, that's not the way WE do it ...
It drives me crazy when I start a new job and they say, "This is how we do ..."
I sit and watch and when they finish I usually say, "You do that every time, with every file?"
"Yes!"
"I could...
1,538
Posted By scribling
I was quite proud of it. It works fast and...
I was quite proud of it. It works fast and efficiently. BTW there is no security issue here. I work in visual fx. We use files called cdl (color decision list) ... well if the cdl file is in the...
1,538
Posted By scribling
I figured it out. It may be convoluted but it...
I figured it out. It may be convoluted but it works.

c=$(cd ../../bla/bla ; find . -name *.xyz) # Set variable c to filename (./filename.xyz)
c=$(c:3:23) # Remove "./" from c variable's filename...
1,538
Posted By scribling
Mv or cp with a . (dot)?
How can I rename a file with a . prefix?
I actually need to copy the file but the . seems to be very tough to do.

mv ./bla ../fa/la/.bla - doesn't work. I've tried all sorts of bracketing and...
496
Posted By scribling
Yes! That works perfectly. Thank you!
Yes! That works perfectly. Thank you!
496
Posted By scribling
That's useful but not exactly what I'm looking for
That works but changes the first number.
I need one that changes the last number and ignores the first.

So, 093_180_v001_004.aep ; would become 093_180_v001_005.aep

The thing is that the...
496
Posted By scribling
Alter existing script to work with longer file name
I have this script:
#!/bin/sh

for file in "$@"
do
ext=${file##*.}
base=${file%.*}
num=${base##*v}
zeroes=${num%%[!0]*}
num=${num#$zeroes} ...
Showing results 1 to 25 of 62

 

Featured Tech Videos

All times are GMT -4. The time now is 05:30 PM.
Unix & Linux Forums Content Copyright 1993-2019. All Rights Reserved.
Privacy Policy