gnu

The wget command

Bulk download using wget The other day, I had to make a bulk download of pdf files. This was most easily accomplished using wget command. wget -P ~/ddhakal/ https://epaper.ekantipur.com/kathmandupost/download/2019-06-{10..30} Here, -P: provides directory prefix for the downloaded file. {10.

Animation composition

#!usr/bin/bash msg() { printf "\033[1;32m :: %s\n\033[0m" "$1" } printf "\033[6;46mName: %s\nSurname: %s\n\033[0m" "Deependra" "Dhakal" msg "Creating glitter..." The layers composition methods makes it a lot easier to generate simple animations, such as glitter. First we need some glitter that is large enough to cover the image being processed.

Bash administration

Way to know executable name for an application to launch it in terminal. If you know the name of the program, Try on the command line: find /usr -name 'ipython' 2.1 To list all the running process with their PIDs

Bash and Awk

Use the following command to search for “blocking” characters inside one/more pdf file/s containing character “Statistical” line by line with stated arguments. pdfgrep -Hin -C 120 "blocking" "$(ls | grep "Statistical.*")" Someone advised me to use the following to refer to relative path while addressing the filename issue, but, unfortunate me, it doesn’t work.

Bash scripting

This repo will contain mostly the commandline tricks for linux terminals and simple tweaks. The repository is inspired by various online tutorials including the ebooks and the videos on managing linux operating system. For my own intent, I’m listing some of the useful threads I found around in stackoverflow:

Find by doing

Using find command is very handy to find any sort of file or a directory. At the very basics, find . # find all the files and directories at the starting at current directory and below. find # same as above find .

Webpicked find

There is probably a lot to look out in this open world for better, but that can be a good venture for a lifetime. Why not I embark on it now. Find More than anything, I certainly have to make a disclosure pre-emptively that this section is heavily borrowed.

Vim : Lesson 1

Highlight search matches To enable search match highlighting: :set hlsearch or :hls To disable search match highlighting: :nohlsearch or :nohls or :set hohlsearch to completely turn it off during session To search and replace some strings use following: :%s/==.*/ %s searches for the string in all lines, not only in the current line.