News for hackers. Stuff that matters.
Re:ffind: a sane replacement for command line file search by sciurus on Sunday June 09, 2013 @03:25PM (#5850128)
If you just want a shortcut to invoke find in this common way, put this in your shell's profile:

  function ffind {
      if [ $# -eq 1 ]; then
          search_path='.'
          expression=$1
      elif [ $# -eq 2 ]; then
          search_path=$1
          expression=$2
      else
          echo "ffind [path] expression"
          return 1
      fi
      find $search_path -name $expression
}

There are no comments on this comment yet.