Last active
April 25, 2016 20:25
-
-
Save WuglyakBolgoink/30a69d824c351d4cc86260e09306341b to your computer and use it in GitHub Desktop.
Linux: Tipps and Tricks in console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parse json file in bash: | |
mocha -R json | grep failures -m 1 | awk '{ print $2 }' | |
#export als json | |
#-------------| get only 1. line | |
#----------------------------------| get only second part of string | |
# PATH | |
/etc/environments | |
# Convert all PNG files in JPG mogrify is part of the ImageMagick suite of tools for image processing | |
mogrify -format jpg *.png | |
# Create thumbnails | |
mkdir thumbs | |
mogrify -format gif -path thumbs -thumbnail 100x100 *.jpg | |
# Create PDF file from images (for example from png files) | |
convert *.png myfile.pdf | |
convert 1.png 2.png myfile.pdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment