Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- LOG_PATH=/var/log/bip/faux
- PUBLIC_PATH=$LOG_PATH/public
- rm -r $PUBLIC_PATH
- mkdir -p $PUBLIC_PATH
- for file in $(find $LOG_PATH -type f -name "#*" | grep -v omgwtfhax); do
- SYMLINK_NAME=$(echo $file | sed -e 's|^/var/log/bip/faux/||' -e 's|/|-|g')
- ln -s $file $PUBLIC_PATH/$SYMLINK_NAME
- done;
Add Comment
Please, Sign In to add comment