473,406 Members | 2,293 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Newbie - find with compress & move commands

12
For moving the files, planning to use like this.....
find / -iname "*.txt" -type f -exec /bin/mv {} /mnt/bckup \;

I want to do compressing before moving the files. Please suggest. I am not sure, if it is possible to use 2 commands using find.

thanks in advance.
Mar 19 '07 #1
1 4168
arne
315 Expert 100+
For moving the files, planning to use like this.....
find / -iname "*.txt" -type f -exec /bin/mv {} /mnt/bckup \;

I want to do compressing before moving the files. Please suggest. I am not sure, if it is possible to use 2 commands using find.

thanks in advance.
Try
Expand|Select|Wrap|Line Numbers
  1. find . -iname "*.txt" -type f -exec gzip {} \; -exec /bin/mv {}.gz /mnt/bckup \;
  2.  
Mar 19 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: bryja_klaudiusz[at]poczta[dot]fm | last post by:
Hi, How to copy database diagram (all data) to other server using only MSDE server and VS.Net Proffesional? I have no Enterprice manager. I have to move database (create on my machine) to my...
11
by: Shiperton Henethe | last post by:
Dreamweaver 4 Hi Can anyone recommend a decent utility for compressing HTML that is safe - i.e. that *definitely* doesn't mess with the appearance in any browsers. I run a growing website...
1
by: Herbert Wildmeister via .NET 247 | last post by:
Does anybody know a way to compress and decompress AVI videofiles in C# .NET using all installed video codecs? I've foundthe Video Compression Manager and a class wrapper for C++ but noCLS compliant...
1
by: dsp16 | last post by:
Hi, I hope someone can help me. I am learning Visual Basic at the moment. One of the tasks i need to do is create a simple program to make a frog jump across the screen. The frog should jump up...
3
by: Henrootje | last post by:
I have a database in which regurlarily tables are being created or deleted. This causes a lot of bloating. I set the property that causes the db to compress and repair at close but my users...
5
by: zgh1970 | last post by:
Hi, Friends, default DB2 compression library. I am wondering if this option will have any new restriction on RESTORE in the following. (Can I used that backup imsage for restore at the...
0
by: larry | last post by:
IDE starting out any good text editor is enough, get one that has PHP syntax highlighting to save a lot of debugging. If you were on Linux (which your ASP reference probably means you are a...
2
by: Ken D'Ambrosio | last post by:
First, apologies for such a newbie question; if there's a better forum (I've poked around, some) feel free to point it out to me. Anyway, a mere 25-odd years after first hearing about OOP, I've...
6
Markus
by: Markus | last post by:
Things to discuss: Headers What are they? What does PHP have to do with headers? Why can they only be sent before any output? Common causes
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.