Re: edit multiple files under multiple directories/folders

2010-11-27 Thread Javier Barroso
On Sat, Nov 27, 2010 at 3:43 AM, Kaushal Shriyan wrote: > Hi, > In my home folder I have 6 tomcat directories under > /home/kaushal/tomcat0..6 > Under each of these tomcats there are sub folder conf and inside these conf > there is a file by the name server.xml so for example I have > tomcat0,

Re: edit multiple files under multiple directories/folders

2010-11-26 Thread Ricardo Ramírez
Hi, maybe something like this: PORT=8079;for i in $(find . -iname "server.xml"|sort); do let PORT=$PORT+1; echo $PORT > $i; done or this: PORT=8079;for i in $(find . -iname "server.xml"|sort); do let PORT=$PORT+1; sed -i -e "s/actualPort/$PORT/g" $i; done best regards. 2010/11/26 Kaushal Shriy

edit multiple files under multiple directories/folders

2010-11-26 Thread Kaushal Shriyan
Hi, In my home folder I have 6 tomcat directories under /home/kaushal/tomcat0..6 Under each of these tomcats there are sub folder conf and inside these conf there is a file by the name server.xml so for example I have tomcat0,tomcat1,tomcat2,tomcat3,tomcat4,tomcat5 so i need to edit server.xm

Re: Multiple files MV'd into one

2008-06-08 Thread Steve King
t;> 2008/6/9 Jordi Gutiérrez Hermoso <[EMAIL PROTECTED]>: >> >> > On 08/06/2008, Steve King <[EMAIL PROTECTED]> wrote: >> >> Got a bit of an issue with one of my system users. They have >> >> accidentally moved multiple files from 1 directo

Re: Multiple files MV'd into one

2008-06-08 Thread Jordi Gutiérrez Hermoso
ECTED]> wrote: > >> Got a bit of an issue with one of my system users. They have > >> accidentally moved multiple files from 1 directory, into a single file > >> in another. > > > > Can we have more details on how this happened? > > I'm not

Re: Multiple files MV'd into one

2008-06-08 Thread Jordi Gutiérrez Hermoso
On 08/06/2008, Steve King <[EMAIL PROTECTED]> wrote: > Got a bit of an issue with one of my system users. They have > accidentally moved multiple files from 1 directory, into a single file > in another. Can we have more details on how this happened? mv won't let you move

Multiple files MV'd into one

2008-06-08 Thread Steve King
Hi all, Got a bit of an issue with one of my system users. They have accidentally moved multiple files from 1 directory, into a single file in another. As a result I now have to try and fetch these files out of the larger file and give them back to the user. Any advice or suggestions on how to

Setting up to multiple files to be shared using bittorrent

2007-05-26 Thread Alan Chandler
I currently publish some files on my web site, but it would be better if I could offer an alternative of using bittorrent to access them so as to preserve some of my bandwidth. As far as I have been able to work out, I need to do the following 1) Set up /etc/default/bittorrent to allow the bitt

Re: how to rename multiple files

2003-01-07 Thread Rogier Wolff
On Sat, Jan 04, 2003 at 09:51:21PM -0500, Fraser Campbell wrote: > On January 4, 2003 09:20 pm, the fabulous Gerald V. Livingston II wrote: > > > Thank you. Took a couple of tries to get the syntax correct but I > > ended up with this: > > > > if [ `ls *.jpg 2>/dev/null|wc -l` -gt 0 ] > > > > then

Re: how to rename multiple files

2003-01-05 Thread Bob Proulx
Colin Watson <[EMAIL PROTECTED]> [2003-01-05 13:46:32 +]: > > find . -maxdepth 1 -name '*.jpg' -print | head -n 1 | grep -q . > > -q already stops at the first match, so there is no need to do this. [I had to check. ;-) The option -q sets done_on_match and the code quits at the first chanc

Re: how to rename multiple files

2003-01-05 Thread Bill Moseley
On Sun, 5 Jan 2003, Mark Zimmerman wrote: > Yes, but that's not all. Setting MATCH=*.jpg does not seem to trigger > the globbing function in bash, to my surprise. The following does > work, though: > > shopt -s nullglob > MATCH=$(printf %s *.jpg) > if [ -n "$MATCH" ]; then SOME=TRUE; else SOME=FA

Re: how to rename multiple files

