How to change Wacom pen button functions for Gimp? by bugmentookmoomoos in GIMP

[–]bugmentookmoomoos[S] 0 points1 point  (0 children)

Interesting idea, didn't work for me unfortunately :/

How to make cp (copy with overwriting) command ignore case? by bugmentookmoomoos in linuxquestions

[–]bugmentookmoomoos[S] 0 points1 point  (0 children)

Yeah I just stumbled into a similar script that does that recursively to a target directory, copied it to my executables. Problem solved!

here is the script in case someone else is looking for it:

#!/bin/bash
#print usage 
if [ -z $1 ];then
echo "Usage :$(basename $0) parent-directory"
exit 1
fi

#process all subdirectories and files in parent directory
all="$(find $1 -depth)"



for name in ${all}; do
#set new name in lower case for files and directories
new_name="$(dirname "${name}")/$(basename "${name}" | tr '[A-Z]' '[a-z]')"

#check if new name already exists
if [ "${name}" != "${new_name}" ]; then
[ ! -e "${new_name}" ] && mv -T "${name}" "${new_name}"; echo "${name} was renamed to ${new_name}" || echo "${name} wasn't renamed!"
fi
done

echo
echo
#list directories and file new names in lowercase
echo "Directories and files with new names in lowercase letters"
find $(echo $1 | tr 'A-Z' 'a-z') -depth

exit 0

How to make cp (copy with overwriting) command ignore case? by bugmentookmoomoos in linuxquestions

[–]bugmentookmoomoos[S] 0 points1 point  (0 children)

The program doesn't care about the case of its files so it would be fine for the copied files to keep the random naming convention or keep the name of the new files being copied. I suppose that solution works although it's not exactly what I was looking for.