cp command with progress bar

2007-04-18 Thread yaron
Hi all, I am looking for a cp like command line utility, that shows the percentage of data copied during the file copy. Is anyone familiar with such a utility. Thanks in advance, Yaron Kahanovitch = To unsubscribe, send mail

Re: cp command with progress bar

2007-04-18 Thread Oren Held
rsync -v --progress [EMAIL PROTECTED] wrote: Hi all, I am looking for a cp like command line utility, that shows the percentage of data copied during the file copy. Is anyone familiar with such a utility. Thanks in advance, Yaron Kahanovitch

Re: cp command with progress bar

2007-04-18 Thread Valery Reznic
--- [EMAIL PROTECTED] wrote: Hi all, I am looking for a cp like command line utility, that shows the percentage of data copied during the file copy. Is anyone familiar with such a utility. May be those: http://freshmeat.net/projects/progress/ http://freshmeat.net/projects/barcat/ http

Re: cp command with progress bar

2007-04-18 Thread Alex Dover
I once looked for similar functionality and found this: http://www.theiling.de/projects/bar.html Haven't tried it yet though... On 4/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi all, I am looking for a cp like command line utility, that shows the percentage of data copied during

Re: cp command with progress bar

2007-04-18 Thread yaron
Thanks, perfect for me. Yaron Kahanovitch - Original Message - From: Oren Held [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: linux-il [EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 11:13:57 AM (GMT+0200) Auto-Detected Subject: Re: cp command with progress bar rsync -v --progress

Re: cp from-to

2005-04-05 Thread Aaron
Well you are right about speed the perl script was lightning speed. The bash tries my patience. The Awk spits out one file with only a header and a footer in it? Any ideas what is going wrong? Also I forgot that in the perl script the siman r1* is put in the file but I want it excluded. I added

Re: cp from-to

2005-04-04 Thread Aaron
On Thu, Mar 31, 2005 at 05:46:21PM +0200 or thereabouts, Shlomi Fish wrote: Here's a Perl script that does that. I can't think of a good way to do it in shell at the moment. Thanks for the reply wow the response is neat. #!/usr/bin/perl -w # Written by Shlomi Fish # (c) 2005 under MIT X11

Re: cp from-to

2005-04-04 Thread Aaron
I decided to take on the challenge :) Wow thanks for this cool script. Aaron generating files named out1, out2, and so on, each beginning with the content of the file HEADER and ending with the content of the file FOOTER. For extra coolness (?) points, the following script doesn't

Re: cp from-to

2005-04-04 Thread Aaron
Wow! This is just great. I didn't even know about split and now I have a bash, perl and awk choice. Thanks all, This is just amazing. Aaron On Thu, Mar 31, 2005 at 09:29:09PM +0200 or thereabouts, Ehud Karni wrote: On Thu, 31 Mar 2005 18:29:09 +0200, Nadav Har'El [EMAIL PROTECTED] wrote:

cp from-to

2005-03-31 Thread Aaron
Hi all, I have a very long text file which is composed of many smaller files. I need to take the smaller files out of the large one and dump them automagically into a template. I also want to keep the original file intact. Each smaller file starts with a line r1*etc (the etc being some

Re: cp from-to

2005-03-31 Thread Offer Kaye
On Thu, 31 Mar 2005 16:34:16 +0200, Aaron wrote: Hi all, I have a very long text file which is composed of many smaller files. 1. How large? 5Meg? 500Meg? Can the entire file be read into memory at once on your machine? I need to take the smaller files out of the large one and dump them

Re: cp from-to

2005-03-31 Thread Shlomi Fish
On Thursday 31 March 2005 16:34, Aaron wrote: Hi all, I have a very long text file which is composed of many smaller files. I need to take the smaller files out of the large one and dump them automagically into a template. I also want to keep the original file intact. Each smaller file

Re: cp from-to

2005-03-31 Thread Nadav Har'El
On Thu, Mar 31, 2005, Shlomi Fish wrote about Re: cp from-to: Here's a Perl script that does that. I can't think of a good way to do it in shell at the moment. I decided to take on the challenge :) The following program splits a file (given to it on stdin) on --- lines, generating files

Re: cp from-to

2005-03-31 Thread Oron Peled
On Thursday 31 March 2005 18:29, Nadav Har'El wrote: On Thu, Mar 31, 2005, Shlomi Fish wrote about Re: cp from-to: Here's a Perl script that does that. I decided to take on the challenge :) Something wrong with csplit(1) ? -- Oron Peled Voice/Fax: +972-4-8228492

