Skip to content

Instantly share code, notes, and snippets.

@ErykDarnowski
Last active September 11, 2023 12:29
Show Gist options
  • Save ErykDarnowski/c107aaec6f24573149651a1aba0a05a3 to your computer and use it in GitHub Desktop.
Save ErykDarnowski/c107aaec6f24573149651a1aba0a05a3 to your computer and use it in GitHub Desktop.
Find all `Dockerfile.node` files and do `diff` / `wdiff` between each file and `0http/.Dockerfile.node` file

Find all Dockerfile.node files and do diff / wdiff between each file and 0http/.Dockerfile.node file

#!/bin/bash

# clordiff
find ../ -name "*Dockerfile.node*" -exec colordiff ../0http/.Dockerfile.node {} \;

# wdiff
find ../ -name "*Dockerfile.node*" -exec sh -c 'wdiff ../0http/.Dockerfile.node "{}" | colordiff' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment