Advertisement
cd62131

Relative Path

Jan 20th, 2014
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.15 KB | None | 0 0
  1. #!/bin/sh -e
  2. for html in $(find d -name '*.html' | sort); do
  3.   dir=$(basename $(dirname ${html}))
  4.   file=$(basename ${html})
  5.   echo ${dir}/${file}
  6. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement