Skip to content

Commit

Permalink
add minor cleanup scripts for naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanlakhani committed Mar 5, 2014
1 parent c3cf048 commit 90d3b01
Show file tree
Hide file tree
Showing 97 changed files with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .scripts/cleanup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#! /bin/bash

find -E . -regex '.*(pdf)$' -type f | while read f
do
p="$(basename "$f")"
dir="$(dirname "$f")"
lc=$(echo ${p} | tr '[:upper:]' '[:lower:]' \
| tr '_' '-' | tr -d ':' | tr -d ',' | tr '[:blank:]' '-' \
| sed 's/\-\-*/-/')

if [ "$p" != "$lc" ]
then
git mv -f "$dir/$p" "$dir/$lc"
fi
done
File renamed without changes.
Binary file removed distributed_systems/The Google File System.pdf
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 90d3b01

Please sign in to comment.