0

I have a date input I am setting as a directory, but that directory has some text on the end, when I use this code

dirname=`echo "$yr_s$mo_s$da_s'con'"`

This is the error

cp: target ‘/home/tsee/DATA/20160113'con'’ is not a directory

Unsure how to go aroudn it, if I remove the quotations around con it simply joins with the $da_s input and makes it unrecognisable from the code above.

twseewx
  • 302
  • 2
  • 11

0 Answers0