#!/bin/bash

image_list=$(ls *.png)

for imag in ${image_list}
do
    if test -f $imag
    then
        xxd -i  ${imag} >> test.h
    fi
done

参考:http://www.cnblogs.com/killkill/archive/2010/06/23/1763785.html

相关文章:

  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-06-12
  • 2021-07-19
猜你喜欢
  • 2021-11-17
  • 2022-02-17
  • 2022-12-23
  • 2022-01-25
  • 2021-11-17
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案