comparison .bashrc @ 102:35d28c0a6ba3

fix find command
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 28 Oct 2010 14:05:35 -0700
parents 8b15a38ccd0f
children e841c419199e
comparison
equal deleted inserted replaced
101:8b15a38ccd0f 102:35d28c0a6ba3
296 then 296 then
297 directory=$1 297 directory=$1
298 fi 298 fi
299 cd $directory 299 cd $directory
300 unset find # don't use the alias 300 unset find # don't use the alias
301 find -name '*' -type f | sed 's/.\///' | while read line 301 find . -name '*' -type f | sed 's/.\///' | while read line
302 do 302 do
303 filename=$(echo $line | sed 's/\//-/g') 303 filename=$(echo $line | sed 's/\//-/g')
304 mv "${line}" "${filename}" 304 mv "${line}" "${filename}"
305 done 305 done
306 for i in * 306 for i in *