File: prune_dockerfile.sh

package info (click to toggle)
nipype 1.9.2-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,260 kB
  • sloc: python: 156,463; javascript: 9,246; tcl: 608; sh: 485; makefile: 168
file content (9 lines) | stat: -rw-r--r-- 218 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

if [ -z "$1" ]; then
  echo "Usage: $(basename $0) <input_filepath>"
  exit 1
fi

# Remove empty lines, comments, and timestamp.
sed -e '/\s*#.*$/d' -e '/^\s*$/d' -e '/generation_timestamp/d' "$1"