0
set series = usno
if ( ! -e ut1.${series}  ) \cp -p ~/gg/tables/ut1.${series}  .

I'm trying to grasp a script. I need to know that what cp -p command works in this script?

2
  • Read the manpage man cp..it is described precisely there..also your script has many issues....
    – heemayl
    May 26, 2015 at 15:21
  • from man cp: p or --preserve: preserve the specified attributes
    – Ron
    May 26, 2015 at 15:24

1 Answer 1

3

From the cp manpage:

--preserve[=ATTR_LIST]
       preserve the specified attributes (default: mode,ownership,time‐
       stamps), if  possible  additional  attributes:  context,  links,
       xattr, all

-p     same as --preserve=mode,ownership,timestamps

In other words, it will preserve more metadata than it would by default.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .