Search Results

Search: Posts Made By: ideal2545
4,760
Posted By Corona688
That's why I suggested nawk on other systems. ...
That's why I suggested nawk on other systems.

Or gawk, if you have it.
4,760
Posted By Corona688
What a strange application. Oh well. What's...
What a strange application. Oh well.

What's your system? This will be simple enough if you have GNU awk:

find /path -name '*.txt' | awk -F"/" -v OFS="/" '{$NF=toupper($NF)} 1' nawk may have...
4,760
Posted By Corona688
You can use tr for that. find ./ -name...
You can use tr for that.

find ./ -name '*.txt' | tr '[a-z]' '[A-Z]' ...though why you'd want to, I have no idea -- UNIX file names allow mixed cases and are case sensitive, meaning the actual name...
4,760
Posted By neutronscott
you could do: #!/usr/bin/env bash find...
you could do:


#!/usr/bin/env bash
find ... | while IFS= read -r file; do
upper=$(nawk ... <<< "$file")
echo mv "$file" "$upper"
done


if that looks good, remove the echo
Showing results 1 to 4 of 4

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