0
I cant use cp -p because it also copies the user which I don't want and --preserve doesn't work because AIX apparently doesn't support that option? I get an error. Anyways, I just want to do the following:
cp /folder/file/* /newfolder/file/*
Then use touch -r on each file to copy the modified/access time.
I am terrible with scripting so any help is appreciated.
"I just want to do the following:
– Kamil Maciorowski – 2019-05-14T15:28:02.963cp /folder/file/* /newfolder/file/*
" – Oh, I think you don't, especially if/newfolder/file/
is not empty. See this answer.