git diff output be more useful when diffing minified .js
and .css files.
go is simply extracting its release archive, putting it
somewhere in you
$HOME and pointing
PATH env vars to
I was working on a
tcsh script that did some cool stuff. But if a
user ran that script not knowing the true impact of the script, it
could make some bad irreversible changes.
While I could simply echo a warning statement and put a
sleep 10, I
wanted the wait time to be shown live.
I often need to check if a particular executable is present in the
PATH before I can proceed with what I am doing in a shell script. Also I need to work with both
bash scripts. Below presents the different solutions that have worked for these shell scripts for me.
It is quite common knowledge that the
basename command is used to get just the file name without its full path.
> basename /home/$USER/file.txt file.txt
But what wasn’t common knowledge, at least to me, was that
basename also accepts a second argument ..
Using mouse to copy/paste in
sed stands for stream editor.
This is the most common way of my sed usage:
echo [SOMETHING] | sed 's/old/NEW/g'
Faster way to send the same command to each and every pane in your tmux session.