Skip to content

Instantly share code, notes, and snippets.

@quickgrid
Last active April 1, 2016 03:03
Show Gist options
  • Save quickgrid/f9ea42a8512b6627f06a to your computer and use it in GitHub Desktop.
Save quickgrid/f9ea42a8512b6627f06a to your computer and use it in GitHub Desktop.
Shell script for deleteing all contents of the file passed in as argument
#!/bin/bash
# Delete all the data in the passed argument file.
echo "" > "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment