• Wincent
    Open
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Zapping resource forks from the commandlineEdit

Created 4/20/2007, updated 3/12/2020

Here’s a short function that I just created in my .bash_profile:

# zap resource forks
zap()
{
  # loop through the args
  while [ -n "$1" ]
  do
    /bin/cp -v /dev/null "$1/..namedfork/rsrc"
    shift
  done
}

This function irreversibly overwrites data. Use at your own risk.

  • bash
  • wiki
Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell using React, Relay and GraphQL (with help from Git, Redis and Neovim).