Timeline for cli list by climagic, page 2
-
Never burn bridges; Modern ones don't ignite easily and wooden ones are usually historic and valuable.
-
qlmanage -t -s 1000 -o . *.svg # convert SVG to PNG on OSX. Thx @jdorfman
-
grep -v "^#" playlist.m3u|while read f;do cp --parents "$f" /mnt/sdb1;done # Copy files of m3u playlist including dirs to usb by @v_lenzen
-
http://ur1.ca/5xvp8 # More cool visuals you can make in your terminal with your cursor.
-
git log --author=$USER --format="- %B" --since=-7days --reverse |mail -s "What I've done this week" boss@company\.com # By @seidler2547
-
find ${PWD//archive\/} | wc -l # Two similar paths, except I want to check the # of files in the corresponding dir without archive/ in it.
-
Don't chastise those that are different, celebrate that we have the software freedoms that allow us to be different in ways we choose.
-
<alt>+# (press Alt+Shift+#) will also comment out the line without the movements required. Thx @Iulius42 & @amenthes_de
-
Nothing says "I'm not ready to run this command yet" better than "<Ctrl-a> + # + <enter>". Or maybe just press Ctrl-c if you really hate it.
-
Or you could use the pidof command.
-
BTW, the reason for "[f]oobar" is because foobar alone will match its own process in the process table. [f] char class gets around that.
-
while ps auxw |grep -q "[f]oobar"; do sleep 15; done ; anothercommand # Start anothercommand after process(es) with foobar in it is done.
-
dd if=randomnumbers.txt bs=1 skip=387680 count=1000 # Print characters from byte number 387680 through 388680 in the file randomnumbers.txt
-
strings /dev/urandom | tr -c -d '0-9' | dd of=randomnumbers.txt bs=1 count=1M # Write 1MB (1048576) of random numbers to a file.
-
for grass in field* ; do mow $grass; done | grep -v weeds | while read -r hay; do bale $hay; done # Pipe one loop into another #metacode
-
Ever sit there, looking at your mangled data and think "What the F did I just press?" Be careful out there.
-
for dir in */ ; do echo "${dir%/}" ; done # Use the */ trick to get only the directories, then use ${dir%/} to remove the trailing / you get
-
for i in {1..10} ; do sleep $(( 1800 + $RANDOM%1800 )); cmd ; done # Run cmd 10 times at random intervals from 30-60 minutes apart.
-
t=$(date +%s);n=0;while [ $n -lt $((86400*365*2)) ];do n=$(($n+86400*7));date -d @$(($t-$n)) +%Y-%m-%d;done # Last 2 years of this weekday
-
while sleep $(($RANDOM % 10)); do eject -T /dev/cdrom;sleep 0.1; done # Keep a cat entertained for hours. Thanks @c_alan_zoppa