Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cd /work_dir/
- cp /source_dir/$1.XLSX /work_dir/$1.zip
- unzip -p $1.zip "xl/workbook.xml" > temp.txt
- count=`cat temp.txt | grep "sheet name="$2" sheetId=" | wc -l`
- if [ "$count" = "1" ];
- then
- echo "Sheet Exists"
- else
- echo "Sheet Doesn't Exist"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement