sed help

2009-06-17 Thread chloe K
Hi 
 
 
I have a file. list.txt (two columns)
 
column1    column2
name    address
 
 
I need to put in the letter file letter.txt eg:
 
Dear: Chloe
Address: CA
 
Can I use this 
 
for i `cat list.txt` | sed 's/Chloe/$i.1; /CA/$i.2/g' $i.letter.txt
 
Thank you for your help



  __
The new Internet Explorer® 8 - Faster, safer, easier.  Optimized for Yahoo!  
Get it Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/
___
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


hundred files to tar and untar

2008-11-10 Thread chloe K
Hi 
   
  I have hundred files to tar
   
  How can I make tar the file but untar in different folder?
   
  eg:
   
  tar cvf html.tar /var/web/data/verion/cc.html
   
  untar html.tar /var/web/data/root/cc.html
   
  Thank you

   
 
  
-

   
Yahoo! Canada Toolbar : Search from anywhere on the web and 
bookmark your favourite sites. Download it now!  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: hundred files to tar and untar

2008-11-10 Thread chloe K
Thank you

but I have hundred files in different folders and it may need 3 files in 100 
files in this folder. I did put need files in file.txt and
using tar zcvf file.tar.gz -T file.txt

inside file.txt eg:
/var/web/data/version/cc.html

but don't know how to restore as restore directory is in different folder
/var/web/data/cc.html

thank you



David Kelly [EMAIL PROTECTED] wrote: On Mon, Nov 10, 2008 at 08:10:36AM 
-0500, chloe K wrote:
 Hi 

   I have hundred files to tar

   How can I make tar the file but untar in different folder?

   eg:

   tar cvf html.tar /var/web/data/verion/cc.html

   untar html.tar /var/web/data/root/cc.html

   Thank you

RTFM. Specifically look at the -C option.

Or you could do it the simple way (note parenthesis, the cd only applies
within the parenthesis, when the command clompletes your shell is back
to the original directory):

(cd /var/web/data/verion/cc.html ; tar -cvf /html.tar * )
(cd /var/web/data/root/cc.html   ; tar -xvf /html.tar   )

The above does not store the path prefix in the tar archive, which is
perhaps the problem you were trying to solve?

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


   
 
  
-

   
Yahoo! Canada Toolbar : Search from anywhere on the web and 
bookmark your favourite sites. Download it now!  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


name server

2008-01-28 Thread chloe K
Hi all

I am using the name server in freebsd 6.1
there are 2G memory but top is only using
Mem: 207M Active, 420M Inact, 185M Wired, 112M Buf, 1158M Free

How can I increase the box performance used for name server only?
I want to use most of memory in cache name server


eg: increase parameter sysclt.conf

thank you so much




   
-
Looking for the perfect gift? Give the gift of Flickr!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


MTU question

2007-06-30 Thread chloe K
Hi all
   
  ls our network provider insists to set the mtu to 1600? but I can only set 
the freebsd as 1500.
   
  ls there any network issue?
   
  thank you

   
-
Be smarter than spam. See how smart SpamGuard is at giving junk email the boot 
with the All-new Yahoo! Mail  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 10/100/1000 Ethernet hardware recommendation

2007-06-02 Thread chloe K
intel desktop GigE (32 bits) around 380M
  intel server GigE (64 bits) around 800M - 900M
   
  I have used it for core router for 2 years. they are so good

Christopher Hilton [EMAIL PROTECTED] wrote:
  I'm about to build a Gigabit backend network for a few machines. This 
network will provide file and database services to a dedicated set of 
web application servers. My experience with Gigabit Ethernet leads me to 
like the Intel Pro/1000 cards which I believe use the em(4) driver in 
FreeBSD. Is this an appropriate NIC for a server or is there something 
better?

Thanks in advance
-- Chris


-- 
__o All I was doing was trying to get home from work.
_`\,_ -Rosa Parks
___(*)/_(*)___
Christopher Sean Hilton 
pgp key: D0957A2D/f5 30 0a e1 55 76 9b 1f 47 0b 07 e9 75 0e 14
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


   
-
Ask a question on any topic and get answers from real people. Go to Yahoo! 
Answers. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 10/100/1000 Ethernet hardware recommendation

2007-06-02 Thread chloe K
What is the bandwidth of your upstream? if it is not more than 155M, my 
experience desktop GigE is fine for you.
   
  Between DMZ and the Local LAN, you can consider the 64 bit cards if you have 
high volume of data transfer. but 32 bit cards is enough.
   
  For the hardware, I am using CPU: Intel(R) Pentium(R) 4 CPU 3.20GHz  with 2G 
memory. Don't need the modern hardware if you don't have many applications 
running and just use it as routing
   
  Thank you
  

Christopher Hilton [EMAIL PROTECTED] wrote:
  chloe K wrote:
 intel desktop GigE (32 bits) around 380M
 intel server GigE (64 bits) around 800M - 900M
 


While this may seem obvious I'm gonna ask it anyway. I'm being pedantic 
here and assuming:

The performance numbers are best case MBytes per second;

That the 64bit card is in a 64bit slot;

That the 64bit card in a 32bit slot would give similar performance 
to the 32 bit card.

A little information about my situation is probably in order. I have a 
DMZ with FreeBSD box acting as a NAS (samba/dav/nfs fileshare); a 
postgresql database server; a mysql database server; and an apache 
webserver; and a postfix mail server. All of these machines are older 
Pentium III 1GHz single or dual CPU class machines. It's more than 
enough performance for the bulk of my clients which are bottlenecked by 
their connection over the internet. I'd like to go to Gig E to improve 
performance for a hand full of clients on the local LAN and to move 
critical data out of the DMZ. Eventually I plan to replace the current 
generation of servers with something more modern like HP DL360 G5 and 
DL380 G5 hardware.

Based on that, if my assumptions are correct then the 64bit Intel 
Hardware seems to be the way to go.

-- Chris


-- 
__o All I was doing was trying to get home from work.
_`\,_ -Rosa Parks
___(*)/_(*)___
Christopher Sean Hilton 
pgp key: D0957A2D/f5 30 0a e1 55 76 9b 1f 47 0b 07 e9 75 0e 14


   
-
 All new Yahoo! Mail - 
-
Get a sneak peak at messages with a handy reading pane.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]