ocehb: (Default)
[personal profile] ocehb
В конкретном каталоге перевести все файлы и каталоги (и подкаталоги и т.д.) в нижний регистр.



function convert-depth () {
  local i
  pushd "$1" > /dev/null
  for i in *; do
    [[ "$i" != "${(L)i}" ]] && mv -f "$i" "${(L)i}"
    [[ -d "$i" ]] && convert-depth "${(L)i}"
  done
  popd > /dev/null
}

Date: 2006-06-06 08:50 am (UTC)
From: [identity profile] rmrfchik.livejournal.com
paul% echo $ZSH_VERSION
4.3.2-dev-1

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 6th, 2026 03:16 pm
Powered by Dreamwidth Studios