Commit 674dc1d2 authored by KSHITIJ GARG's avatar KSHITIJ GARG

Delete taskF.sh

parent b5f15891
#!/bin/bash
find . | while read doc;
do
if [ $(file --mime-type -b "$doc") == "text/html" ];
then mv "$doc" "$doc".html;
fi;
if [ $(file --mime-type -b "$doc") == "text/x-c" ];
then mv "$doc" "$doc".c;
fi;
if [ $(file --mime-type -b "$doc") == "image/jpeg" ];
then mv "$doc" "$doc".jpg;
fi;
if [ $(file --mime-type -b "$doc") == "application/gzip" ];
then mv "$doc" "$doc".tar.gz;
fi;
done;
gcc *c
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment