- Convert a png file to jpg file
convert image.png image.jpg
- Convert all png files to jpg files
mogrify -format jpg *.png
or loop version
{"lastUpload":"2019-09-30T22:01:28.238Z","extensionVersion":"v3.4.3"} |
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
# | |
# Executes commands at the start of an interactive session. | |
# | |
# Authors: | |
# Sorin Ionescu <[email protected]> | |
# | |
# Source Prezto. | |
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then | |
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" |
Bash: | |
======================== | |
find ./ -type f -name "*"|xargs grep "encoding" > /home/xrong/Documents/VOC2010/VOCdevkit/VOC2010/file.list | |
sed -i '/encoding/'d `awk -F: '{print $1}' /home/xrong/Documents/VOC2010/VOCdevkit/VOC2010/file.list` | |
sed -i "s/oldstring/newstring/g" `grep oldstring -rl yourdir` | |
sed -i "s/www.bcak.com.cn/bcak.com.cn/g" `grep www.bcak.com.cn -rl /home` |
用 Perl 实现的有用的单行程序 1 28 2012 | 版本 1.08 | |
------------------------ ----------- ------------ | |
由 Peteris Krumins 编译 ([email protected], @pkrumins on Twitter) | |
http://www.catonmat.net -- good coders code, great reuse | |
此文件最新版的总可以在下面的这个链接里获得: | |
http://www.catonmat.net/download/perl1line.txt |
convert image.png image.jpg
mogrify -format jpg *.png
or loop version
Atom Sync Settings |
# Settings |
#!/usr/bin/env bash | |
# Installation script for Deep Learning Libraries on Ubuntu 14.04, by Roelof Pieters (@graphific) | |
# BSD License | |
orig_executor="$(whoami)" | |
if [ "$(whoami)" == "root" ]; then | |
echo "running as root, please run as user you want to have stuff installed as" | |
exit 1 | |
fi | |
################################### |