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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
> >
> >
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
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
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
; 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
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
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
]]
>
> 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
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
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
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
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
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
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
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
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
"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
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
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
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
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
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
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
; > 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
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
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
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 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
>
&
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
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
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
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
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
;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
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
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
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
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
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
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
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
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
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
80 matches
Mail list logo