Skip to content

Instantly share code, notes, and snippets.

@axgle
Created November 4, 2009 06:43
Show Gist options
  • Save axgle/225869 to your computer and use it in GitHub Desktop.
Save axgle/225869 to your computer and use it in GitHub Desktop.
#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