Problem with tar
Hello there.
I'm trying to archive some files where the names contains spaces like movie hello.mpeg movie go away.mpeg linux questions.mpeg Without spaces the command tar -cvf ark.tar.gz `find -name "*.mpeg" -print` will solve the question. But how can I deal with the spaces ? Thanks |
Problem solved.
The trick was to use xargs -0 (terminate by a null char) find -print0 -name "*.mpeg" | xargs -0 tar -czf archive.tar.gz |
All times are GMT -5. The time now is 12:40 AM. |