2003-01-05 Thread Mark Zimmerman
On Sun, Jan 05, 2003 at 04:13:49AM +, Colin Watson wrote: > On Sat, Jan 04, 2003 at 06:58:18PM -0700, Mark Zimmerman wrote: > > shopt -s nullglob > > SOME=FALSE > > MATCH=*.jpg > > for f in $MATCH; do SOME=TRUE; break; done > > > > I tried [ -z $MATCH ] also but it always fails even though ech

Re: how to rename multiple files

2003-01-05 Thread Colin Watson
any arguments" > > > error when there are multiple files? > > > > How about: > > > > find . -maxdepth 1 -name '*.jpg' -print | grep -q . > > Very nice. But if there _were_ thousands and thousands you spend cpu > time grep'ing throug

Re: how to rename multiple files

2003-01-04 Thread Bob Proulx
Colin Watson <[EMAIL PROTECTED]> [2003-01-05 04:04:19 +]: > > And I've bumped into this. How *DOES* one test for the existence of > > ANY file with a given extension without getting a "too many arguments" > > error when there are multiple files? > &g

Re: how to rename multiple files

2003-01-04 Thread Gerald V. Livingston II
Colin Watson said: >> Took a couple of tries to get the syntax correct but I >> ended up with this: >> >> if [ `ls *.jpg 2>/dev/null|wc -l` -gt 0 ] >> >> then for i in *.jpg; do mmv "$i" `date +%s`-$a.jpg; a=a+1; done >> >> fi > > In general it's better to avoid putting backticks in the middle of

Re: how to rename multiple files

2003-01-04 Thread Bob Proulx
Fraser Campbell <[EMAIL PROTECTED]> [2003-01-04 21:51:21 -0500]: > On January 4, 2003 09:20 pm, the fabulous Gerald V. Livingston II wrote: > > > Thank you. Took a couple of tries to get the syntax correct but I > > ended up with this: > > > > if [ `ls *.jpg 2>/dev/null|wc -l` -gt 0 ] > > then for

Re: how to rename multiple files

2003-01-04 Thread Colin Watson
On Sat, Jan 04, 2003 at 08:20:18PM -0600, Gerald V. Livingston II wrote: > Jamin W. Collins said: > > On Sat, Jan 04, 2003 at 07:00:03PM -0600, Gerald V. Livingston II > > wrote: > >> I want "TRUE" if there is one or more zzz.jpg files in a directory, > >> "FALSE" if there are zero of them. > > > >

Re: how to rename multiple files

2003-01-04 Thread Colin Watson
On Sat, Jan 04, 2003 at 06:58:18PM -0700, Mark Zimmerman wrote: > shopt -s nullglob > SOME=FALSE > MATCH=*.jpg > for f in $MATCH; do SOME=TRUE; break; done > > I tried [ -z $MATCH ] also but it always fails even though echo $MATCH > prints an empty string. You probably need to double-quote "$MATC

Re: how to rename multiple files

2003-01-04 Thread Colin Watson
ence of > ANY file with a given extension without getting a "too many arguments" > error when there are multiple files? How about: find . -maxdepth 1 -name '*.jpg' -print | grep -q . ? This keeps the shell's wildcard expansion comfortably out of

Re: how to rename multiple files

2003-01-04 Thread Fraser Campbell
On January 4, 2003 09:20 pm, the fabulous Gerald V. Livingston II wrote: > Thank you. Took a couple of tries to get the syntax correct but I > ended up with this: > > if [ `ls *.jpg 2>/dev/null|wc -l` -gt 0 ] > > then for i in *.jpg; do mmv "$i" `date +%s`-$a.jpg; a=a+1; done > > fi If there were

Re: how to rename multiple files

2003-01-04 Thread Raja R Harinath
; And I've bumped into this. How *DOES* one test for the existence of > ANY file with a given extension without getting a "too many arguments" > error when there are multiple files? > > I want "TRUE" if there is one or more zzz.jpg files in a directory, > &quo

Re: how to rename multiple files

2003-01-04 Thread Gerald V. Livingston II
Jamin W. Collins said: > On Sat, Jan 04, 2003 at 07:00:03PM -0600, Gerald V. Livingston II > wrote: > >> I want "TRUE" if there is one or more zzz.jpg files in a directory, >> "FALSE" if there are zero of them. > > Assuming you don't want the names of the files, just whether they are > there or no

Re: how to rename multiple files

2003-01-04 Thread Michael Naumann
05.01.2003 02:00:03, "Gerald V. Livingston II" <[EMAIL PROTECTED]> wrote: >I want "TRUE" if there is one or more zzz.jpg files in a directory, >"FALSE" if there are zero of them. One solution might be: ls | grep -q '\.jpg$' Cheers, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with

Re: how to rename multiple files

2003-01-04 Thread Mark Zimmerman
]] > > And I've bumped into this. How *DOES* one test for the existence of > ANY file with a given extension without getting a "too many arguments" > error when there are multiple files? > > I want "TRUE" if there is one or more zzz.jpg files in a director

Re: how to rename multiple files

2003-01-04 Thread Jamin W. Collins
On Sat, Jan 04, 2003 at 07:00:03PM -0600, Gerald V. Livingston II wrote: > And I've bumped into this. How *DOES* one test for the existence of > ANY file with a given extension without getting a "too many arguments" > error when there are multiple files? > > I want

Re: how to rename multiple files

2003-01-04 Thread Gerald V. Livingston II
ents which will confuse [, or perhaps to an empty string > (nullglob) > which will also confuse test? > > -- > Colin Watson > [[EMAIL PROTECTED]] And I've bumped into this. How *DOES* one test for the existence of ANY file with a given extension without getting a "too many a

Re: how to rename multiple files

2002-12-10 Thread Colin Watson
On Tue, Dec 10, 2002 at 11:20:31AM -0800, Osamu Aoki wrote: > if [ -e *.JPG ]; then for i in *.JPG; do mv "$i" "${i%.JPG}.jpg"; done fi That -e test looks dreadful ... surely it'll usually expand to lots of arguments which will confuse [, or perhaps to an empty string (nullglob) which will also co

Re: how to rename multiple files

2002-12-10 Thread Osamu Aoki
On Tue, Dec 10, 2002 at 10:11:20AM -0500, Rick Pasotto wrote: > On Mon, Dec 09, 2002 at 11:33:03PM -0800, Osamu Aoki wrote: > > On Mon, Dec 09, 2002 at 10:02:25PM -0600, Shyamal Prasad wrote: > > > "drew" == drew cohan <[EMAIL PROTECTED]> writes: > > > > > > drew> How do I rename all files

Re: how to rename multiple files

2002-12-10 Thread Rick Pasotto
On Mon, Dec 09, 2002 at 11:33:03PM -0800, Osamu Aoki wrote: > On Mon, Dec 09, 2002 at 10:02:25PM -0600, Shyamal Prasad wrote: > > "drew" == drew cohan <[EMAIL PROTECTED]> writes: > > > > drew> How do I rename all files in a directory matching the > > drew> pattern *.JPG to *.jpg in a b

Re: how to rename multiple files

2002-12-10 Thread Colin Watson
On Mon, Dec 09, 2002 at 11:33:03PM -0800, Osamu Aoki wrote: > Simplest alternative without sub-shell nor special command: > > for i in *.JPG > do > mv $i ${i%\.JPG}.jpg > done > > It works with any reasonable shell ash/bash/dash/... and uses only mv > command. I like the various clever shell

Re: how to rename multiple files

2002-12-10 Thread Jason Majors
On Mon, Dec 09, 2002 at 11:33:03PM -0800, Osamu Aoki scribbled... > On Mon, Dec 09, 2002 at 10:02:25PM -0600, Shyamal Prasad wrote: > > "drew" == drew cohan <[EMAIL PROTECTED]> writes: > > > > drew> How do I rename all files in a directory matching the > > drew> pattern *.JPG to *.jpg

Re: how to rename multiple files

2002-12-09 Thread Osamu Aoki
On Mon, Dec 09, 2002 at 10:02:25PM -0600, Shyamal Prasad wrote: > "drew" == drew cohan <[EMAIL PROTECTED]> writes: > > drew> How do I rename all files in a directory matching the > drew> pattern *.JPG to *.jpg in a bash shell script? Thanks to > drew> you guys I can check for the

Re: how to rename multiple files

2002-12-09 Thread Shyamal Prasad
"drew" == drew cohan <[EMAIL PROTECTED]> writes: drew> How do I rename all files in a directory matching the drew> pattern *.JPG to *.jpg in a bash shell script? Thanks to drew> you guys I can check for the existence of jpgs in a drew> directory, but can't seem get 'mv' to ren

Re: how to rename multiple files

2002-12-09 Thread Colin Watson
On Mon, Dec 09, 2002 at 04:29:37PM -0500, drew cohan wrote: > On Mon, Dec 09, 2002 at 03:03:10PM -0500, drew cohan wrote: > > How do I rename all files in a directory matching the pattern *.JPG to > > *.jpg in a bash shell script? Thanks to you guys I can check for the > > existence of jpgs in a d

Re: how to rename multiple files

2002-12-09 Thread Craig Dickson
drew cohan wrote: > Thanks, once again, you guys are great. One quick question about this > one: > > $ rename 's/\.JPG$/.jpg/' *.JPG > > Shouldn't I literalize the second period like > > $ rename 's/\.JPG$/\.jpg/' *.JPG > > or doesn't that make a difference? The replacement text is not a

Re: how to rename multiple files

2002-12-09 Thread martin f krafft
also sprach drew cohan <[EMAIL PROTECTED]> [2002.12.09.2229 +0100]: > Thanks, once again, you guys are great. One quick question about this > one: > > $ rename 's/\.JPG$/.jpg/' *.JPG > > Shouldn't I literalize the second period like > > $ rename 's/\.JPG$/\.jpg/' *.JPG > > or doesn't that

RE: how to rename multiple files

2002-12-09 Thread drew cohan
On Mon, Dec 09, 2002 at 03:03:10PM -0500, drew cohan wrote: > How do I rename all files in a directory matching the pattern *.JPG to > *.jpg in a bash shell script? Thanks to you guys I can check for the > existence of jpgs in a directory, but can't seem get 'mv' to rename them > for me (always co

Re: how to rename multiple files

2002-12-09 Thread Andrei Smirnov
On Mon, Dec 09, 2002 at 03:03:10PM -0500, drew cohan wrote: > How do I rename all files in a directory matching the pattern *.JPG to > *.jpg in a bash shell script? Thanks to you guys I can check for the > existence of jpgs in a directory, but can't seem get 'mv' to rename them > for me (always co

Re: how to rename multiple files

2002-12-09 Thread Oliver Fuchs
On Mon, 09 Dec 2002, drew cohan wrote: > How do I rename all files in a directory matching the pattern > *.JPG to *.jpg in a bash shell script? Thanks to you guys I can > check for the existence of jpgs in a directory, but can't seem get > 'mv' to rename them for me (always complains that the las

Re: how to rename multiple files

2002-12-09 Thread Vinai Kopp
; > for me (always complains that the last argument must be a > > directory). You could try mmv (package mmv): mmv - Move/Copy/Append/Link multiple files the syntax here would be mmv '*.JPG' '#1.jpg' It's neat, it can handle multiple regexes as a name and do operat

Re: how to rename multiple files

2002-12-09 Thread Colin Watson
On Mon, Dec 09, 2002 at 03:03:10PM -0500, drew cohan wrote: > How do I rename all files in a directory matching the pattern *.JPG to > *.jpg in a bash shell script? Thanks to you guys I can check for the > existence of jpgs in a directory, but can't seem get 'mv' to rename them > for me (always co

Re: how to rename multiple files

2002-12-09 Thread Brian P. Flaherty
he from pattern, here the '[01]'. The #2 matches the single character wildcard. One very nice thing about mmv, etc. is that if an error is detected (for example, multiple files go to a destination with the same name), the program doesn't do anything and tell you. There is also a dryrun

Re: how to rename multiple files

2002-12-09 Thread Craig Dickson
the last argument must be a directory). That's because the shell expands filenames. If you have the following files in the current directory: 1.JPG 2.JPG 3.JPG then the command mv *.JPG *.jpg turns into mv 1.JPG 2.JPG 3.JPG *.jpg and so mv complains that if you're m

how to rename multiple files

2002-12-09 Thread drew cohan
How do I rename all files in a directory matching the pattern *.JPG to *.jpg in a bash shell script? Thanks to you guys I can check for the existence of jpgs in a directory, but can't seem get 'mv' to rename them for me (always complains that the last argument must be a directory). TIA, Dr

Re: Set group seting to multiple files

2002-09-12 Thread martin f krafft
also sprach Alan Shutko <[EMAIL PROTECTED]> [2002.09.12.2003 +0200]: > chmod -R u+r ~/* ~/.* > > which _is_ destructive. not with the zsh shell: fishbowl:~/tmp> chmod -vR u+r .* | head zsh: no matches found: .* (the dir contains no dotfiles.) -- martin; (greetings from the hea

Re: Set group seting to multiple files

2002-09-12 Thread Alan Shutko
martin f krafft <[EMAIL PROTECTED]> writes: > /music/mp3/* includes .. and since you are doing things the recursive > way... No, it doesn't. Try "echo *" somewhere. -- Alan Shutko <[EMAIL PROTECTED]> - In a variety of flavors! Doubt grows with knowledge -- To UNSUBSCRIBE, email to [EMAIL

Re: Set group seting to multiple files

2002-09-12 Thread Alan Shutko
martin f krafft <[EMAIL PROTECTED]> writes: > having now checked it (chmod -R u+r ~/* is a non-destructive way in > 98% of the cases), it seems that things changed. the reason i warned chmod -R u+r ~/* is always (and has always been) non-destructive. But it's not complete, since it won't chmod

Re: Set group seting to multiple files

2002-09-12 Thread Ken Irving
On Thu, Sep 12, 2002 at 05:20:48PM +0100, Colin Watson wrote: > On Thu, Sep 12, 2002 at 08:07:24AM -0800, Ken Irving wrote: > > I did this once, then panicked and halted the process when I heard > > a lot of disk activity. The problem is (I think) that the wildcard > > matches the .. file and th

Re: Set group seting to multiple files

2002-09-12 Thread martin f krafft
also sprach Colin Watson <[EMAIL PROTECTED]> [2002.09.12.1809 +0200]: > It doesn't make any sense to me either. You can see what chown is doing > by adding the -v flag, and: > > [cjwatson@riva ~/tmp]$ sudo chown -v -R www-data svn-dump.* > changed ownership of `svn-dump.142' to www-data > c

Re: Set group seting to multiple files

2002-09-12 Thread martin f krafft
also sprach Travis Crump <[EMAIL PROTECTED]> [2002.09.12.1728 +0200]: > >one warning: > > > > NEVER, i repeat *N*E*V*E*R* use the -R flag to chmod/chgrp/chown if > > the final argument is not a directory. for instance > > > >chown -R pierre /music/mp3/* > > > > will eventually change *your

Re: Set group seting to multiple files

2002-09-12 Thread Colin Watson
On Thu, Sep 12, 2002 at 08:07:24AM -0800, Ken Irving wrote: > I did this once, then panicked and halted the process when I heard > a lot of disk activity. The problem is (I think) that the wildcard > matches the .. file and the process recurses back into the parent > directory, etc. '*' doesn't

Re: Set group seting to multiple files

2002-09-12 Thread Colin Watson
On Thu, Sep 12, 2002 at 11:28:00AM -0400, Travis Crump wrote: > martin f krafft wrote: > >one warning: > > > > NEVER, i repeat *N*E*V*E*R* use the -R flag to chmod/chgrp/chown if > > the final argument is not a directory. for instance > > > >chown -R pierre /music/mp3/* > > > > will eventua

Re: Set group seting to multiple files

2002-09-12 Thread Ken Irving
On Thu, Sep 12, 2002 at 11:28:00AM -0400, Travis Crump wrote: > martin f krafft wrote: > >one warning: > > > > NEVER, i repeat *N*E*V*E*R* use the -R flag to chmod/chgrp/chown if > > the final argument is not a directory. for instance > > > >chown -R pierre /music/mp3/* > > > > will eventua

Re: Set group seting to multiple files

2002-09-12 Thread Keith Robinson
On Thu, Sep 12, 2002 at 01:49:33PM +0200, Pierre Dupuis wrote: > OK ! > > I'm sorry to be a newbie :// I need more explanation.. I will be > more explicit > > I've got some files owned by root and part as root group. > First i want to made them audio group. > Then i want to set a rea

Re: Set group seting to multiple files

2002-09-12 Thread Bob Proulx
martin f krafft <[EMAIL PROTECTED]> [2002-09-12 13:33:35 +0200]: > these two can be combined: > > chown -R pierre.music /music/mp3 A very, very small point. The '.' is deprecated in favor of the ':' and so this is preferably: chown -R pierre:music /music/mp3 The ':' is not a valid u

Re: Set group seting to multiple files

2002-09-12 Thread Travis Crump
martin f krafft wrote: > one warning: > > NEVER, i repeat *N*E*V*E*R* use the -R flag to chmod/chgrp/chown if > the final argument is not a directory. for instance > > chown -R pierre /music/mp3/* > > will eventually change *your entire filesystem* to be owned by > pierre! > Can s

Re: Set group seting to multiple files

2002-09-12 Thread martin f krafft
also sprach martin f krafft <[EMAIL PROTECTED]> [2002.09.12.1333 +0200]: > chmod -R o=rwX,g=rX,o= /music/mp3 ^ u=rwX -- martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; net@madduck micro$oft dns servi

Re: Set group seting to multiple files

2002-09-12 Thread martin f krafft
also sprach Pierre Dupuis <[EMAIL PROTECTED]> [2002.09.12.1319 +0200]: > I expected a little problem, i have got a lot of files (Mp3s) organized > in rep with sub rep, and i want to set a exec authorisation for a user. > I know how to set it to a unique file, but there are more than one > thous

Re: Set group seting to multiple files

2002-09-12 Thread Pierre Dupuis
lt;[EMAIL PROTECTED]> >Sent: Thursday, September 12, 2002 2:19 PM >Subject: Set group seting to multiple files > > > > >>Good afternoon everyone :) >> >>I expected a little problem, i have got a lot of files (Mp3s) organized >>in rep with sub re

Set group seting to multiple files

2002-09-12 Thread Pierre Dupuis
Good afternoon everyone :) I expected a little problem, i have got a lot of files (Mp3s) organized in rep with sub rep, and i want to set a exec authorisation for a user. I know how to set it to a unique file, but there are more than one thousand files, so i wanted to do for each Mp3s (and to

Re: Multiple files

2002-06-02 Thread Karsten M. Self
on Fri, May 31, 2002, Daniel D Jones ([EMAIL PROTECTED]) wrote: > How does one handle multiple files via most command line utilities? For > example, suppose you have a handful of perl scripts (*.pl) and you want > to save them in the same directory with a different extension. The

Re: Multiple files

2002-05-31 Thread Alan Shutko
Thomas Good <[EMAIL PROTECTED]> writes: > ls *.pl > sources > for file in `cat sources` Why this, instead of "for x in `ls *.pl`" or just "for x in *.pl"? -- Alan Shutko <[EMAIL PROTECTED]> - In a variety of flavors! If God had not given us sticky tape, it would have been necessary to invent it

Re: Multiple files

2002-05-31 Thread Simon Law
On 31 May 2002, Daniel D Jones wrote: > How does one handle multiple files via most command line utilities? For > example, suppose you have a handful of perl scripts (*.pl) and you want > to save them in the same directory with a different extension. The > command >

Re: Multiple files

2002-05-31 Thread Thomas Good
On 31 May 2002, Daniel D Jones wrote: > How does one handle multiple files via most command line utilities? For > example, suppose you have a handful of perl scripts (*.pl) and you want > to save them in the same directory with a different extension. The > command > > cp *.p

Re: Multiple files

2002-05-31 Thread Dave Carrigan
Daniel D Jones <[EMAIL PROTECTED]> writes: > How does one handle multiple files via most command line utilities? For > example, suppose you have a handful of perl scripts (*.pl) and you want > to save them in the same directory with a different extension. The > command > &

Re: Multiple files

2002-05-31 Thread Steve Haslam
On Fri, May 31, 2002 at 10:54:16AM -0400, Daniel D Jones wrote: > How does one handle multiple files via most command line utilities? For > example, suppose you have a handful of perl scripts (*.pl) and you want > to save them in the same directory with a different extension. The

Multiple files

2002-05-31 Thread Daniel D Jones
How does one handle multiple files via most command line utilities? For example, suppose you have a handful of perl scripts (*.pl) and you want to save them in the same directory with a different extension. The command cp *.pl *.bak complains that you're copying multiple files but the

C++: a gdb problem when debugging multiple files source program.

2001-12-21 Thread Shaul Karl
For some reason the behavior of gdb when I split a C++ program into multiple files is not the same as when there is only one source file. In particular, in the multiple file case gdb does not recognize local variables and does not honor breakpoints that are set by line numbers. What am I missing

apt-get: how to download multiple files at a time

2001-11-23 Thread Horacio de Oro
Hi! Anyone know if would be possible to configure apt-get to download multiple file at a time (it does that if are file from different servers). Thanks! Horacio de Oro ADN S.R.L. Córdoba - Argentina

Re: mv multiple files w/wildcard

2000-10-25 Thread Johann Spies
On Sat, Oct 21, 2000 at 06:13:50PM -0700, brian moore wrote: > On Sat, Oct 21, 2000 at 01:20:02PM -0500, Lance Hoffmeyer wrote: > > > > I have a number of subdirectories where I have files with - such as > > name - title.txt and I wish to convert them to: > > name: title.txt > > Look at 'rename

Re: mv multiple files w/wildcard

2000-10-22 Thread Colin Watson
;done > >but this gives me an error about moving multiple files and needing a directory You need some additional quoting: for i in *-*; do mv "$i" "`echo $i | sed -e 's/ - /: '`"; done ... works for me. >I also tri

Re: mv multiple files w/wildcard

2000-10-21 Thread brian moore
sed -e 's/ - /:/'`'done > > but this gives me an error about moving multiple files and needing a directory > > > I also tried on e-line perl script > > perl -we '($new=$_) =~tr/\s-\s/:\s/ && rename _$,$new' > > but I get uninitialized value

Re: mv multiple files w/wildcard

2000-10-21 Thread Dave Sherohman
On Sat, Oct 21, 2000 at 01:20:02PM -0500, Lance Hoffmeyer wrote: > I have a number of subdirectories where I have files with - such as > name - title.txt and I wish to convert them to: > name: title.txt If this isn't just a one-time thing (or perhaps even if it is) you should check out the mmv pa

Re: mv multiple files w/wildcard

2000-10-21 Thread Moritz Schulte
Lance Hoffmeyer <[EMAIL PROTECTED]> writes: > I have a number of subdirectories where I have files with - such as > name - title.txt and I wish to convert them to: > name: title.txt > > In bash I tried: > > for i in *-*;do mv $i `echo $i | sed -e 's/ - /:/'`'done

mv multiple files w/wildcard

2000-10-21 Thread Lance Hoffmeyer
I have a number of subdirectories where I have files with - such as name - title.txt and I wish to convert them to: name: title.txt In bash I tried: for i in *-*;do mv $i `echo $i | sed -e 's/ - /:/'`'done but this gives me an error about moving multiple files and needing

Re: OFF-TOPIC: fwd: Microsoft Internet Explorer 4 Tip of the Day [Downloading multiple files - 07/27/98]

1998-07-30 Thread Norbert Bottlaender-Prier
count zero a écrit: > > Frock wrote: >... > > > > This is a general problem with windows95/98, because the OS doesn't allow > > more than 4 (four!!) network connections!! > > > > Why is this ??Why do ppl have to suffer from this stupid limitation ?? > > I never understood that. Maybe someone c

Re: OFF-TOPIC: fwd: Microsoft Internet Explorer 4 Tip of the Day [Downloading multiple files - 07/27/98]

1998-07-29 Thread count zero
Frock wrote: > > > > And now for today's tip ... > > > > THAT'S A BIG DOWNLOAD > > > > R. K. asks this question: > > > > "I often like to start downloads for more than one file at a time. > > Lately I've noticed that Microsoft Internet Explorer 4 frequently > > doesn't display the Save This Prog

RE: OFF-TOPIC: fwd: Microsoft Internet Explorer 4 Tip of the Day [Downloading multiple files - 07/27/98]

1998-07-29 Thread Breathnach, Proinnsias \(Dublin\)
xplorer 4 Tip of the > Day [Downloading multiple files - 07/27/98] > Sorry, I just HAD to bring this one :P > This is a general problem with windows95/98, because the OS doesn't allow > more than 4 (four!!) network connections!! > > Why is this ??Why do ppl have t

OFF-TOPIC: fwd: Microsoft Internet Explorer 4 Tip of the Day [Downloading multiple files - 07/27/98]

1998-07-28 Thread Frock
Sorry, I just HAD to bring this one :P > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of TipWorld > Sent: 27. juli 1998 14:10 > To: [EMAIL PROTECTED] > Subject: Microsoft Internet Explorer 4 Tip of the Day [Downloading > mult

Encoding multiple files into a MIME message

1998-06-03 Thread Peter S Galbraith
I need to write a script to send multiple files in a single MIME message. - mpack: would seem to be the answer, but it will strangely only attach a single file. Syntax: mpack -s "Mail Subject line" -d descrip-file.txt file-to-encode address - mhn: I can't figure ou