Skip to content

Instantly share code, notes, and snippets.

@fillest
Last active May 30, 2019 18:17
Show Gist options
  • Save fillest/b011406c5a3d2e6360e8b28026021d74 to your computer and use it in GitHub Desktop.
Save fillest/b011406c5a3d2e6360e8b28026021d74 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -e
#set -x
if [ ! -d somedir ]; then echo "..."; else true; fi
for fpath in some/path/*; do cat $fpath; echo; done > some/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment