Created
November 4, 2009 06:43
-
-
Save axgle/225869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://hi.baidu.com/051156/blog/item/6e6936133ea25a29dc5401be.html | |
ls|while read line | |
do | |
len=`echo $line|awk '{print length($0)}'` | |
name=($line:$len) | |
echo ${name[*]} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment