User Tools

Site Tools


docs:tips_n_tricks:shell:index.html

Shell (Linux/Unix Command Line)

Bourne shells

Flavours

Tips common for different flavours

Colour diff output word-by-word

diff -u file1 file2 \
| wdiff -d \
        --start-delete "`tput setaf 1``tput bold`" \
        --start-insert "`tput setaf 2``tput bold`" \
        --end-delete   "`tput op``tput sgr0`"      \
        --end-insert   "`tput op``tput sgr0`"      \
        | less -S -R

Credits:

Other shells

I don't have any knowledge about them, but there are C-Shells

  • csh (Link to Wikipedia :UK:: C-Shell)
  • tcsh (Link to Wikipedia :UK:: tcsh)
docs/tips_n_tricks/shell/index.html.txt · Last modified: 07.07.2024 12:40 CEST by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki