I have folder ABC and files in ABC are links.
I want to create the same ABC folder in different path and copy the actual files from source ABC dir.
Can anyone provide HP-UX command for this?
note: cp -L is not working in HP-UX
Thanks in advance.
I have folder ABC and files in ABC are links.
I want to create the same ABC folder in different path and copy the actual files from source ABC dir.
Can anyone provide HP-UX command for this?
note: cp -L is not working in HP-UX
Thanks in advance.
Assuming that "ls -l" works the same as in Linux:
ls -l ABC | awk 'NR>1{print $NF}' | while read file; do cp "$file" /new/path; done