this post was submitted on 15 Jun 2023
13 points (100.0% liked)

commandline

1836 readers
1 users here now

founded 2 years ago
MODERATORS
 

Any extra tips or tricks are welcome!

Yesterday I learned that set -x enables trace for a bash, sh, or zsh script and prints the trace to the terminal.

you are viewing a single comment's thread
view the rest of the comments
[–] chaoticAnimals@programming.dev 2 points 2 years ago* (last edited 2 years ago) (2 children)

I'm a pretty big fan of icdiff. This utility allows you to compare two files to see what has been added or removed by using colorful fonts to highlight values.

https://github.com/jeffkaufman/icdiff

[–] Andy@programming.dev 3 points 2 years ago* (last edited 2 years ago)

Another good one is riff (riffdiff on crates.io).

EDIT: for single-column view, that is

[–] cd_slash_rmrf@programming.dev 0 points 2 years ago

I recently learned about diffsitter which uses tree-sitter for meaningful diffs