Last active
September 5, 2024 06:38
-
-
Save agricolamz/6003e71ddfbe4963cb0513078d7b59c7 to your computer and use it in GitHub Desktop.
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
# посмотреть кодировку файлов | |
file * | |
# сравнить два текста | |
wdiff report_sh.Rmd report_aso.Rmd | colordiff | |
# посмотреть диф в ячейке .csv | |
git diff --word-diff --word-diff-regex=. -U0 | |
# соединить все файлы (даже разного типа!) в деректории в один pdf | |
convert $(ls) outputFileName.pdf | |
# найти во всех текстовых файлах в папке | |
grep -rnw '/path/to/somewhere/' -e 'pattern' | |
# извлечь страницы из pdf | |
# $1 input-file path, | |
# $2 page range (e.g., "1-1", "10-39", "5,9-12"), | |
# $3 output-file path | |
# ex.: pages_from_pdf input.pdf "1,3,8-9" test.pdf | |
# qpdf should be installed | |
function pages_from_pdf() { | |
qpdf $1 --pages $1 $2 -- $3 | |
} | |
# найти и удалить файлы | |
find -name "FILE_NAME" -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment