Re: bash script question

2009-12-01 Thread Dánielisz László
I just find out:

#!/usr/local/bin/bash
export IFS= 
cuc=$*
mkdir cuc

Thanks anyway!

László




From: Dánielisz László laszlo_daniel...@yahoo.com
To: freebsd-questions@freebsd.org
Sent: Tue, December 1, 2009 8:37:04 PM
Subject: bash script question


Hello,

I'd like to ask how can I read a variable in the same line when I launch a 
script?
For example ./script.sh directory_name, and I want the script to creat the 
directory called directory_name or whatever I input there.

Thank you!
László




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


bash script question

2009-12-01 Thread Dánielisz László
Hello,

I'd like to ask how can I read a variable in the same line when I launch a 
script?
For example ./script.sh directory_name, and I want the script to creat the 
directory called directory_name or whatever I input there.

Thank you!
László



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Polytropon
On Tue, 1 Dec 2009 11:48:43 -0800 (PST), Dánielisz László 
laszlo_daniel...@yahoo.com wrote:
 I just find out:
 
 #!/usr/local/bin/bash
 export IFS= 
 cuc=$*
 mkdir cuc

The $* variable will expand to all arguments given on the
command line, e. g.

$ ./myscript foo bar baz

will result in

mkdir foo bar baz

and so create a directory named

foo\ bar\ baz

including the spaces. If you only want to access the first
parameter, use $1, and for good form, check it before
further processing. Your use of quotes to include the
parameter is already good form. :-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Rolf G Nielsen

Dánielisz László wrote:

I just find out:

#!/usr/local/bin/bash
export IFS= 
cuc=$*
mkdir cuc

Thanks anyway!

László




From: Dánielisz László laszlo_daniel...@yahoo.com
To: freebsd-questions@freebsd.org
Sent: Tue, December 1, 2009 8:37:04 PM
Subject: bash script question


Hello,

I'd like to ask how can I read a variable in the same line when I launch a 
script?
For example ./script.sh directory_name, and I want the script to creat the directory 
called directory_name or whatever I input there.

Thank you!
László



  
___

freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org





Why are you using bash? To make a shell script as portable as possible, 
use /bin/sh. Bash is a third party shell, that isn't included in a base 
installation (you're not using bash as root's shell, are you?). By using 
/bin/sh, you make sure the script will run without having to install any 
ports.


Try this instead (check the Special parameters section in the sh(1) 
man page to get the difference between $* and $@ and an explanation as 
to why I quote the $@).


#!/bin/sh
mkdir $@


Cheers,

Rolf Nielsen

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Polytropon
On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen laz...@lazlarlyricon.com 
wrote:
 Why are you using bash? To make a shell script as portable as possible, 
 use /bin/sh. Bash is a third party shell, that isn't included in a base 
 installation (you're not using bash as root's shell, are you?). By using 
 /bin/sh, you make sure the script will run without having to install any 
 ports.

That's a very good advice. Using sh is strongly recommended
for maximal portability. Use sh if you're not requiring 
features that are bash-only.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Gary Kline
On Tue, Dec 01, 2009 at 10:42:10PM +0100, Polytropon wrote:
 On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen laz...@lazlarlyricon.com 
 wrote:
  Why are you using bash? To make a shell script as portable as possible, 
  use /bin/sh. Bash is a third party shell, that isn't included in a base 
  installation (you're not using bash as root's shell, are you?). By using 
  /bin/sh, you make sure the script will run without having to install any 
  ports.
 
 That's a very good advice. Using sh is strongly recommended
 for maximal portability. Use sh if you're not requiring 
 features that are bash-only.
 
 

Hi guys, 

Here's a bash-related question, kind-of.  Is there any way to
automagically run my .csrhc thru a script and wind up with a
bash script?

gary


 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Rolf G Nielsen

Gary Kline wrote:

On Tue, Dec 01, 2009 at 10:42:10PM +0100, Polytropon wrote:

On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen laz...@lazlarlyricon.com 
wrote:
Why are you using bash? To make a shell script as portable as possible, 
use /bin/sh. Bash is a third party shell, that isn't included in a base 
installation (you're not using bash as root's shell, are you?). By using 
/bin/sh, you make sure the script will run without having to install any 
ports.

That's a very good advice. Using sh is strongly recommended
for maximal portability. Use sh if you're not requiring 
features that are bash-only.





	Hi guys, 


Here's a bash-related question, kind-of.  Is there any way to
automagically run my .csrhc thru a script and wind up with a
bash script?

gary




--
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




If by Is there any way you mean is it possible, the answer would 
have to be yes. The next question is most likely has anyone written 
such a script? and to that question, someone else will have to provide 
the answer.


Rolf Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Polytropon
On Tue, 1 Dec 2009 13:45:55 -0800, Gary Kline kl...@thought.org wrote:
   Hi guys, 
 
   Here's a bash-related question, kind-of.  Is there any way to
   automagically run my .csrhc thru a script and wind up with a
   bash script?

csh and (ba)sh use dufferent syntax and variable names.
But you could write an easy search and replace translator
for the .cshrc settings, which are mostly

alias foo = 'bar'
set var = value
setenv envvar = value

but for some of them, there's no bash equivalent (e. g.
set promptchars and set promt in cshrc, but PS1 in bash).

I'm not aware of an already existing mechanism that does
this. Running one shell from the other doesn't transport
most of the settings.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Gary Kline
On Tue, Dec 01, 2009 at 11:02:07PM +0100, Rolf G Nielsen wrote:
 Gary Kline wrote:
 On Tue, Dec 01, 2009 at 10:42:10PM +0100, Polytropon wrote:
 On Tue, 01 Dec 2009 21:06:34 +0100, Rolf G Nielsen 
 laz...@lazlarlyricon.com wrote:
 Why are you using bash? To make a shell script as portable as possible, 
 use /bin/sh. Bash is a third party shell, that isn't included in a base 
 installation (you're not using bash as root's shell, are you?). By using 
 /bin/sh, you make sure the script will run without having to install any 
 ports.
 That's a very good advice. Using sh is strongly recommended
 for maximal portability. Use sh if you're not requiring 
 features that are bash-only.
 
 
 
  Hi guys, 
 
  Here's a bash-related question, kind-of.  Is there any way to
  automagically run my .csrhc thru a script and wind up with a
  bash script?
 
  gary
 
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org
 
 
 If by Is there any way you mean is it possible, the answer would 
 have to be yes. The next question is most likely has anyone written 
 such a script? and to that question, someone else will have to provide 
 the answer.
 
 Rolf Nielsen



(sheepishly, and hanging my head) yes.  does anybody have a
csh/cshrc-alias to a bash/bashrc-alias script?  i've got
hundreds of aliases to be just deleted, i suppose, by dozens
more.  

[  ]

{ please, sur, might i have more to eat? i'm hungry... { beg, 
contrition... .} }

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: bash script question

