Search Results

Search: Posts Made By: anthonyjstewart
20,687
Posted By anthonyjstewart
Ah! SO I was missing something. ...
Ah!

SO I was missing something.

Problem solved.

You are my god!

Thanks a lot.
20,687
Posted By anthonyjstewart
EXAMPLE 1: COMMAND LINE STRING Working...
EXAMPLE 1: COMMAND LINE STRING

Working command line command: grep -rl POP * | xargs sed -i 's/POP/MOM/g'

This command should access all files in the current directory that have POP in...
20,687
Posted By anthonyjstewart
Works on command line but not in script
Hey guys. Hopefully this is an easy one but having reference similar problems on the web I still can't fix it.

I am doing a recursive find and replace from a script. Of course I could just run...
2,265
Posted By anthonyjstewart
I need the whole file name not just the image. I...
I need the whole file name not just the image. I need image.jpg.

The solution I have seems to work perfectly but always hapy to see better solutions.
2,265
Posted By anthonyjstewart
Yup all sorted now thanks IMAGE=`ls -lt...
Yup all sorted now thanks

IMAGE=`ls -lt /Users/TonysiMac/Public/WebCam/images | tail -1 | awk '{print $9}'`
echo $IMAGE

Now I can move the image. My camera is tethered but takes multiple...
2,265
Posted By anthonyjstewart
no that gave me the time, parameters, owner too. ...
no that gave me the time, parameters, owner too.

I worked it out with this:

ls -lt /Users/TonysiMac/Public/WebCam/images | tail -1 | awk '{print $9}'

Cheers
2,265
Posted By anthonyjstewart
Grep Help
Hey there

I have extracted using ls -lt and tail the last file generated in my webcam directory.

It gives me this result

-rw-rw-rw- 1 TonysiMac staff 505429 Jan 10 10:45 IMG_0006.jpg

...
Showing results 1 to 7 of 7

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