Take the following command as an example.
wc -l my_results_table.txt
Use as in the following command of "imagemagick" software to display the metadata from an image (picture) file:
identify -verbose photo.JPG
Take the following command as an example.
tr '\r' '\n' < ./foo.text > ./foo.linux.text
Use a command like the following to convert a file into a monochrome "BMP" file:
convert EXMPL001.PNG -monochrome -define bmp:format=bmp2 TEST1.BMP
Use "iconv" to convert text files between different character encodings. Character encodings are not always 100% compatible with each other. In case of incompatibility a way to mark problematic characters must be provided to the tool.
Convert a file from UTF-8 to Windows-1251 (cyrillic for Windows) encoding as in the following.
iconv -f UTF-8 -t WINDOWS-1251 -o output.txt input.txt
Carefully convert a file from UTF-8 to Windows-1251 (cyrillic for Windows) encoding as in the following. "--byte-subst" relates to the invalid character bytes in the input files. "--unicode-subst" relates to the missing characters in the output encoding.
iconv -f UTF-8 -t WINDOWS-1251 --byte-subst="<0x%x>" --unicode-subst="" -o output.txt input.txt
Convert a file from UTF-8 to CP866 (cyrillic for MS-DOS) encoding as in the following.
iconv -f UTF-8 -t CP866 -o output.txt input.txt
Convert a file from UTF-8 to KOI8-R (cyrillic for MS-DOS) encoding as in the following.
iconv -f UTF-8 -t KOI8-R -o output.txt input.txt
Use the following utilities: "dos2unix", "unix2dos".
Convert from DOS format to Unix format as in the following.
dos2unix -f -n INFILE.txt OUTFILE.txt
Convert from DOS format to Unix format as in the following.
unix2dos -f -n INFILE.txt OUTFILE.txt
Take the following command as an example.
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=merged.PDF input1.PDF input2.PDF
Linux(R) is registered trademark of Linus Torvalds in the United States and other countries.