2009-12-01 Thread Gary Kline
On Tue, Dec 01, 2009 at 11:10:33PM +0100, Polytropon wrote:
 On Tue, 1 Dec 2009 13:45:55 -0800, Gary Kline kl...@thought.org wrote:
  Hi guys, 
  
  Here's a bash-related question, kind-of.  Is there any way to
  automagically run my .csrhc thru a script and wind up with a
  bash script?
 
 csh and (ba)sh use dufferent syntax and variable names.
 But you could write an easy search and replace translator
 for the .cshrc settings, which are mostly
 
   alias foo = 'bar'
   set var = value
   setenv envvar = value
 
 but for some of them, there's no bash equivalent (e. g.
 set promptchars and set promt in cshrc, but PS1 in bash).
 
 I'm not aware of an already existing mechanism that does
 this. Running one shell from the other doesn't transport
 most of the settings.
 

Ah, Polyt to the rescue.  I already have things like setenv
aliased to ksh/zsh/borne-again/ and probably even  /bin/sh ||
/bin/ash. 

I thought that especially bash was still persnikity.  It used 
to be centuries ago, so I just stuck with zsh.   Another deal
was that I rarely use root, so it didn't worth it.  But now, 
sweating the End of Days, yup.

I'll see if vim can come to the resuce.  thankee.

gary


 
 
 
 -- 
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 7.31a release of Jottings: http://jottings.thought.org/index.php

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Korn shell script Question

2007-02-02 Thread Dak Ghatikachalam

On 1/31/07, kris [EMAIL PROTECTED] wrote:


On Wed, Jan 31, 2007 at 02:27:24PM -0500, Dak Ghatikachalam wrote:
Thanks a lot , I test ran it. This is great

No problem. I should add that if this is to be part of a long running
script, you should close the co-process (the while-loop running cat),
with something like:

exec 5p
exec 5-




I did not really understand this part of the email

Did you mean that I should

{ while cat /tmp/availdest.$$; do false; done } |
exec 5p

{ while cat file1.txt; do false; done } |

cat file2.txt |
while read file_b
do
   read -p file_a
   echo $file_b $file_a
done file3.txt

exec 5-

should I do something like this?  will this work ?


-

WHen I put this code in large part of the code,  several times it speews out
error like coprocess already exists

here is excerpts of the code.

{ while cat /tmp/availdest.$$; do false; done } |

cat  ${RESTORELINKDIR}/rman_restore_dir/${RESTORENAM}|awk '/DATAFILE/ {
print $0
}'|tr -d ' '|
while read file_b
do
   read -p file_a
   echo $file_b | $file_a
done /tmp/dataf.$$

prev_used=none;
typeset -i initial_cntr=0;
rm -rf /tmp/spaceiss.$$ /tmp/reprocesses.$$ /tmp/availspace.$$
for dbfilerec in `cat  /tmp/dataf.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '
`
do
   dest_tst=`echo $dbfilerec|awk -F| '{print $5}'`
   DISK_MB=`df -k ${dest_tst} | tail -1|awk '{print
int($4/1024)}'`
   echo Available Disk space = ${DISK_MB} MB
   Fil_size=`echo $dbfilerec |awk -F| '{print int($4)}'`
   echo Filesize needed  = ${Fil_size} MB

if [ ${DISK_MB} -gt ${Fil_size} ]
FIL_NO=`echo $dbfilerec |awk -F| '{print int($2)}'`
   TARGET_DIR=`echo
$dest_tst/$DEST_ORA_SID|tr -d ' '`
   mkdir -p  ${TARGET_DIR}
   if [ $? != 0 ]
   then
   SendNotification For Database
${ORACLE_SID} RMAN backup $RESTOREPRCSLOGDIR Could not be created for
backup
   fi
   strip_dir=`echo $dbfilerec |awk -F|
'{print $3}'`
   TARGET_FILE=`basename $strip_dir|tr -d ' '`
   perform_actual_restore;
   prev_used=`echo $dest_tst`

   fi
if [ ${DISK_MB} -le ${Fil_size} ]
then
   echo $dbfilerec|awk -F| '{print $5}'

/tmp/spaceiss.$$

   echo $dbfilerec|awk -F|  '/DATAFILE/ {OFS
= |;$5=; print}'   /tmp/reprocesses.$$
fi
done

if [ -s /tmp/reprocesses.$$ ]
then
   diff /tmp/availdest.$$ /tmp/spaceiss.$$|awk -F '{print $2}'|awk
NF|tr -d ' '/tmp/availspace.$$
fi
if [ -s /tmp/availspace.$$ ]
then



but one thing I noticed  was that
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Korn shell script Question

2007-02-02 Thread Dak Ghatikachalam

On 1/31/07, kris [EMAIL PROTECTED] wrote:


On Wed, Jan 31, 2007 at 02:27:24PM -0500, Dak Ghatikachalam wrote:
Thanks a lot , I test ran it. This is great

No problem. I should add that if this is to be part of a long running
script, you should close the co-process (the while-loop running cat),
with something like:

exec 5p
exec 5-
___



Kris, Thanks  again

I got that right after more digging in man ksh and baby trying for a long
night.

My code worked well after putting like  you said, which I did not understand
initially, but now it is clear.

the code turned out something like


{ while cat /tmp/availspace.$$; do false; done } |
exec 5p
cat  /tmp/reprocesses.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '|
while read file_b
do
   read -u5 file_a
   echo $file_b $file_a
done /tmp/reprocessrecset.$$

exec 5-

this what you meant ?


Thanks
Dak
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Korn shell script Question

2007-02-02 Thread Kris Maglione

On Fri, Feb 02, 2007 at 11:10:02AM -0500, Dak Ghatikachalam wrote:

{ while cat /tmp/availspace.$$; do false; done } |
exec 5p
cat  /tmp/reprocesses.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '|
while read file_b
do
   read -u5 file_a
   echo $file_b $file_a
done /tmp/reprocessrecset.$$

exec 5-

this what you meant ?


It doesn't matter where you put the redirects, so long as they're in 
order and you wind up closing the coprocess's standard output so that it 
exits. It's more a matter of style and taste than anything. Here are 
some more options if you're interested:


As long as you haven't started any other background jobs, this would 
work in place of the final 'exec 5-':

kill -INT %+

Or, after you start the coprocess, you can store its PID, and kill that 
later:

copid=$!
...
kill -INT $copid

Again, it's a matter of style and taste. If it's not to be part of a 
long running script, though, don't even worry about it.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Korn shell script Question

2007-02-02 Thread Dak Ghatikachalam

On 2/2/07, Kris Maglione [EMAIL PROTECTED] wrote:


On Fri, Feb 02, 2007 at 11:10:02AM -0500, Dak Ghatikachalam wrote:
{ while cat /tmp/availspace.$$; do false; done } |
exec 5p
cat  /tmp/reprocesses.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '|
while read file_b
do
read -u5 file_a
echo $file_b $file_a
done /tmp/reprocessrecset.$$

exec 5-

this what you meant ?

It doesn't matter where you put the redirects, so long as they're in
order and you wind up closing the coprocess's standard output so that it
exits. It's more a matter of style and taste than anything. Here are
some more options if you're interested:

As long as you haven't started any other background jobs, this would
work in place of the final 'exec 5-':
kill -INT %+

Or, after you start the coprocess, you can store its PID, and kill that
later:
copid=$!
...
kill -INT $copid

Again, it's a matter of style and taste. If it's not to be part of a
long running script, though, don't even worry about it.



Kris,

That is great , Thanks  a lot for your  input and insight.

It just amazes me how powerful a korn shell script in general  any Unix
shell, process handling  can be.

Thanks
Dak
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Korn shell script Question

2007-01-31 Thread Dak Ghatikachalam

Dear Freebsd'ers


I have a an issue  to address.

in Korn Shell

I have  file_1 containing

1
2
3
4


and I have another file_2 containing

A
B
C
D
E
F
G
H
I

I have use these file_1 and file_2 and generate a file file_3 containing.

A 1
B 2
C 3
D 4
E 1
F 2
G 3
H 4
I  1


I tried with  several looping for some reason I dont seem to get in right in
Korn shell

Any ideas on Ksh would be great, You can use any standard unix utilities to
achieve this.


Thanks
DAk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Korn shell script Question

2007-01-31 Thread Kris Maglione

On Wed, Jan 31, 2007 at 01:43:28PM -0500, Dak Ghatikachalam wrote:

I tried with  several looping for some reason I dont seem to get in right in
Korn shell

Any ideas on Ksh would be great, You can use any standard unix utilities to
achieve this.


Something to this effect should suffice, though I'm not convinced 
there's not a simpler way.


#!/usr/local/bin/ksh

{ while cat file1.txt; do false; done } |

cat file2.txt |
while read file_b
do
   read -p file_a
   echo $file_b $file_a
done file3.txt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Korn shell script Question

2007-01-31 Thread Dak Ghatikachalam

On 1/31/07, Kris Maglione [EMAIL PROTECTED] wrote:


On Wed, Jan 31, 2007 at 01:43:28PM -0500, Dak Ghatikachalam wrote:
I tried with  several looping for some reason I dont seem to get in right
in
Korn shell

Any ideas on Ksh would be great, You can use any standard unix utilities
to
achieve this.

Something to this effect should suffice, though I'm not convinced
there's not a simpler way.

#!/usr/local/bin/ksh

{ while cat file1.txt; do false; done } |

cat file2.txt |
while read file_b
do
read -p file_a
echo $file_b $file_a
done file3.txt
___



Hi Kris

Thanks a lot , I test ran it. This is great

Thanks
Dak
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Korn shell script Question

2007-01-31 Thread kris

On Wed, Jan 31, 2007 at 02:27:24PM -0500, Dak Ghatikachalam wrote:

Thanks a lot , I test ran it. This is great


No problem. I should add that if this is to be part of a long running 
script, you should close the co-process (the while-loop running cat), 
with something like:


exec 5p
exec 5-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Another FBSD utility/script question

2006-11-15 Thread Jack Stone

Here I come with another easy one for most on the list -- except for me.

I have 12,000 plus lines that have an empty line in between each real line, 
like so:


this is a line of info 1
(empty)
this is a line of info 2

this is a line of info 3

etc, etc

To eliminate each empty line in between the info lines would take a 
long, long time.
Thus my question: what tool is available or syntax to remove the 6000 empty 
lines so there's no space in between?


This has got to be an easy one, except when one doesn't know the answer.

Thanks,

Jack of all trades, master of only some!

_
Stay in touch with old friends and meet new ones with Windows Live Spaces 
http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Another FBSD utility/script question

2006-11-15 Thread Vince
Hmm
sed -e /^$/d FILENAME  newfilename
will do the job if they are empty lines.


Vince


Jack Stone wrote:
 Here I come with another easy one for most on the list -- except for me.
 
 I have 12,000 plus lines that have an empty line in between each real
 line, like so:
 
 this is a line of info 1
 (empty)
 this is a line of info 2
 
 this is a line of info 3
 
 etc, etc
 
 To eliminate each empty line in between the info lines would take a
 long, long time.
 Thus my question: what tool is available or syntax to remove the 6000
 empty lines so there's no space in between?
 
 This has got to be an easy one, except when one doesn't know the answer.
 
 Thanks,
 
 Jack of all trades, master of only some!
 
 _
 Stay in touch with old friends and meet new ones with Windows Live
 Spaces
 http://clk.atdmt.com/MSN/go/msnnkwsp007001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Another FBSD utility/script question

2006-11-15 Thread N.J. Mann
On Wed 15 Nov 09:17, Jack Stone wrote:
 Here I come with another easy one for most on the list -- except for me.
 
 I have 12,000 plus lines that have an empty line in between each real line, 
 like so:
[...]

grep -v '^$'


Cheers,
   Nick.
-- 
With sufficient thrust, pigs fly just fine.  However, this is not
necessarily a good idea.  It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly overhead.
 -- RFC 1925
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


gnome_upgrade script question

2005-11-14 Thread dick hoogendijk
I have a spare 6.0 computer on which I ran the gnome_upgrade script.
My g** .. 47 ports were deleted amongst which are very big ones like
mozilla and all of KDE. This will take me a very long time to rebuild.
And this only because glib2 is changed?

I don't like this at all. It's a brandnew 6.0 system..
Is it really neccessary to rebuild all of KDE??

If I don't want this which ports do I have to set on hold in
pkgtools.conf to run a normal portupgrade once in a while without
getting into trouble?

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 6.0
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: gnome_upgrade script question

2005-11-14 Thread Kent Stewart
On Monday 14 November 2005 12:20 pm, dick hoogendijk wrote:
 I have a spare 6.0 computer on which I ran the gnome_upgrade script.
 My g** .. 47 ports were deleted amongst which are very big ones like
 mozilla and all of KDE. This will take me a very long time to
 rebuild. And this only because glib2 is changed?

 I don't like this at all. It's a brandnew 6.0 system..
 Is it really neccessary to rebuild all of KDE??

 If I don't want this which ports do I have to set on hold in
 pkgtools.conf to run a normal portupgrade once in a while without
 getting into trouble?

You needed to use the -p option which would get packages if it can. If 
you upgrade early, you need a cpu with considerable power. The problem 
is being patient long enough :).

I have an AMD 2400+ XP and it had to build the gnome stuff and the new 
release of kde-3.4.3. It took a while :). However, I had packages on 
it, that I could move to my other 5.4 computers, long before they had 
packages on Marcus' tinderbox, which is where the gnome_upgrade.sh 
script, which came along about 10 Novermber, gets the gnome packages.

Kent

-- 
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Shell script question

2005-08-04 Thread Paul Schmehl
I'm working on a shell script to use p0f to identify unauthorized hosts 
on our network.


In the script I use an echo command to see what the output of the command 
is.  This is what it looks like:
/usr/local/bin/p0f -i xl0 -N -l -o /root/capture.1123177152.log 'src net 
10.0.0.0/8 or src net 129.110.0.0/16'


If I paste the output of the echo command to the cli and hit enter, p0f 
runs and writes to the log.  Yet when I actually try to run that same 
command from the script, p0f complains:


pcap_compile: illegal token: '
See man tcpdump or p0f README for help on bpf filter expressions.

Here's the script.  It's very simple right now, but there's a lot more work 
to be done.  I first have to figure out this problem, though:


#!/bin/sh

P0F=/usr/local/bin/p0f
EPOCH_DATE=`date -j -f %a %b %d %T %Z %Y \`date\` +%s`
LOG=/root/capture.${EPOCH_DATE}.log
NIC=-i xl0
ARGS=-N -l -o ${LOG}
DAEMON=-d
FILTER='src net 10.0.0.0/8 or src net 129.110.0.0/16'

echo ${P0F} ${NIC} ${ARGS} ${DAEMON} ${FILTER}
${P0F} ${NIC} ${ARGS} ${FILTER}

Why is p0f complaining about the bpf filter?  I've tried escaping the 
single quotes, but that generates a different error.  I don't understand 
why the identical command works on the cli, but not in the script.


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script question

2005-08-04 Thread Paul Schmehl
--On Thursday, August 04, 2005 12:46:20 -0500 Paul Schmehl 
[EMAIL PROTECTED] wrote:



I'm working on a shell script to use p0f to identify unauthorized hosts
on our network.

In the script I use an echo command to see what the output of the command
is.  This is what it looks like:
/usr/local/bin/p0f -i xl0 -N -l -o /root/capture.1123177152.log 'src net
10.0.0.0/8 or src net 129.110.0.0/16'

If I paste the output of the echo command to the cli and hit enter, p0f
runs and writes to the log.  Yet when I actually try to run that same
command from the script, p0f complains:

pcap_compile: illegal token: '
See man tcpdump or p0f README for help on bpf filter expressions.

Here's the script.  It's very simple right now, but there's a lot more
work to be done.  I first have to figure out this problem, though:

# !/bin/sh

P0F=/usr/local/bin/p0f
EPOCH_DATE=`date -j -f %a %b %d %T %Z %Y \`date\` +%s`
LOG=/root/capture.${EPOCH_DATE}.log
NIC=-i xl0
ARGS=-N -l -o ${LOG}
DAEMON=-d
FILTER='src net 10.0.0.0/8 or src net 129.110.0.0/16'

echo ${P0F} ${NIC} ${ARGS} ${DAEMON} ${FILTER}
${P0F} ${NIC} ${ARGS} ${FILTER}

Why is p0f complaining about the bpf filter?  I've tried escaping the
single quotes, but that generates a different error.  I don't understand
why the identical command works on the cli, but not in the script.

For the record, `eval ${P0F} ${NIC} ${ARGS} ${DAEMON} ${FILTER}` solved the 
problem.


Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Shell script question

2005-02-17 Thread Digish Reshamwala
Hi,
I am trying to run one of my installation shell script using the 
command-

bash resetapp.sh
 it gives me the error as-
'bash: not found'
How do I install bash?  I am using FreeBSD/i3b6 5.2.1
Also, whats the command to check which version of FreeBSD I am using?
Please help me out,
Thanks a lot,
macuser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script question

2005-02-17 Thread JarJarBings
Hi,
simply go to /usr/ports/shells/bash2 and type make install
uname -a will give you the version infos needed.
regards
Digish Reshamwala wrote:
Hi,
I am trying to run one of my installation shell script using the command-
bash resetapp.sh
 it gives me the error as-
'bash: not found'
How do I install bash?  I am using FreeBSD/i3b6 5.2.1
Also, whats the command to check which version of FreeBSD I am using?
Please help me out,
Thanks a lot,
macuser
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script question

2005-02-17 Thread Tim Erlin
Digish Reshamwala wrote:
Hi,
Hi.
How do I install bash?  I am using FreeBSD/i3b6 5.2.1
There are several ways to install software. The handbook deals with them 
quite extensively: 
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

'man pkg_add' might also be of help.
If your script doesn't require bash, you could just use /bin/sh instead.
Also, whats the command to check which version of FreeBSD I am using?
'uname -a' works well for this.
--Tim Erlin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script question

2005-02-17 Thread Doug Poland
On Thu, Feb 17, 2005 at 01:13:49PM -0800, Digish Reshamwala wrote:
 Hi,
 
 I am trying to run one of my installation shell script using the 
 command-
 
 bash resetapp.sh
 
  it gives me the error as-
 'bash: not found'
 
 How do I install bash?  I am using FreeBSD/i3b6 5.2.1
 
pkg_add -r bash
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html

 Also, whats the command to check which version of FreeBSD I am using?
 
uname -a

Good luck...

-- 
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script question

2005-02-17 Thread Eric F Crist
On Feb 17, 2005, at 3:13 PM, Digish Reshamwala wrote:
Hi,
I am trying to run one of my installation shell script using the 
command-

bash resetapp.sh
 it gives me the error as-
'bash: not found'
How do I install bash?  I am using FreeBSD/i3b6 5.2.1
Also, whats the command to check which version of FreeBSD I am using?
Please help me out,
Thanks a lot,
macuser
Generally, shell scripts use sh, not bash.
uname -a will give you a full output of system/kernel version.
To install bash, type the following command as root:
# cd /usr/ports/shells/bash  make install clean
HTH
___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson


PGP.sig
Description: This is a digitally signed message part


Re: Shell script question

2005-02-17 Thread Michael C. Shultz
On Thursday 17 February 2005 01:13 pm, Digish Reshamwala wrote:
 Hi,

 I am trying to run one of my installation shell script using the
 command-

 bash resetapp.sh

  it gives me the error as-
 'bash: not found'

 How do I install bash?  I am using FreeBSD/i3b6 5.2.1

Bash is in ports, try
/usr/ports/shells/bash*


 Also, whats the command to check which version of FreeBSD I am using?

uname -a

 Please help me out,

 Thanks a lot,
 macuser

-Mike
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-26 Thread Gary Kline
On Sat, Jan 10, 2004 at 11:02:18PM +, Matthew Seaman wrote:
 On Sat, Jan 10, 2004 at 11:39:07PM +0100, Björn Andersson wrote:
  On Sat, Jan 10, 2004 at 10:33:08PM +, Matthew Seaman wrote:
   On Sat, Jan 10, 2004 at 02:10:36PM -0800, Gary Kline wrote:
 
Folks,
 
Let's see if perl can do this one; it's as obscure a task
as I've run into.  I have scores of files with:
 
A regular sentence, or phrase. then_one_containing_underscores_-
between_each_word  Followed by another regular, space-delimited
sentence.  Followed_by_another_string_with_underscaores.
 
Is there a perl way to get rid of the
string_containing_underscores and leave the regular sntences??
 
   perl -pi.bak -e 's/\s+\w+_\w+\.?//;' filename
 
  If this occures more than once on a line we should have the line as this:
perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename
 
 Good point.  Also, if the stuff_separated_by_underscores wraps around
 onto more than one line, then there may not be any leading whitespace:
 
 perl -pi.bak -e 's/\s*\w+_\w+\.?//g;' filename
 

The lines do indeed wrap so this does the job on a test file.
I do have the re-exp book but this one is far ovr my head.
What do the \s* mean, and also thr \.?/ ?

Man, I'd never have gotten this one; at least not in *one*
lines:-)  Wow.  

thanks to everyone,

