Search Results

Search: Posts Made By: openthomas
4,589
Posted By openthomas
That worked except you missed a comma. Thanks ! ...
That worked except you missed a comma. Thanks !

Finished script

#!/bin/sh

ls | while read fname
do
md5sum $fname | gsed -e 's/\([^ ]*\) \(.*\(\..*\)\)$/mv -v \2 \1\3/e'
done
4,589
Posted By openthomas
Argument list too long w/ sed
Hi all,

I am using GNU sed (named gsed under macports) in OSX. I have a directory with a series of files named pool_01.jpg through pool_78802.jpg. I am trying to use this command to rename the...
Showing results 1 to 2 of 2

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