All posts tagged 'grep'
-
Grepping Through Your Dotfiles
I manage my dotfiles with a bare git repository, as described in this post. One issue I have run into is remembering where exactly I added this or that alias. Did I place it in .bash_aliases, or did I create a separate file, like the file for my Git aliases. And what exactly does it do, anyway? Here...
Read article -
A custom edit action for todo.txt-cli
Frequently I find myself looking for a better way to keep track of my todo list, and I may have found the ideal solution for me: todo.txt. It's a simple plain text syntax for writing todo lists. I've been using it with the todo.txt CLI lately, on Ubuntu and WSL2, syncing the documents with...
Read article -
How to search through text with grep
Here are a few ways to use grep — a command line program that allows you to search through text. 1. Search for a pattern in a file The basic syntax is grep <pattern> <filename> where <pattern> is a string or regex. Running this will print each line in <filename> that contains a...
Read article