gary


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Script question...

2004-01-12 Thread Xpression
Hi list, I've making a script to write the content of three text files to
one file, but I want to separate each files by a delimiter like the name of
the file.

This is the script:

#! /bin/sh
path=/some/dir
if !([ -f $path/this.one ]); then
for file in $path/file1 $path/file2 $path/file3; do
 cat $file  $path/this.one
done
fi

exit 0

By now the output is:

 Contents of file1
 Contents of file2
 Contents of file3

And I want to be like this:
---
  file1
---
 Contents of file1
---
 file2
---
 Contents of file2
---
  file3
---
 Contents of file3

any suggestion ??? Thanks...

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Script question...

2004-01-12 Thread Julien Gabel
 Hi list, I've making a script to write the content of three text files
 to one file, but I want to separate each files by a delimiter like the
 name of the file.

Maybe this little sh(1) script can do the job:

# = begin.script =
#! /bin/sh

path=~/tmp
files=file1 file2 file3
output_file=this.one

cd ${path}  [ ! -f ${output_file} ]  \
for file in ${files}
do
  echo   ${output_file}
  echo ${file}  ${final_file}
  echo   ${output_file}
  cat ${file}  ${final_file}
done
echo   ${output_file}
exit 0
# = end.script =

--
-jpeg.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Script question...

2004-01-12 Thread Andrew L. Gould
On Monday 12 January 2004 05:04 pm, Xpression wrote:
 Hi list, I've making a script to write the content of three text files to
 one file, but I want to separate each files by a delimiter like the name of
 the file.

 This is the script:

 #! /bin/sh
 path=/some/dir
 if !([ -f $path/this.one ]); then
 for file in $path/file1 $path/file2 $path/file3; do
  cat $file  $path/this.one
 done
 fi

 exit 0

 By now the output is:

  Contents of file1
  Contents of file2
  Contents of file3

 And I want to be like this:
 ---
   file1
 ---
  Contents of file1
 ---
  file2
 ---
  Contents of file2
 ---
   file3
 ---
  Contents of file3

 any suggestion ??? Thanks...

I haven't tested it; but would this work:

 #! /bin/sh
 path=/some/dir
 if !([ -f $path/this.one ]); then
 for file in $path/file1 $path/file2 $path/file3; do
  echo '-'  $path/this.one
  echo $file  $path/this.one
  cat $file  $path/this.one
 done
 fi
 exit 0


Andrew Gould


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Script question...

2004-01-12 Thread Charles Swiger
On Jan 12, 2004, at 6:04 PM, Xpression wrote:
[ ...a question on how to change a shell script... ]
Try:

#! /bin/sh
path=/some/dir
if !([ -f $path/this.one ]); then
touch $path/this.one
for file in $path/file1 $path/file2 $path/file3; do
   echo -  
$path/this.one
   echo$file  $path/this.one
   echo -  
$path/this.one
   cat $file  $path/this.one
done
fi

Also note that using a local variable named $path is not a good idea, 
since $PATH is highly important.  :-)  $path and $PATH are seperate in 
/bin/sh, but many other shells automangle the colon-seperated $PATH 
into the word-list format used by $path, and vice-versa.

--
-Chuck
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-11 Thread Bernard El-Hagin
Matthew Seaman wrote:
 On Sat, Jan 10, 2004 at 06:26:30PM -0500, Marty Landman wrote:
  At 06:02 PM 1/10/2004, Matthew Seaman wrote:
  On Sat, Jan 10, 2004 at 11:39:07PM +0100, Bj?rn Andersson wrote:
  
   If this occures more than once on a line we should have the line as this:
 perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename
  
  Good point.  Also, if the stuff_separated_by_underscores wraps around
  onto more than one line, then there may not be any leading whitespace:
  
  I don't see why the translate sol'tn that Gary Kline gave first isn't 
  adequate.
 
 Err --- Gary Kline was the OP asking how to do this: I think you mean 
 Bernard El-Hagin's solution?
 
 % perl -i.bak -pe 'tr/_/ /' files
 
 That doesn't do the right thing.  It turns:
 
 This is a sample ordinary sentence.  This_is_joined_up_with_underscores.
 
 into:
 
 This is a sample ordinary sentence.  This is joined up with underscores.
 
 but the requirement is to produce:
 
 This is a sample ordinary sentence.


Yes, I completely misread the question. Sorry.

-- 
Cheers,
Bernard
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-11 Thread Matthew Seaman
On Sat, Jan 10, 2004 at 05:34:34PM -0800, Gary Kline wrote:
 On Sat, Jan 10, 2004 at 11:02:18PM +, Matthew Seaman wrote:

  perl -pi.bak -e 's/\s*\w+_\w+\.?//g;' filename

   The lines do indeed wrap so this does the job on a test file.
   I do have the re-exp book but this one is far ovr my head.
   What do the \s* mean, and also thr \.?/ ?

OK.  Time to disect a regular expression.  Let's just isolate the RE
bits from the surrounding stuff:

\s*\w+_\w+\.?

There are 5 parts to this:

   1 \s*
   2\w+
   3   _
   4\w+
   5   \.?

1) \s* -- '\s' is a metacharacter for matching whitespace: it's equivalent
   to saying [ \t\n\r\f].  The '*' operator says any number of these,
   including zero.

2) \w+ -- '\w' is a metacharacter for matching 'word' characters.
   What it means is locale dependent, but if you're using the ASCII
   locale it corresponds to [a-zA-Z_0-9].  The '+' operator means one
   or more or these.  Note that while \w+ matches character sequences
   containing _, it will also match words that don't: hence

3) _ -- match a literal '_' character.  ie. this forces the matched
   text to contain at least one underscore.

4) \w+ -- as (2) matches the rest of the stuff_separated_by_underscores
   after the underscore we've forced a match to[1].

5) \.? -- \. matches a literal '.' It has to be escaped (with a \)
   because plain '.' on it's own is the used as the wildcard to match
   any character.  The '?' operator means optional, or more precisely,
   either zero or one of those.

Now, the whole command:

   perl -pi.bak -e 's/${re}//g;' filename

scans through the file line_by_line, matching strings_connected_with
underscores on each line.  Björn Andersson noticed that you would need
the 'g' option to the s/// substitution command which means repeat
this substitution more than once, if necessary.  Like in the first
line_of_this_paragraph.

Then I realised that there were situations, like the last line of the
previous paragraph, where there wouldn't be any leading whitespace to
match.

Of course, this all depends on the sequences of words_connected_with_
underscores not wrapping around onto more than one line, as in this
contrived example, where the word 'underscores' on the second line of
this paragraph wouldn't be deleted.  There are several other edge
cases like that, if word-wrap is permitted. But it was never specified
if that was the case or not and I've assumed not because coping with
that sort of thing is a bit trickier.

Cheers,

Matthew

[1] In fact, due to the way regular expressions work, the literal
underscore (3) will actually match at the last underscore out of all
the stuff we're matching, and the stuff matched by chunk (4) won't
contain any underscores.

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: perl script question.