Re: cp from-to

2005-03-31 Thread Nadav Har'El
On Thu, Mar 31, 2005, Oron Peled wrote about Re: cp from-to: On Thursday 31 March 2005 18:29, Nadav Har'El wrote: On Thu, Mar 31, 2005, Shlomi Fish wrote about Re: cp from-to: Here's a Perl script that does that. I decided to take on the challenge :) Something wrong with csplit(1) ? I

Re: cp from-to

2005-03-31 Thread Ehud Karni
On Thu, 31 Mar 2005 18:29:09 +0200, Nadav Har'El [EMAIL PROTECTED] wrote: For extra coolness (?) points, the following script doesn't require any modern bash/ksh/zsh features, and should work on the Bourne shell (I didn't actually check that, though). #!/bin/sh num=1 exec 3out.$num

Re: cp from-to

2005-03-31 Thread Oron Peled
On Thursday 31 March 2005 20:42, Nadav Har'El wrote: On Thu, Mar 31, 2005, Oron Peled wrote about Re: cp from-to: Something wrong with csplit(1) ? I never could figure out how to use csplit for doing useful things. It's syntax is very limited, and it's always impossible to do what I want

cp -a

2004-06-27 Thread aamehl
Hi I looked this up and I still don't understand it. I am following directions that tell me to do the following: cp -a /usr/. /mnt/card man cp tells me that -a means archive. but what archive means I don't get. Also what does the . (dot) do? The terminal output I get is strange as well. cp

Re: cp -a

2004-06-27 Thread Offer Kaye
aamehl wrote: Hi I looked this up and I still don't understand it. I am following directions that tell me to do the following: cp -a /usr/. /mnt/card man cp tells me that -a means archive. but what archive means I don't get. Also what does the . (dot) do? Archive: don't follow symbolic links

cp: omitting directory

2004-01-22 Thread David Howard
Hi all. I'm having problems setting up a cron job to back up Thunderbird mail. This is Thunderbird 0.4. When testing the command syntax I get: [EMAIL PROTECTED]:~$ cp /home/david/.mozilla-thunderbird/default/ejlqdp1x.slt/Mail /mnt/archive/Mail cp: omitting directory `/home/david/.mozilla

Re: cp: omitting directory

2004-01-22 Thread Yedidyah Bar-David
On Thu, Jan 22, 2004 at 03:20:43PM +0200, David Howard wrote: Hi all. I'm having problems setting up a cron job to back up Thunderbird mail. This is Thunderbird 0.4. When testing the command syntax I get: [EMAIL PROTECTED]:~$ cp /home/david/.mozilla-thunderbird/default/ejlqdp1x.slt/Mail

Re: cp: omitting directory

2004-01-22 Thread Shlomi Fish
On Thu, 22 Jan 2004, David Howard wrote: Hi all. I'm having problems setting up a cron job to back up Thunderbird mail. This is Thunderbird 0.4. When testing the command syntax I get: [EMAIL PROTECTED]:~$ cp /home/david/.mozilla-thunderbird/default/ejlqdp1x.slt/Mail /mnt/archive/Mail cp

Re: cp: omitting directory

2004-01-22 Thread Herouth Maoz
Quoting David Howard [EMAIL PROTECTED]: Hi all. I'm having problems setting up a cron job to back up Thunderbird mail. This is Thunderbird 0.4. When testing the command syntax I get: [EMAIL PROTECTED]:~$ cp /home/david/.mozilla-thunderbird/default/ejlqdp1x.slt/Mail /mnt/archive/Mail cp

Re: cp: omitting directory

2004-01-22 Thread David Howard
David Howard wrote: Hi all. [snip] OK, I hit Send too quickly. Almost immediately afterwards the penny dropped (RTFM!!). man cp and info cp gave me the -r, -R and -a arguments, which solved the problem. Note to self - RTFM. I then snapped off a quick update message to that effect, hit the Reply

RE: cp -a hangs (wait_on_buffer)

2003-03-03 Thread Elie
, 2003 8:30 PM To: [EMAIL PROTECTED] Subject: cp -a hangs (wait_on_buffer) Hope someone can help Model Maxtor 13 gig 93160U4 I am having problems transfering my file system from disk 1 (hdb) to disk 2 (hdc). cp -a hangs under apparently random conditions. A look at ps shows that cp

Re: cp -a hangs (wait_on_buffer)

2003-03-03 Thread Shaul Karl
On Mon, Mar 03, 2003 at 10:09:40PM +0200, Elie wrote: Anyone? I tested the drive on Windows 98 in the same machine (dual boot) and there are no problems. Can anyone think what would cause this? btw, its a 91360u4 (not 931...). -EW Maybe there is a physical damage only to the Linux

cp -a hangs (wait_on_buffer)

2003-03-02 Thread Elie
Hope someone can help Model Maxtor 13 gig 93160U4 I am having problems transfering my file system from disk 1 (hdb) to disk 2 (hdc). cp -a hangs under apparently random conditions. A look at ps shows that cp in waiting_on_buffer and other processes such as kupdated are also waiting for data

Re: On Linux, cp new_version old_version while old is running is harmless

2003-01-01 Thread Christoph Bugel
Time for testing: [oron@mercury test]$ cp /bin/sleep mysleep [oron@mercury test]$ ./mysleep 100 [1] 7150 [oron@mercury test]$ cp /bin/sleep mysleep cp: cannot create regular file `mysleep': Text file busy Just as any sane Unix system (of course you can

Re: On Linux, cp new_version old_version while old is running is harmless

2003-01-01 Thread Christoph Bugel
open(mysleep, O_WRONLY|O_TRUNC|O_LARGEFILE) = 4 and if mysleep is still running: open(mysleep, O_WRONLY|O_TRUNC|O_LARGEFILE) = -1 ETXTBSY (Text file busy) = To unsubscribe, send mail to [EMAIL PROTECTED] with the word unsubscribe

Re: On Linux, cp new_version old_version while old is running is harmless

2003-01-01 Thread Ehud Karni
On Wed, 1 Jan 2003 10:10:35 +0200, Christoph Bugel [EMAIL PROTECTED] wrote: interesting.. I didn't know that cp overwrites the existing inode. but indeed it does, it simply *truncates* the target file: $ strace cp /bin/sleep mysleep 21 | grep open.*sleep open(/bin/sleep, O_RDONLY

Re: On Linux, cp new_version old_version while old is running is harmless

2003-01-01 Thread Christoph Bugel
On 2003-01-01, Ehud Karni wrote: On Wed, 1 Jan 2003 10:10:35 +0200, Christoph Bugel [EMAIL PROTECTED] wrote: interesting.. I didn't know that cp overwrites the existing inode. but indeed it does, it simply *truncates* the target file: $ strace cp /bin/sleep mysleep 21 | grep open

Re: On Linux, cp new_version old_version while old is running is harmless

2003-01-01 Thread Ehud Karni
On Wed, 1 Jan 2003 14:08:22 +0200, Christoph Bugel [EMAIL PROTECTED] wrote: The point of using `cp' (or `cat ') is to keep the current (old) file permissions. Using `rm + cp' or `mv' create the new file with your default permissions or the moved file permissions. Good point. BTW, I

On Linux, cp new_version old_version while old is running is harmless

2002-12-31 Thread Shaul Karl
I have heard lately on 2 different occasions here that there could be a problem when copying a new version of a binary over the old one while the old one is running. I have also read the opposite and I believe that many Debian users who actively track the Debian archive will testify for the

Re: On Linux, cp new_version old_version while old is running is harmless

2002-12-31 Thread Oron Peled
On Wed, 1 Jan 2003 03:53:56 +0200 Shaul Karl [EMAIL PROTECTED] wrote: I have heard lately on 2 different occasions here that there could be a problem when copying a new version of a binary over the old one while the old one is running. Time for testing: [oron@mercury test]$ cp /bin