Search Results

Search: Posts Made By: scribling
240
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.
240
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.
240
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]*}
...
530
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?
530
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...
530
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...
530
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...
530
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...
530
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...
530
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...
530
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,467
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,467
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,467
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,467
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,467
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,467
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,467
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...
485
Posted By scribling
Yes! That works perfectly. Thank you!
Yes! That works perfectly. Thank you!
485
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...
485
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} ...
560
Posted By scribling
That's it! Thanks!
That's it! Thanks!
560
Posted By scribling
[Solved] Count characters of variable from right
My variable is something like:

f="/Volumes/VERVE/MOOTON_CALL/01_shots/XX/xx0195/Projects/program/rs0195_v400001.aep"

I use ${f:63:6} to call "rs0195" as characters counted from the left, but...
771
Posted By scribling
${f:0:6} worked perfectly. Thank you.
${f:0:6} worked perfectly.

Thank you.
771
Posted By scribling
Altering a variable
Can I take an argument input, lets say it's, hg0000_xy1_v2, in the script it becomes f ... then hack off the end of the filename to change the variable to hg0000 only.

I tried using sed but can't...
Showing results 1 to 25 of 58

 

Featured Tech Videos

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