2004-01-11 Thread Gary Kline
On Sun, Jan 11, 2004 at 11:52:37AM +, Matthew Seaman wrote:
 On Sat, Jan 10, 2004 at 05:34:34PM -0800, Gary Kline wrote:
  On Sat, Jan 10, 2004 at 11:02:18PM +, Matthew Seaman wrote:
 
   perl -pi.bak -e 's/\s*\w+_\w+\.?//g;' filename
 
  The lines do indeed wrap so this does the job on a test file.
  I do have the re-exp book but this one is far ovr my head.
  What do the \s* mean, and also thr \.?/ ?
 

Thanks for your tutorial.  Time to re-read Jeff Friedl's
book.  I'd forgotten some of perl's regex rules--specifically,
's' and 'w'; was headsratching what symbolized whitespace.
Also did not realize the \w+_ would match one-or-more
underscores.  To me, this is the genius of the expression.

I have a 994 perl script called reflow that does an 
outstanding job of formatting std ASCII|8859-N text. 
I filter any essay thru a program, joinlines, and reflow
before handing it off to OpenOffice.  What reflow doesn't
do is to put two spaces between sentences.  That's on 
my to-hack list:)

have a good one,

gary


-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


perl script question.

2004-01-10 Thread Gary Kline

Folks,

Let's see if perl can do this one; it's as obscure a task
as I've run into.  I have scores of files with:

A regular sentence, or phrase. then_one_containing_underscores_-
between_each_word  Followed by another regular, space-delimited
sentence.  Followed_by_another_string_with_underscaores.

Is there a perl way to get rid of the
string_containing_underscores and leave the regular sntences??

Any thoughts very welcome!!

thanks muchly,

gary

-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-10 Thread Bernard El-Hagin
Gary Kline wrote:
 
   Folks,
 
   Let's see if perl can do this one; it's as obscure a task
   as I've run into.  I have scores of files with:
 
   A regular sentence, or phrase. then_one_containing_underscores_-
   between_each_word  Followed by another regular, space-delimited
   sentence.  Followed_by_another_string_with_underscaores.
 
   Is there a perl way to get rid of the
   string_containing_underscores and leave the regular sntences??
 
   Any thoughts very welcome!!


Perhaps this will be enough:


% perl -i.bak -pe 'tr/_/ /' files


-- 
Cheers,
Bernard
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-10 Thread Matthew Seaman
On Sat, Jan 10, 2004 at 02:10:36PM -0800, Gary Kline wrote:
 
   Folks,
 
   Let's see if perl can do this one; it's as obscure a task
   as I've run into.  I have scores of files with:
 
   A regular sentence, or phrase. then_one_containing_underscores_-
   between_each_word  Followed by another regular, space-delimited
   sentence.  Followed_by_another_string_with_underscaores.
 
   Is there a perl way to get rid of the
   string_containing_underscores and leave the regular sntences??
 

perl -pi.bak -e 's/\s+\w+_\w+\.?//;' filename

Cheers,

Matthew 

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: perl script question.

2004-01-10 Thread Björn Andersson
If this occures more than once on a line we should have the line as this:
  perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename

Notice the added g. :-)

On Sat, Jan 10, 2004 at 10:33:08PM +, Matthew Seaman wrote:
 On Sat, Jan 10, 2004 at 02:10:36PM -0800, Gary Kline wrote:
  
  Folks,
  
  Let's see if perl can do this one; it's as obscure a task
  as I've run into.  I have scores of files with:
  
  A regular sentence, or phrase. then_one_containing_underscores_-
  between_each_word  Followed by another regular, space-delimited
  sentence.  Followed_by_another_string_with_underscaores.
  
  Is there a perl way to get rid of the
  string_containing_underscores and leave the regular sntences??
  
 
 perl -pi.bak -e 's/\s+\w+_\w+\.?//;' filename
 
   Cheers,
 
   Matthew 
 
 -- 
 Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
   Savill Way
 PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
 Tel: +44 1628 476614  Bucks., SL7 1TH UK


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-10 Thread Matthew Seaman
On Sat, Jan 10, 2004 at 11:39:07PM +0100, Björn Andersson wrote:
 On Sat, Jan 10, 2004 at 10:33:08PM +, Matthew Seaman wrote:
  On Sat, Jan 10, 2004 at 02:10:36PM -0800, Gary Kline wrote:

 Folks,

 Let's see if perl can do this one; it's as obscure a task
 as I've run into.  I have scores of files with:

 A regular sentence, or phrase. then_one_containing_underscores_-
 between_each_word  Followed by another regular, space-delimited
 sentence.  Followed_by_another_string_with_underscaores.

 Is there a perl way to get rid of the
 string_containing_underscores and leave the regular sntences??

  perl -pi.bak -e 's/\s+\w+_\w+\.?//;' filename

 If this occures more than once on a line we should have the line as this:
   perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename

Good point.  Also, if the stuff_separated_by_underscores wraps around
onto more than one line, then there may not be any leading whitespace:

perl -pi.bak -e 's/\s*\w+_\w+\.?//g;' filename

cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: perl script question.

2004-01-10 Thread Marty Landman
At 06:02 PM 1/10/2004, Matthew Seaman wrote:
On Sat, Jan 10, 2004 at 11:39:07PM +0100, Björn Andersson wrote:

 If this occures more than once on a line we should have the line as this:
   perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename
Good point.  Also, if the stuff_separated_by_underscores wraps around
onto more than one line, then there may not be any leading whitespace:
I don't see why the translate sol'tn that Gary Kline gave first isn't adequate.

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-10 Thread Matthew Seaman
On Sat, Jan 10, 2004 at 06:26:30PM -0500, Marty Landman wrote:
 At 06:02 PM 1/10/2004, Matthew Seaman wrote:
 On Sat, Jan 10, 2004 at 11:39:07PM +0100, Björn Andersson wrote:
 
  If this occures more than once on a line we should have the line as this:
perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename
 
 Good point.  Also, if the stuff_separated_by_underscores wraps around
 onto more than one line, then there may not be any leading whitespace:
 
 I don't see why the translate sol'tn that Gary Kline gave first isn't 
 adequate.

Err --- Gary Kline was the OP asking how to do this: I think you mean 
Bernard El-Hagin's solution?

% perl -i.bak -pe 'tr/_/ /' files

That doesn't do the right thing.  It turns:

This is a sample ordinary sentence.  This_is_joined_up_with_underscores.

into:

This is a sample ordinary sentence.  This is joined up with underscores.

but the requirement is to produce:

This is a sample ordinary sentence.

Cheers,

Matthew 


-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: perl script question.

2004-01-10 Thread Marty Landman
At 06:36 PM 1/10/2004, Matthew Seaman wrote:

Err --- Gary Kline was the OP asking how to do this: I think you mean
Bernard El-Hagin's solution?
% perl -i.bak -pe 'tr/_/ /' files

That doesn't do the right thing.
Woops, not only can't I read the question right, can't read the poster's 
name right either. Maybe it really is time to start thinking about reading 
glasses.

Marty Landman   Face 2 Interface Inc 845-679-9387
Sign On Required: Web membership software for your site
Make a Website: http://face2interface.com/Home/Demo.shtml
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: perl script question.

