In my
script, I am trying to issue a cp command.
The
file within &abcd& directory has to be copied to another location
Quote:
ie. File1.txt in /var/official/'&abcd&' has to be copied to
File2.txt in /otherlocation/File2.txt
|
I have the code as follows
Code:
cp "/var/official/'\&abcd\&'/File1.txt /otherlocation/File2.txt"
But I get error as below
Quote:
cp: Insufficient arguments (1)
Usage: cp [-f] [-i] [-p] [-@] f1 f2
cp [-f] [-i] [-p] [-@] f1 ... fn d1
cp -r|-R [-H|-L|-P] [-f] [-i] [-p] [-@] d1 ... dn-1 dn
|
I guess I am using proper escape characters. But it isnt' working.