diff options
author | Mike Buland <eichlan@xagasoft.com> | 2011-02-20 04:59:31 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2011-02-20 04:59:31 +0000 |
commit | 3bb19feba42174a08842e035d21edd424ce9ced1 (patch) | |
tree | e6a9e60fe4527414e8334db874538677c873b4a2 /renumptr.sh | |
parent | c88a480b9bcabf9aad4f7b66685bbafacc022cc4 (diff) | |
download | libbu++-3bb19feba42174a08842e035d21edd424ce9ced1.tar.gz libbu++-3bb19feba42174a08842e035d21edd424ce9ced1.tar.bz2 libbu++-3bb19feba42174a08842e035d21edd424ce9ced1.tar.xz libbu++-3bb19feba42174a08842e035d21edd424ce9ced1.zip |
Cleaned up a little, and added a bunch more stuff to myriadfs. As far as I can
tell, we're missing rename, chown, and chmod.
Diffstat (limited to '')
-rwxr-xr-x | renumptr.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/renumptr.sh b/renumptr.sh deleted file mode 100755 index cceb45a..0000000 --- a/renumptr.sh +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | IN=$1 | ||
4 | OUT=$2 | ||
5 | |||
6 | EXPR="s@00000000@null@g\n" | ||
7 | CNT=1 | ||
8 | for PTR in $(grep -o -E -e '[0-9A-F]{8}' $IN | sort | uniq | grep -v 00000000); do | ||
9 | EXPR="${EXPR}s@${PTR}@$(printf %4d ${CNT})@g\n" | ||
10 | CNT=$(($CNT+1)) | ||
11 | done | ||
12 | |||
13 | temp=$(mktemp) | ||
14 | echo -e "$EXPR" > $temp | ||
15 | sed -f $temp $IN > $OUT | ||
16 | rm $temp | ||
17 | |||