Skip to content

Instantly share code, notes, and snippets.

View happypeter's full-sized avatar
🐶
Wait for U

Peter Wang happypeter

🐶
Wait for U
View GitHub Profile
@happypeter
happypeter / list.sh
Created August 10, 2017 08:08
当前文件夹下的所有 .mp4 文件,转换成一个 js 的 object
echo '[' > output.js
for item in `ls *.mp4`
do
if [ "$item" = "list.sh" ]
then
continue
fi
echo """ {
title: 'xxx',