This file is indexed.

/usr/bin/env_parallel is in parallel 20161222-1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
#!/bin/bash

# Copyright (C) 2016
# Ole Tange and Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
# or write to the Free Software Foundation, Inc., 51 Franklin St,
# Fifth Floor, Boston, MA 02110-1301 USA

GREPQ="grep >/dev/null 2>/dev/null"

while test $# -gt 0; do
  key="$1"

  case $key in
      -i|--install)
	  eval $GREPQ env_parallel.bash $HOME/.bashrc ||
	    echo '. `which env_parallel.bash`' >> $HOME/.bashrc
	  eval $GREPQ env_parallel.zsh $HOME/.zshenv ||
	    echo '. `which env_parallel.zsh`' >> $HOME/.zshenv
	  mkdir -p $HOME/.config/fish
	  eval $GREPQ env_parallel.fish $HOME/.config/fish/config.fish ||
  	    echo '. (which env_parallel.fish)' >> $HOME/.config/fish/config.fish
	  eval $GREPQ env_parallel.ksh $HOME/.kshrc ||
  	    echo 'source `which env_parallel.ksh`' >> $HOME/.kshrc
	  eval $GREPQ env_parallel.pdksh $HOME/.profile ||
  	    echo '. `which env_parallel.pdksh`' >> $HOME/.profile
	  eval $GREPQ env_parallel.csh $HOME/.cshrc ||
  	    echo 'source `which env_parallel.csh`' >> $HOME/.cshrc
	  eval $GREPQ env_parallel.tcsh $HOME/.tcshrc ||
  	    echo 'source `which env_parallel.tcsh`' >> $HOME/.tcshrc
  	  echo 'Installed env_parallel in: '
  	  echo "    " $HOME/.bashrc
  	  echo "    " $HOME/.zshenv
  	  echo "    " $HOME/.config/fish/config.fish
  	  echo "    " $HOME/.kshrc
  	  echo "    " $HOME/.profile
  	  echo "    " $HOME/.cshrc
  	  echo "    " $HOME/.tcshrc
  	  exit
      ;;
      *)
  	echo "Unknown option: $key"
      ;;
  esac
  shift # past argument or value
done


cat <<_EOS
env_parallel only works if it is a function. Do the below and restart your shell.

bash:  Put this in $HOME/.bashrc:  . `which env_parallel.bash`
       E.g. by doing:  echo '. `which env_parallel.bash`' >> $HOME/.bashrc
       Supports: aliases, functions, variables, arrays

zsh:   Put this in $HOME/.zshrc:  . `which env_parallel.zsh`
       E.g. by doing:  echo '. `which env_parallel.zsh`' >> $HOME/.zshenv
       Supports: functions, variables, arrays

fish:  Put this in $HOME/.config/fish/config.fish:
         . (which env_parallel.fish)
       E.g. by doing:
         echo '. (which env_parallel.fish)' >> $HOME/.config/fish/config.fish
       Supports: aliases, functions, variables, arrays

ksh:   Put this in $HOME/.kshrc:  source `which env_parallel.ksh`
       E.g. by doing:  echo 'source `which env_parallel.ksh`' >> $HOME/.kshrc
       Supports: aliases, functions, variables, arrays

pdksh: Put this in $HOME/.profile:  source `which env_parallel.pdksh`
       E.g. by doing:  echo '. `which env_parallel.pdksh`' >> $HOME/.profile
       Supports: aliases, functions, variables, arrays

csh:   Put this in $HOME/.cshrc:  source `which env_parallel.csh`
       E.g. by doing:  echo 'source `which env_parallel.csh`' >> $HOME/.cshrc
       Supports: aliases, variables, arrays with no special chars

tcsh:  Put this in $HOME/.tcshrc:  source `which env_parallel.tcsh`
       E.g. by doing:  echo 'source `which env_parallel.tcsh`' >> $HOME/.tcshrc
       Supports: aliases, variables, arrays with no special chars

To install in all shells run:

  env_parallel --install

For details: see  man env_parallel

_EOS