shell script for copy

Discussion in 'Programmer's Corner' started by Gerald27, Jul 27, 2012.

  1. Gerald27

    Thread Starter New Member

    Apr 10, 2012
    6
    0
    i trying to write a shell script using bash for copying of file in different directory with an option so it would look like
    cp --option argument2 argument3 argument4
    option would be the first argument $1
    i would like to know how would i add the option
     
  2. nerdegutta

    Moderator

    Dec 15, 2009
    2,515
    785
Loading...