Guest User

Untitled

a guest
May 20th, 2018
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | None | 0 0
  1.     for file in `find "${syncdir}" -type f -print`
  2.     do
  3.         target="${archdir}/`stat -f %m ${file}`-${LOGTAG}.log.bz2"
  4.         if [ ! -e "${target}" ]; then
  5.             ln "${file}" "${target}" || echo "failed to link ${file} to ${target}" >&2
  6.         fi
  7.     done
Add Comment
Please, Sign In to add comment