2004-01-10 Thread Gary Kline
On Sat, Jan 10, 2004 at 11:36:45PM +, Matthew Seaman wrote:
 On Sat, Jan 10, 2004 at 06:26:30PM -0500, Marty Landman wrote:
  At 06:02 PM 1/10/2004, Matthew Seaman wrote:
  On Sat, Jan 10, 2004 at 11:39:07PM +0100, Björn Andersson wrote:
  
   If this occures more than once on a line we should have the line as this:
 perl -pi.bak -e 's/\s+\w+_\w+\.?//g;' filename
  
  Good point.  Also, if the stuff_separated_by_underscores wraps around
  onto more than one line, then there may not be any leading whitespace:
  
  I don't see why the translate sol'tn that Gary Kline gave first isn't 
  adequate.
 
 Err --- Gary Kline was the OP asking how to do this: I think you mean 
 Bernard El-Hagin's solution?
 
 % perl -i.bak -pe 'tr/_/ /' files
 
 That doesn't do the right thing.  It turns:
 
 This is a sample ordinary sentence.  This_is_joined_up_with_underscores.
 
 into:
 
 This is a sample ordinary sentence.  This is joined up with underscores.
 
 but the requirement is to produce:
 
 This is a sample ordinary sentence.
 

Exactly so.  I could easily tr '_' to ' ', but not delete //g
and entire string that contained undrscores.  BTW, this 
kind of technique would be useful in filtering 
^ Subject: lines like get.a.bigger.bustline or other such
garbage.  --But then the people who hack the antispam 
programs are do doubt expert at this... .

gary




-- 
   Gary Kline [EMAIL PROTECTED]   www.thought.org Public service Unix

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cvsup script question

2003-08-25 Thread Marco Gonçalves
Hi, i did some minor alterations to the script by

#!/usr/local/bin/bash

/usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for errors
/usr/local/sbin/portsdb -Uu  /dev/null # Hopefully, show only errors
/usr/local/sbin/pkgdb -aF
/bin/echo
/bin/echo Updated ports:
/usr/local/sbin/portversion | grep   # Show only changed ports

but strangly, at least for me, is that the 2nd line the output is not being redirected 
to /dev/null and if i execute this script i still get lots of output...
  - Original Message - 
  From: Lowell Gilbert 
  To: Charles Howse 
  Cc: [EMAIL PROTECTED] 
  Sent: Friday, August 22, 2003 4:24 PM
  Subject: Re: Cvsup script question


  Charles Howse [EMAIL PROTECTED] writes:

   Hi,
   I'm cvsup'ing from a script in /usr/local/etc/periodic/daily.
   Here 'tis:
   
   #!/usr/local/bin/bash
   Echo
   Echo Output of cvsup:
   /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile
   Echo
   Echo Output of portsdb:
   /usr/local/sbin/portsdb -Uu
   Echo
   Echo Output of portversion:
   /usr/local/sbin/portversion
   
   It works, but (1) produces a ton of output, (2) I'm seeing a lot of
   lines in the output of portsdb that say, (some port) non-existent,
   dependency list incomplete.
   
   Are those lines in the output of portsdb coming from STDOUT or STDERR,
   or are they completely normal?
   
   How about we alter the script as follows to keep the output down a
   little?#!/usr/local/bin/bash
   /usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for
   errors
   /usr/local/sbin/portsdb -Uu  /dev/null # Hopefully, show only
   errors
   Echo
   Echo Updated ports:
   /usr/local/sbin/portversion | grep   # Show only changed ports
   
   
   
   Will these changes break anything?

  No.  If in doubt, redirect to files instead of to /dev/null.
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cvsup script question

2003-08-25 Thread Joshua Oreman
On Mon, Aug 25, 2003 at 03:32:25PM +0100 or thereabouts, Marco Gon?alves wrote:
 Hi, i did some minor alterations to the script by
 
 #!/usr/local/bin/bash
 
 /usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for errors
 /usr/local/sbin/portsdb -Uu  /dev/null # Hopefully, show only errors
 /usr/local/sbin/pkgdb -aF
 /bin/echo
 /bin/echo Updated ports:
 /usr/local/sbin/portversion | grep   # Show only changed ports
 
 but strangly, at least for me, is that the 2nd line the output is
 not being redirected to /dev/null and if i execute this script i
 still get lots of output...

I bet portsdb is putting its progress messages on standard output. (Programs
seem to do that a lot, since stderr is unbuffered). Try:
/usr/local/sbin/portsdb -Uu /dev/null 21 || { echo FAILED to run portsdb; exit 1 }

That will not give you the error output, but if there's an error it will say so and 
exit.
(You can run portsdb manually and see!)

-- Josh
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cvsup script question

2003-08-22 Thread Lowell Gilbert
Charles Howse [EMAIL PROTECTED] writes:

 Hi,
 I'm cvsup'ing from a script in /usr/local/etc/periodic/daily.
 Here 'tis:
 
 #!/usr/local/bin/bash
 Echo
 Echo Output of cvsup:
 /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile
 Echo
 Echo Output of portsdb:
 /usr/local/sbin/portsdb -Uu
 Echo
 Echo Output of portversion:
 /usr/local/sbin/portversion
 
 It works, but (1) produces a ton of output, (2) I'm seeing a lot of
 lines in the output of portsdb that say, (some port) non-existent,
 dependency list incomplete.
 
 Are those lines in the output of portsdb coming from STDOUT or STDERR,
 or are they completely normal?
 
 How about we alter the script as follows to keep the output down a
 little?
 
 #!/usr/local/bin/bash
 /usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for
 errors
 /usr/local/sbin/portsdb -Uu  /dev/null # Hopefully, show only
 errors
 Echo
 Echo Updated ports:
 /usr/local/sbin/portversion | grep   # Show only changed ports
 
 Will these changes break anything?

No.  If in doubt, redirect to files instead of to /dev/null.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Cvsup script question

2003-08-21 Thread Charles Howse
Hi,
I'm cvsup'ing from a script in /usr/local/etc/periodic/daily.
Here 'tis:

#!/usr/local/bin/bash
Echo
Echo Output of cvsup:
/usr/local/bin/cvsup -g -L 2 /etc/cvsupfile
Echo
Echo Output of portsdb:
/usr/local/sbin/portsdb -Uu
Echo
Echo Output of portversion:
/usr/local/sbin/portversion

It works, but (1) produces a ton of output, (2) I'm seeing a lot of
lines in the output of portsdb that say, (some port) non-existent,
dependency list incomplete.

Are those lines in the output of portsdb coming from STDOUT or STDERR,
or are they completely normal?

How about we alter the script as follows to keep the output down a
little?

#!/usr/local/bin/bash
/usr/local/bin/cvsup -g -L 0 /etc/cvsupfile # Keep quiet except for
errors
/usr/local/sbin/portsdb -Uu  /dev/null # Hopefully, show only
errors
Echo
Echo Updated ports:
/usr/local/sbin/portversion | grep   # Show only changed ports

Will these changes break anything?



Thanks,
Charles


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-05 Thread Ken McGlothlen
David Banning [EMAIL PROTECTED] writes:

