archer72, a random en
@archer72@mastodon.sdf.org avatar

alias ds='date +"%Y_%b_%d_%H_%M_%S_%N"'

If a file is made in this way: "ds"
the output will look like this.

ie.
todo_2024_Mar_31_04_23_31_051692831.md

If there is a better way, comments are welcome.

max, a random en
@max@torontodiy.xyz avatar
scy, a random en
@scy@chaos.social avatar

Okay, so. I have a and a file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a . But how?

Like this.

alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'

pdfcat a.pdf > a.txt
doccat b.docx > b.txt

git diff --no-index --word-diff a.txt b.txt

And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.

  • Todo
  • Suscrito
  • Moderado
  • Favoritos
  • random
  • noticiascr
  • CostaRica
  • Todos las revistas