Search Results

Search: Posts Made By: LuckyTommy
5,425
Posted By LuckyTommy
Yes, I tried that first with grep but I was also...
Yes, I tried that first with grep but I was also getting some strange other file types that had JPEG in the meta data. Thats why I switched to *.jpg to get only files with the jpg extension.
5,425
Posted By LuckyTommy
Final Code
For anyone interested, here's the final working code for the shell script. I've included comments to explain whats going on.

#! /bin/sh

####################
# Since filenames have spaces,...
5,425
Posted By LuckyTommy
Skrynesaver, thanks for the response. Do you...
Skrynesaver, thanks for the response.

Do you mind helping me decipher this code for a moment:


for i in $(file * |grep JPEG| cut -d\: -f1);do
export i;
ctime=$(perl -e ' @details = stat...
5,425
Posted By LuckyTommy
How to move files based on filetype and time created?
Hi,

I'm trying to improve my Unix skills and I'm wondering what is the best way to move some files based on filetype and attributes like time created?

For instance, lets suppose I have a...
Showing results 1 to 4 of 4

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