📄 ins.sh
字号:
#!/bin/sh## A simple shell script to insert image entries into the database.# First argument is the category to add the images to, followed# by the relative path (relative to the photo album script files)# of each of the image files.## For example: ./ins.sh Family family/*#category=$1shiftfor i in $*; domysql rasmus -e "insert into photos values ('$i','$category','');"done
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -