Hello
I want to make new file which have the same priorities of specified exist file, by super user,
and the file is no contents.
To explain it with example:
exist file:
ls -l old.sql
-rw-r--r-- 1 oracle oinstall 33 Feb 24 16:09 old.sql
if I copy and clean it.
cp -p old.sql new.sql && cat /dev/null > new.sql
ls -l new.sql
-rw-r--r-- 1 oracle oinstall 0 Feb 24 16:20 new.sql
but if the old.sql file is large the operation would be very bad in performance.
can it be finished by one command with good performance ?
thanks in advance.