New answers tagged duplicate
The following script may do what you want (I have it set to echo what it would do, rather than actually do it, so you can see) #!/bin/bash # This variable will always be in lower case. That means that if you do # l=Hello the result will be $l==hello. typeset -l l for f in * do l=$f # Forces to lowercase due to typeset if [ "$l" != "$f" -a -e "$l" ] ...
Top 50 recent answers are included