Question : cp file and create directory if not exists
Answered by : tender-trout-clewkn1d1rvz
mkdir -p /foo/bar && cp myfile.txt $_
Source : https://stackoverflow.com/questions/1529946/linux-copy-and-create-destination-dir-if-it-does-not-exist | Last Update : Fri, 27 Nov 20
Question : cp file and create directory if not exists
Answered by : tender-trout-clewkn1d1rvz
mkdir -p "$d" && cp file "$d"
Source : https://stackoverflow.com/questions/1529946/linux-copy-and-create-destination-dir-if-it-does-not-exist | Last Update : Fri, 27 Nov 20