User Tools

Site Tools


files-and-directories

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
files-and-directories [2019/04/12 19:18]
Miroslav Bernát
files-and-directories [2019/04/18 11:25] (current)
Miroslav Bernát
Line 68: Line 68:
 | **convmv** <​file/​directory>​ | changes the type of coding of a file/​directory name, **-f** <​source_code>​ defines the original code, **-t** <​target_code>​ defines a new code, **-i** interactive mode, **-r** recursively,​ **--notest** ensures real recoding of a file name\\ ''​$ convmv --notest -f cp1250 -t UTF-8 *''​ | | **convmv** <​file/​directory>​ | changes the type of coding of a file/​directory name, **-f** <​source_code>​ defines the original code, **-t** <​target_code>​ defines a new code, **-i** interactive mode, **-r** recursively,​ **--notest** ensures real recoding of a file name\\ ''​$ convmv --notest -f cp1250 -t UTF-8 *''​ |
 | **recode** <​source_code>​**..**<​target_code>​ <​file>​ | changes the type of coding of a text file, **-l** prints types of coding, **-f** suppresses error output, **-v** detailed output\\ ''​$ echo 'List of all file names' | recode -f UTF-8..flat''​\\ ''​$ recode ..HTML < page.txt > page.html''​\\ ''​$ find . -name "​*.txt"​ -exec recode cp1250..UTF-8 '​{}'​ \;''​ | | **recode** <​source_code>​**..**<​target_code>​ <​file>​ | changes the type of coding of a text file, **-l** prints types of coding, **-f** suppresses error output, **-v** detailed output\\ ''​$ echo 'List of all file names' | recode -f UTF-8..flat''​\\ ''​$ recode ..HTML < page.txt > page.html''​\\ ''​$ find . -name "​*.txt"​ -exec recode cp1250..UTF-8 '​{}'​ \;''​ |
-| **convert** <​source>​ <​target>​ | changes ​picture ​file formats and possibly ​the file sizes\\ ''​$ convert image.tif image.jpg''​ |+| **convert** <​source>​ <​target>​ | changes file formats and possibly ​their sizes\\ ''​$ convert image.tif image.jpg''​\\ ''​$ IFS=',';​ cmds="​hostname -s,​date,​ifconfig -a"; for cmd in $cmds; do { echo "​[$USER@${HOSTNAME} ${PWD/#​$HOME/​~}]"​ "​${cmd}";​};​ eval "​${cmd}";​ done > info.txt && convert -background black -fill white info.txt info.png''​\\ (creates a printscreen of the terminal with the specified commands) ​|
 | **aplay** <​file>​ | plays a specified audio file | | **aplay** <​file>​ | plays a specified audio file |
 | **arecord** <​file>​.wav | creates a "​wav"​ audio file | | **arecord** <​file>​.wav | creates a "​wav"​ audio file |
Last modified: 2019/04/12 19:18 by Miroslav Bernát

visits: