Computing.Net > Forums > Unix > tar all m-files on my account

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

tar all m-files on my account

Reply to Message Icon

Name: peterna
Date: September 28, 2005 at 02:52:22 Pacific
OS: mac os x
CPU/Ram: ?
Comment:

tar all m-files on my account
------------------------

I want to backup all the m files in my home folder (and its
subfolders)

Tryed this (and a lot of other things), but it didn't work
(only took the m -files of my root):

tar -zcvf regnem_m-files.tgz *.m

yes, I've tried reading the manual pages of tar and tried to
google, but I guess I'm to stupid to find the answer




Sponsored Link
Ads by Google

Response Number 1
Name: Dlonra
Date: September 28, 2005 at 17:19:03 Pacific
Reply:

what is a folder?

tar -zcvf regnem_m-files.tgz $(find . -type f -name '*\.m')


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: tar all m-files on my account

Help unpacking tar files on host www.computing.net/answers/unix/help-unpacking-tar-files-on-host/4574.html

help needed to archive file on tape www.computing.net/answers/unix/help-needed-to-archive-file-on-tape/638.html

help file system watcher kornshell www.computing.net/answers/unix/help-file-system-watcher-kornshell/5827.html