diff options
author | Kévin Raymond <shaiton@fedoraproject.org> | 2013-05-10 20:39:59 (GMT) |
---|---|---|
committer | Kévin Raymond <shaiton@fedoraproject.org> | 2013-05-10 20:39:59 (GMT) |
commit | 5968c8be4090ef023291a31a20aeace79e81da43 (patch) | |
tree | d366c6bc99410da3dad615e0bb1901660dc695e6 | |
parent | f310447677c8063e399c40fa90a6919a3662f462 (diff) |
still have to see about errors
-rwxr-xr-x | parse.sh | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,6 +1,5 @@ #!/bin/bash # run this on the backup directory -set -x datafile="data" mime="mime_type" @@ -53,7 +52,7 @@ do cat $mime |grep -q text/plain && ext="txt" cat $mime |grep -q text/x-python && ext="py" cat $mime |grep -q video/ogg && ext="ogg" - cp ../data $out/$int.$ext + cp -a ../data $out/$int.$ext int=$((int + 1)) else err_d "mime type file does not exists: $PWD" |