简介
[kira@localhost ~]$ file --version
file-5.11
天翼云盘,常见格式文件收集 访问码:xy8o
结果汇总
| 类型 | 格式 | 支持情况 | |
|---|---|---|---|
| 图像 | icon | 支持 | |
| 图像 | jpg | 支持 | |
| 图像 | ico | 支持 | |
| 图像 | jpeg | 支持 | |
| 图像 | png | 支持 | |
| 图像 | gif | 支持 | |
| 图像 | psd | 支持 | |
| 图像 | bmp | 不支持 | |
| 图像 | heif | 支持 | |
| 视频 | aac | 支持 | |
| 视频 | asf | 支持 | |
| 视频 | mov | 支持 | |
| 视频 | mp4 | 支持 | |
| 视频 | rm | 支持 | d |
| 视频 | rmvb | 支持 | |
| 视频 | wmv | 支持 | |
| 音频 | mp3 | 支持 | |
| 音频 | wav | 支持 | |
| 办公 | pptx | 支持 | |
| 办公 | docx | 支持 | |
| 办公 | doc | 支持 | |
| 办公 | 支持 | ||
| 办公 | ppt | 支持 | |
| 办公 | wps | 支持 | |
| 办公 | xls | 支持 | |
| 办公 | xlsx | 支持 | |
| 办公 | txt | 支持 | |
| 压缩包 | 7z | 支持 | |
| 压缩包 | tar | 支持 | |
| 压缩包 | zip | 支持 | |
| 压缩包 | rar | 支持 | |
| 可执行程序 | exe | 支持 | |
| 可执行程序 | msi | 支持 | |
| 可执行程序 | linux elf | 支持 |
帮助
批量测试改后缀脚本
#!/bin/bash
if [ ! $1 ]; then
echo "errro, input args less"
echo "input --less, remove file formate"
echo "input --more, add file format"
echo "input --test, test file file"
exit -1
fi
if [ "$1" = "--less" ]
then
echo ">>>>>>> arg = less <<<<<<"
for file in `ls -I tools.sh`
do
if (echo ${file} | grep -q "\.") # 含后缀名
then
format=${file##*.}
echo "${file} -> $format"
mv ${file} ${format}
fi
done
elif [ "$1" = "--more" ]
then
echo ">>>>>>> arg = more <<<<<<"
for file in `ls -I tools.sh`
do
if !(echo ${file} | grep -q "\.") # 不含后缀名
then
echo "$file -> ${file}.${file}"
mv ${file} ${file}.${file}
fi
done
elif [ $1 == "--test" ]
then
for file in `ls -I tools.sh`
do
res=`file -b ${file}`
if [ "$res" == "data" ]
then
echo ">${file}< not support, res :${res}"
elif [ "$res" == "empty" ]
then
echo ">${file}< not support, res :${res}"
fi
done
fi