| I am running a php program in a browser which eventually compiles some files
| and emails them to a person of their choosing. The problem is that the system
| identifies the browser user as nobody.
| 
| I send the mail using a line something like;
| 
| cat textfile | mutt -sQuote/Attachments -afile1 -afile2 [EMAIL PROTECTED]
| 
| but the problem is that the recipient sees the sender address as from
| [EMAIL PROTECTED], when I want it seen as [EMAIL PROTECTED].  I have the
| name of the user available in the script but I see no way of running the mail
| script as that person since any browser viewing the system is nobody.

Well, mutt is moderately inappropriate for this purpose.  On the other hand,
you're also including attachments, which is another problem.

If I recall correctly, PHP has a mail command that you may want to check into.
However, a very simple way of doing it is to use sendmail.  That's what it's
designed for.  Your textfile would have to contain the headers:

From: [EMAIL PROTECTED]
Subject: Quote/Attachments

[contents of textfile]

or you could use

cat headers textfile | sendmail [EMAIL PROTECTED]

Remember, though, that there MUST BE A BLANK LINE between the headers and the
message.  Just make sure the headers file has a blank line at the end.

The MIME attachments are another deal.  For this, you might want to do

# portinstall mpack

mpack is a MIME packing program (it can also send mail, but not with a
different From address, so we'll leave that out for now).  You'd use it like
this:

/usr/local/bin/mpack -o /tmp/textfile.$$ bodytext file1 file2
/bin/cat headerfile /tmp/textfile.$$ | /usr/sbin/sendmail [EMAIL PROTECTED]
/bin/rm textfile.$$

(Note that I'm using explicit paths as a small increase in security.)

Hope that helps.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-05 Thread Giorgos Keramidas
On 2003-04-04 23:45, David Banning [EMAIL PROTECTED] wrote:

 I am running a php program in a browser which eventually compiles some
 files and emails them to a person of their choosing. The problem is
 that the system identifies the browser user as nobody.

 I send the mail using a line something like;

 cat textfile | mutt -sQuote/Attachments -afile1 -afile2 [EMAIL PROTECTED]

 but the problem is that the recipient sees the sender address as from
 [EMAIL PROTECTED], when I want it seen as [EMAIL PROTECTED].  I
 have the name of the user available in the script but I see no way of
 running the mail script as that person since any browser viewing the
 system is nobody.


Try this:

cat textfile | \
mutt -s Subject here \
 -x -e 'set envelope_from=yes' -e 'my_hdr From: [EMAIL PROTECTED]' \
 -a attachment1 -a attachment2 \
 [EMAIL PROTECTED]

The change is the addition of the two -e options and -x.

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-05 Thread David Banning
  system is nobody.
 
 
 Try this:
 
   cat textfile | \
   mutt -s Subject here \
-x -e 'set envelope_from=yes' -e 'my_hdr From: [EMAIL PROTECTED]' \
-a attachment1 -a attachment2 \
[EMAIL PROTECTED]
 
 The change is the addition of the two -e options and -x.

Nope. I tried it, but it will not change the header. I previously tried
the -F option, which specifies a different .muttrc file, in which I 
customized the header. It -did- read the .muttrc file, as it did customize
some other options I tried. No-go there either, for what reason I don't know.
There is nothing logged to maillog. I will try some of the other options 
that have been suggested now.

Thanks for the suggestion -
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-05 Thread David Banning
 Have you considered using php's mail function?  You can specify a
 sender by specifying headers.

Bill, I never even considered this even as a possibility.
Thanks for the tip.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-05 Thread Bill Moran
David Banning wrote:
I am running a php program in a browser which eventually
compiles some files and emails them to a person of their 
choosing. The problem is that the system identifies the
browser user as nobody.

I send the mail using a line something like;

cat textfile | mutt -sQuote/Attachments -afile1 -afile2 [EMAIL PROTECTED]

but the problem is that the recipient sees the sender address as
from [EMAIL PROTECTED], when I want it seen as [EMAIL PROTECTED].
I have the name of the user available in the script but I see no
way of running the mail script as that person since any browser viewing
the system is nobody.
Have you considered using php's mail function?  You can specify a
sender by specifying headers.
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sending mail with a script question

2003-04-04 Thread David Banning
I am running a php program in a browser which eventually
compiles some files and emails them to a person of their 
choosing. The problem is that the system identifies the
browser user as nobody.

I send the mail using a line something like;

cat textfile | mutt -sQuote/Attachments -afile1 -afile2 [EMAIL PROTECTED]

but the problem is that the recipient sees the sender address as
from [EMAIL PROTECTED], when I want it seen as [EMAIL PROTECTED].
I have the name of the user available in the script but I see no
way of running the mail script as that person since any browser viewing
the system is nobody.


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-04 Thread David Banning
  cat textfile | mutt -sQuote/Attachments -afile1 -afile2 [EMAIL PROTECTED]
  
  but the problem is that the recipient sees the sender address as
  from [EMAIL PROTECTED], when I want it seen as [EMAIL PROTECTED].
  I have the name of the user available in the script but I see no
  way of running the mail script as that person since any browser viewing
  the system is nobody.
 
 In the context of the MTA, does your MTA trust the user the webserver is
 running as???

I think so. If I understand you correctly, you are asking, in my case,
does sendmail successfully send out mail as user nobody?. The answer
to that, is yes. The problem with sending mail to people as nobody,
is that the person who receives the fax gets it from [EMAIL PROTECTED]
instead of [EMAIL PROTECTED] I plan on having different people
running the browser and hence, sending out emails through this system.
They all can't be [EMAIL PROTECTED].
I could maybe deal with that by setting the reply to field in 
the message, but that still leaves a weird email address of nobody
which I would rather not use, if I don't have to.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-04 Thread David Banning
 I do use Exim and all I have to tell it is:
 
 trusted_users = www
 
 It would then allow the webserver to set the correct address. I am not sure
 how Sendmail, Postfix or any other MTA does this.

Thanks for the idea. Sendmail is a bit of a nightmare to tangle
with, but I'll start looking around to see if there is a way to do 
something similar on my end.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sending mail with a script question

2003-04-04 Thread Matthew Seaman
On Sat, Apr 05, 2003 at 02:20:54AM -0500, David Banning wrote:
  I do use Exim and all I have to tell it is:
  
  trusted_users = www
  
  It would then allow the webserver to set the correct address. I am not sure
  how Sendmail, Postfix or any other MTA does this.
 
 Thanks for the idea. Sendmail is a bit of a nightmare to tangle
 with, but I'll start looking around to see if there is a way to do 
 something similar on my end.

In sendmail, class 't' lists the users trusted to reset the envelope
address. Configure this by adding the usernames one per line to
/etc/mail/trusted-users and adding:

FEATURE(`use_ct_file')dnl

into your submit.mc (then 'make' and 'make install' and 'make restart'
as usual).  It's the sendmail sm_msp process that needs this
modification, rather than the sm_mta process.  See the section
MESSAGE SUBMISSION PROGRAM in /usr/share/sendmail/cf/README.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature