Today I Learned
Little programming nuggets on how to do various tasks.
Currently 16 TILs
- Checking whether a file exists
- Counting number of lines of code in a directory
- Deleting all files matching a pattern
- Finding out parent process id
- Killing all child processes
- Listing all commands ran
- Listing only directories
- Piping to a command
- Deleting a line without putting it in registers
- Repeating an edit on multiple lines
- Sorting lines alphabetically
- Temporarily exiting vim
I shamelessly stole this idea from jbranchaud.