Skip to content

/proc/claus

Posting longer things that don't fit on twitter

  • About Me
  • Things I’ve made
    • Ludum Dare Games

Tag: bash

Amazing command of the day: shuf

2022/08/01 caranhaNo Comments

Today I learned an amazing bash command: shuf. It shuffles the lines of an input file, and prints them to the standard output. This is super useful when you want to sample a few lines from a very large file, to have an idea of its contents. See the image below for details: I learned […]

Read More…

Word count of multi-file Latex project

2022/03/05 caranhaNo Comments

Today I learned a nice trick to get the total word count of a latex project with multiple files: detex *.tex | wc -w detex does a pretty decent job of extracting commands from a latex file, and wc, of course, gets a word count. What surprised me was that detex did the sensible thing […]

Read More…

Decode Theme by Macho Themes

August 2022
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
293031  
« Jul    

Recent Comments

  • henrique on Heaven’s Vault
  • caranha on A fantastic discussion on Slavery: concepts, philosophy, story and consequences.
  • caranha on Mental fat, part 2
  • lolis on Mental fat, part 2
  • Antonio Rebordao on Bad weekend

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org