Diff: Difference between revisions
adds quick side-by-side example |
adds process substitution |
||
| Line 29: | Line 29: | ||
</source> | </source> | ||
=== Process Substitution === | |||
By using process substitution, we can operate on the output of commands without the need for saving to a file. | |||
<source lang="bash"> | |||
drush pml --status=enabled --pipe > modules.list.txt | |||
# make a bunch of changes to what modules are enabled, perhaps restoring from a backup, and compare to our original list | |||
diff --suppress-common-lines --side-by-side <(drush pml --status=enabled --pipe) modules.list.txt | |||
</source> | |||
=== Compressed files === | === Compressed files === | ||