Category Archives: Uncategorized

Learn The Entire Python Language In A Single Image (link)

An interesting page that contains a single image for python language. Here. Image link: Here

Posted in Uncategorized

How to replace the 4th occurrence of a character in a file using sed

sed -i “s/\”/ \”/4″ myFile.txt The above command will replace the 4th occurrence of “ by “ in file “myFile.txt”, which is equivalent to putting a space in front of the 4th double quote.

Posted in Uncategorized

How to change an extension of many files

In a Linux terminal: $ for f in *.txt; do mv — “$f” “${f%.txt}.text”; done will rename all *.txt to *.text files.

Posted in Uncategorized

How to compile .tex file without stopping

Method 1: using pdflatex to generate a pdf file $ pdflatex -interaction nonstopmode myTexFile.tex Method 2: using latexmk to generate a dvi file. $ latexmk myTexFile.tex

Posted in Uncategorized