Search Results

Search: Posts Made By: srdconsulting
5,020
Posted By srdconsulting
With much help from quirkasaurus this problem was...
With much help from quirkasaurus this problem was resolved using BASH script below:


#!/bin/sh

cd "$1"

/bin/ls |
grep '.jpg$' |
while read file ; do
first_letter=`echo $file | cut -c 1...
5,020
Posted By srdconsulting
HTH - Thank you! OK - Recovered! I am now...
HTH - Thank you! OK - Recovered!

I am now using your script. How do I modify to handle "Arguement List Too Long" error because I have 30,000 images in the directory?
5,020
Posted By srdconsulting
Thanks quirkasaurus! It appears the original...
Thanks quirkasaurus!

It appears the original script worked the 1st time, but when I ran it again it created another subdirectory below the previous one. I tried running several times before I...
5,020
Posted By srdconsulting
Worked great the 1st time, but now when I try add...
Worked great the 1st time, but now when I try add more files to the directory and re-run it just hangs. Is there an issue because the directory ($dir) has already been created? If so, how do I...
5,020
Posted By srdconsulting
Worked great. Thanks for your help!
Worked great. Thanks for your help!
5,020
Posted By srdconsulting
File Move Based on 1st Character of File Name
I need some help with a unix script to mv image files to subdirectories based on the 1st character of the filename. See example below...

/images/main

1191.jpg
9999.jpg
A101.jpg
A102.jpg...
Showing results 1 to 6 of 6

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