Skip to content

Instantly share code, notes, and snippets.

@martinbpeters
Created November 26, 2010 10:22
Show Gist options
  • Save martinbpeters/716526 to your computer and use it in GitHub Desktop.
Save martinbpeters/716526 to your computer and use it in GitHub Desktop.
Removes the second column from a file using shell
#!/bin/sh
cat $1 | awk '{ $2="";print}' >> $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment