mkdir phps cd phps for path in ../*.php do file=`basename "$path"` ln -s "$path" "${file}s" done