Search Results

Search: Posts Made By: j_alicea
5,044
Posted By j_alicea
Almost there...
Ok, so I changed the xargs command from:
xargs ls > Bad_Filenames.txt
to
xargs > Bad_Filenames.txt

This gives me a file with the correct output, but can I have it listed 1 item per line, as...
5,044
Posted By j_alicea
Didn't work...
Hi Rudi. Thank you again for the reply.
I added your suggestion, this is what the code now looks like now:
ls -R | grep -ov "[0-9][0-9][0-9][0-9][0-9][0-9][0-9]_[0-9][0-9][0-9]_[1-4]\..*$" |...
5,044
Posted By j_alicea
followup...
Ok, now they are going to hand-off a folder with several subfolders, each containing jpeg images.

Can I search recursively and only pull the jpg names, not the directory names?

What can I add...
5,044
Posted By j_alicea
Thanks Rudi! I totally missed my typo in the...
Thanks Rudi! I totally missed my typo in the original post, it should have said 7 instead of 6.

I have added the 7th digit to the string and it produced the correct results!

Thanks for the...
5,044
Posted By j_alicea
Still not there...
Thank you for the prompt reply!
However, still not there yet.

Here is the original ls of the folder contents(6 files):
1234567_123_1.jpg
1234567_456_1.jpg
1234567_56_2.jpg
123456_123_2.jpg...
5,044
Posted By j_alicea
Grep -v (inverse matching)
I am totally unexperienced in writing scripts of any kind.
I am working on Mac OS X and would like to run a shell script to find files in a directory that do not conform to a specific naming...
Showing results 1 to 6 of 6

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