From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: "Valery V. Inozemtsev" Organization: ALT Linux Team To: ALT Linux Community Date: Thu, 26 Oct 2006 19:59:19 +0400 User-Agent: KMail/1.9.5 References: <200610261946.37624.ashen@nsrz.ru> In-Reply-To: <200610261946.37624.ashen@nsrz.ru> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart10478417.gX0HTNoo0M"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200610261959.25736.shrek@freesource.info> X-Virus-Scanned: ClamAV using ClamSMTP Subject: Re: [Comm] =?koi8-r?b?8MXSxcnNzsXOz9fBzsnFIMbByszP1y4=?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2006 16:00:09 -0000 Archived-At: List-Archive: List-Post: --nextPart10478417.gX0HTNoo0M Content-Type: multipart/mixed; boundary="Boundary-01=_YtNQF4O/hmplwWM" Content-Transfer-Encoding: 7bit Content-Disposition: inline --Boundary-01=_YtNQF4O/hmplwWM Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: base64 Content-Disposition: inline 9yDTz8/C3cXOyckgz9QgMjYgz8vU0cLS0SAyMDA2IDE5OjQ2IPvFzsPF1yDhzMXL08XKIPfMwcTJ zcnSz9fJ3iDOwdDJ08HMKGEpOgo+IPPBwtYg18/UINcg3qPNOiDO1dbOzyDXIMnNxc7ByCDGwcrM z9cgz8TOz80gy8HUwczPx8Ug2sHNxc7J1Ngg0NLPwsXM2SDOwQo+ICJfIiDJzMkg1cTBzMnU2CDJ 2iDJzaPOINDSz8LFzNkuIOvByyDc1M8g08TFzMHU2D8KCsvByyDUzyDNzsUg1M/WxSDc1M8g0M/O wcTPwsnMz9PYLiDTzS4g1yDB1MHexQoKLS0gClZhbGVyeSBWLiBJbm96ZW10c2V2Cg== --Boundary-01=_YtNQF4O/hmplwWM Content-Type: application/x-shellscript; name="rename.sh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="rename.sh" #!/bin/bash PWD="$1" if [ -z "$PWD" ]; then echo "Usage: $0 DIRNAME" exit 0 fi FILELIST=$(find "$PWD" | grep " " | tr " " "?") for F in $FILELIST; do while [ "$F" != "$PWD" ]; do if basename $(echo "$F" | tr " " "?") | grep -q " "; then DD=$(dirname $(echo "$F" | tr " " "?")) FF=$(basename $(echo "$F" | tr " " "?") | tr " " "_") echo "Rename: $(realpath $(echo $F | tr " " "?")) -> $DD/$FF" mv $(echo "$F" | tr " " "?") "$DD"/"$FF" fi F=$(dirname $(echo "$F" | tr " " "?")) done done --Boundary-01=_YtNQF4O/hmplwWM-- --nextPart10478417.gX0HTNoo0M Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFQNtdsICip9pMw6cRAiQtAJwLgxWXYdDDYg5agEnj7gg0omfQRgCeO04o 3u34pc+X2MfnpUKana6FmsA= =3RFf -----END PGP SIGNATURE----- --nextPart10478417.gX0HTNoo0M--