<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions">
    <title>gmane.os.freebsd.questions</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298650"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298649"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298648"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298647"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298646"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298645"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298644"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298643"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298642"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298641"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298640"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298639"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298638"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298637"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298636"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298635"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298634"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298633"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298632"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.os.freebsd.questions/298631"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298650">
    <title>Re: ZFS install on a partition</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298650</link>
    <description>&lt;pre&gt;Thanks for this documented answer. 

Couple of comments though… 

Le 18 mai 2013 à 02:03, Paul Kraus &amp;lt;paul&amp;lt; at &amp;gt;kraus-haus.org&amp;gt; a écrit :


Ok so I'll use a dedicated volume (LUN) and install it as a RAID-0 vdev. 


Ok - great answer. 

I have setup a FreeNAS ZFS appliance (running native HBAs + JBOD) and used it as a backup solution using snapshots. 
This is why I wanted to have ZFS at first. 


If you have any other advise - they are welcome. 



Thanks a lot. 

GB. 



________________________________________________
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
BSD - BSD - BSD - BSD - BSD - BSD - BSD - BSD -
________________________________________________
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
PGP ID --&amp;gt; 0x1BA3C2FD

______________&lt;/pre&gt;</description>
    <dc:creator>bsd&lt; at &gt;todoo.biz</dc:creator>
    <dc:date>2013-05-18T05:26:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298649">
    <title>Re:  ZFS install on a partition</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298649</link>
    <description>&lt;pre&gt;
I believe the "copies=2" and "copies=3" option exists to enable ZFS to
self heal despite ZFS not being in charge of RAID. If ZFS only has a single
LUN to work with, but the copies=2 or more option is set, then if ZFS
detects an error it can still correct it.

This option is a dataset option, is inheritable by child datasets, and can
be changed at any time affecting data written after the change. To get the
full benefit you'll therefore want to set the option before putting data
into the relevant dataset.

&lt;/pre&gt;</description>
    <dc:creator>kpneal&lt; at &gt;pobox.com</dc:creator>
    <dc:date>2013-05-18T04:49:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298648">
    <title>Re: ZFS install on a partition</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298648</link>
    <description>&lt;pre&gt;
On 18 May 2013, at 01:15, Joshua Isom &amp;lt;jrisom&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:



Self healing much ?

I wouldn't dream of dropping it for a 20mb/s performance increase from a HW controller.

What if the controller derps and writes bad data ?



_______________________________________________
freebsd-questions&amp;lt; at &amp;gt;freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe&amp;lt; at &amp;gt;freebsd.org"&lt;/pre&gt;</description>
    <dc:creator>Damien Fleuriot</dc:creator>
    <dc:date>2013-05-18T03:56:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298647">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298647</link>
    <description>&lt;pre&gt;
What he said, +infinity.
_______________________________________________
freebsd-questions&amp;lt; at &amp;gt;freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe&amp;lt; at &amp;gt;freebsd.org"

&lt;/pre&gt;</description>
    <dc:creator>freebsd&lt; at &gt;chthonixia.net</dc:creator>
    <dc:date>2013-05-18T00:33:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298646">
    <title>Re: ZFS install on a partition</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298646</link>
    <description>&lt;pre&gt;

I ran many ZFS pools on top of hardware raid units, because that is what we had. It works fine and the NVRAM write cache of the better hardware raid systems give you a performance boost.


Sure. Be careful when you say RAID… I assume you mean RAIDz&amp;lt;n&amp;gt; configured top level vdevs. Remember, a mirror is RAID-1 and the base ZFS striping is considered RAID-0. So set it up as plain stripe of one vdev :-)


If the system is configured with existing LUNS use them.


No. One of the biggest benefits of ZFS is the end to end data integrity. IF there is a silent fault in the HW RAID (it happens), ZFS will detect the corrupt data and note it. If you had a mirror or other redundant device, ZFS would then read the data from the *other* copy and rewrite the bad block (or mark that physical block bad and use another).


ZFS is stable, it is NOT as tuned as UFS just due to age. UFS in all of it's various incarnations has been tuned far more than any filesystem has any right to be. I spent many years managing Solaris syste&lt;/pre&gt;</description>
    <dc:creator>Paul Kraus</dc:creator>
    <dc:date>2013-05-18T00:03:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298645">
    <title>License on the original BSD diff</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298645</link>
    <description>&lt;pre&gt;Looking at the original code for diff:

http://svnweb.freebsd.org/csrg/usr.bin/diff/

The licensing that applies to it seems to be simply that of the standard
BSD license:

http://www.freebsd.org/copyright/license.html

Is that correct?  If so, what's the relationship between that code and the
diff code currently in openbsd:

http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/diff/

The original commit in the openbsd tree by deraadt seems to indicate that
the Caldera license is what made the code usable, but if the diffreg.c file
was in the original BSD 4.4 lite release (diffing the original openBSD
diffreg.c upload with the copy in csrg shows only the BSD header and one
other line as differences) wouldn't the code already have been usable from
the get-go without Caldera's say-so?  The diffreg.c file in csrg shows a
copyright of the Regents of the University of California, and doesn't
mention Caldera at all.

The issue is of some interest because the wiki page documenting candidates
to replace GPL software in&lt;/pre&gt;</description>
    <dc:creator>Clifford Yapp</dc:creator>
    <dc:date>2013-05-17T23:49:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298644">
    <title>Re: ZFS install on a partition</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298644</link>
    <description>&lt;pre&gt;Your hardware raid should be faster than ZFS raid.  Don't use zfs raid 
because there will be no benefit.  You'll get the performance of 
software raid using CPU time, along with lost space for already backed 
up data.

ZFS should work fine.  A lot of the tuning on the wiki page isn't needed 
anymore, so it's not too bad.  The biggest thing to be careful with is 
upgrading your zpool, every so often your boot blocks may need updated 
and if you forget, you can't boot.  You won't upgrade your pool often of 
course.  Reliability shouldn't be an issue, it's FreeBSD.  ZFS will make 
it easier to play around with jails, have fun and create a 1000 node 
beowulf on one system.

On 5/17/2013 5:24 PM, bsd&amp;lt; at &amp;gt;todoo.biz wrote:

_______________________________________________
freebsd-questions&amp;lt; at &amp;gt;freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe&amp;lt; at &amp;gt;freebsd.org"

&lt;/pre&gt;</description>
    <dc:creator>Joshua Isom</dc:creator>
    <dc:date>2013-05-17T23:15:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298643">
    <title>ZFS install on a partition</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298643</link>
    <description>&lt;pre&gt;Hi, 

I have a question regarding ZFS install on a system setup using an Intel Modular. 

This system runs various flavor of FreeBSD and Linux using a shared pool (LUNs). 
These LUNs have been configured in RAID 6 using the internal controller (LSI logic). 

So from the OS point of view there is just a volume available. 


I know I should install a system using HBA and JBOD configuration - but unfortunately this is not an option for this server. 

What would you advise ? 

1. Can I use an existing partition and setup ZFS on this partition using a standard Zpool (no RAID). 

2. Should I use any other solution in order to setup this (like full ZFS install on disk using the entire pool with ZFS). 

3. Should I avoid using ZFS since my system is not well tuned and It would be asking for trouble to use ZFS in these conditions. 


P.S. Stability is a must for this system - so I won't die if you answer "3" and tell me to keep on using UFS. 


Thanks. 


________________________________________________
«?»¥«?»&lt;/pre&gt;</description>
    <dc:creator>bsd&lt; at &gt;todoo.biz</dc:creator>
    <dc:date>2013-05-17T22:24:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298642">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298642</link>
    <description>&lt;pre&gt;
I don't know if those mails where pointless, but there were much mails
and I only read two or three mails including this, IOW there was at
least much traffic caused by this discussion, that has less to do with
questions about FreeBSD, IMO this is ok, I like OT talk myself, even if
I wasn't interested in this discussion.

I'm subscribed to trillions of mailing lists, perhaps a few less than
trillions and several open mailing lists, including this one. I don't
get much spam and it's easy to filter the few junk mails I receive. The
few spam I get can't be eliminated by any method. The internet is the
Wilde West, it makes me wonder that I get that less spam.

It's said, that for all long discussions in the Internet, soon or later
somebody will mention the Nazis and if somebody mentions the Nazis, an
Internet discussion has reached it's end. The Nazis where some kind of
serial killers, so perhaps this is the reason to stop this discussion.

I hope there wasn't a flame war, I really didn't read this thread.

Plea&lt;/pre&gt;</description>
    <dc:creator>Ralf Mardorf</dc:creator>
    <dc:date>2013-05-17T19:03:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298641">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298641</link>
    <description>&lt;pre&gt;
This has gotten to the point of the ridiculous now. Comparing a few spam to
wife beating and serial killers? That's just patently offensive, quite 
frankly.

All this bike shedding and crosstalk has produced far more pointless email
than all the spam I've gotten from this list in the last month.

Capitalism: we brought you the pop-up ad.


&lt;/pre&gt;</description>
    <dc:creator>Robison, Dave</dc:creator>
    <dc:date>2013-05-17T17:53:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298640">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298640</link>
    <description>&lt;pre&gt;On Fri, 17 May 2013 14:03:01 +0100
RW articulated:


Yes, an incorrectly configured MTA or one of its milters. There are
ways to deal with these assholes. Allowing a blanket "open-door" policy
is like setting file permissions on everything to 0777 just because you
are to lazy to find a correct solution to a problem.

&lt;/pre&gt;</description>
    <dc:creator>Jerry</dc:creator>
    <dc:date>2013-05-17T13:15:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298639">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298639</link>
    <description>&lt;pre&gt;On Fri, 17 May 2013 08:45:29 -0400
Jerry wrote:



Out of Office replies, sieve rejects, anti-spam challenges etc

_______________________________________________
freebsd-questions&amp;lt; at &amp;gt;freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe&amp;lt; at &amp;gt;freebsd.org"

&lt;/pre&gt;</description>
    <dc:creator>RW</dc:creator>
    <dc:date>2013-05-17T13:03:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298638">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298638</link>
    <description>&lt;pre&gt;On Fri, 17 May 2013 13:19:32 +0100
RW articulated:


Well, unless the reluctant subscriber is running an incorrectly
configured MTA, I don't see a problem with "backscatter". Now, if they
do have a maladjusted MTA, they have more problems then just
subscribing to a list.
 

That would be a subjective statement. It is like asking how many times
you have to slap your wife before you are considered a wife beater.
Interestingly enough, the FBI won't classify you as a serial killer
until you have killed a minimum of three people.

&lt;/pre&gt;</description>
    <dc:creator>Jerry</dc:creator>
    <dc:date>2013-05-17T12:45:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298637">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298637</link>
    <description>&lt;pre&gt;On Fri, 17 May 2013 12:54:29 +0100
Bruce Cran wrote:


There's also the likelyhood that reluctant subscribers are less likely
to take care about avoiding various types of backscatter. 

It seems to me that the level of spam in list is pretty much
negligible. 


_______________________________________________
freebsd-questions&amp;lt; at &amp;gt;freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe&amp;lt; at &amp;gt;freebsd.org"

&lt;/pre&gt;</description>
    <dc:creator>RW</dc:creator>
    <dc:date>2013-05-17T12:19:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298636">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298636</link>
    <description>&lt;pre&gt;
Yes, seriously.  Have you seen the number of people who post messages 
"PLEASE REMOVE ME FROM THIS MAILING LIST!!", apparently not 
understanding how to manage their subscription?

&lt;/pre&gt;</description>
    <dc:creator>Bruce Cran</dc:creator>
    <dc:date>2013-05-17T11:54:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298635">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298635</link>
    <description>&lt;pre&gt;
I concur with you, which is why point #2 in my message (which I've 
elided for brevity here) comes into play: if the list-owners set
the "subscribers only" flag in Mailman, then messages from nonsubscribers
will be held for their attention.  I don't think it's unreasonable
or particularly burdensome to request that they check that queue
once a day or so, and decide how to dispose of those messages.

I should also expand on that to mention that Mailman offers a number
of choices on how that disposition is handled: list-owners can choose,
for example, to add the address in question to a list of non-subscribers
permitted to post, so that subsequent traffic from the same person
won't be held up and require attention.  I've found this quite useful
for cases where interested individuals send traffic sporadically.
I've also found it quite useful to note the email addresses of
obvious spammers and block them at the MTA, because they'll often
step through *all* the mailing lists sequentially and it becomes
tedious t&lt;/pre&gt;</description>
    <dc:creator>Rich Kulawiec</dc:creator>
    <dc:date>2013-05-17T10:55:51</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298634">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298634</link>
    <description>&lt;pre&gt;On Thu, 16 May 2013 23:05:33 +0100
Bruce Cran articulated:


Seriously? If some potential poster were so brain dead that he/she
could not comprehend how to subscribe to the mailing list then I would
seriously doubt that they would possess the necessary skills to install
and run FreeBSD to begin with.

Lets be honest here. All that the present system does is act as an
enabler for Spam merchants and Trolls.

&lt;/pre&gt;</description>
    <dc:creator>Jerry</dc:creator>
    <dc:date>2013-05-17T10:42:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298633">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298633</link>
    <description>&lt;pre&gt;Hi,

On Thu, 16 May 2013 23:05:33 +0100
Bruce Cran &amp;lt;bruce&amp;lt; at &amp;gt;cran.org.uk&amp;gt; wrote:


we running in a circle here.

I noticed that on other FreeBSD lists, a moderator enables later mails
which are sent from an unregistered address. Why can't this be done
here?

Get a group of volunteers in different time zones to handle this and
off we go.

Of course, I could be one of them in the Eastern World.

Erich
_______________________________________________
freebsd-questions&amp;lt; at &amp;gt;freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe&amp;lt; at &amp;gt;freebsd.org"

&lt;/pre&gt;</description>
    <dc:creator>Erich Dollansky</dc:creator>
    <dc:date>2013-05-17T00:44:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298632">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298632</link>
    <description>&lt;pre&gt;
That burdens FreeBSD lists with clueless, lazy non subscribers, &amp;amp; spammers.

Web forums exist for those too lame to subscribe &amp;amp; forums can have Captcha.

Cheers,
Julian
&lt;/pre&gt;</description>
    <dc:creator>Julian H. Stacey</dc:creator>
    <dc:date>2013-05-16T23:24:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298631">
    <title>Re: List Spam Filtering</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298631</link>
    <description>&lt;pre&gt;
There have been some discussions about this in the past. 
freebsd-questions doesn't require subscribing to avoid people who may be 
unfamiliar with mailing lists being put off posting to it.

&lt;/pre&gt;</description>
    <dc:creator>Bruce Cran</dc:creator>
    <dc:date>2013-05-16T22:05:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.os.freebsd.questions/298630">
    <title>Re: check variable content size in sh script</title>
    <link>http://permalink.gmane.org/gmane.os.freebsd.questions/298630</link>
    <description>&lt;pre&gt;
On May 16, 2013, at 9:27 AM, Teske, Devin wrote:


On May 16, 2013, at 9:06 AM, Teske, Devin wrote:


On May 16, 2013, at 8:28 AM, Tim Daneliuk wrote:

On 05/16/2013 10:08 AM, Joe wrote:
Hello

Have script that has max size on content in a variable.
How to code size less than 51 characters?


FOO="Some string you want to check length of"
FOOLEN=`echo $FOO | wc | awk '{print $3}'`


Uh, without forking to 2 separate programs…

FOOLEN=${#FOO}


You can then use $FOOLEN in a conditional.



However, if the OP wanted to actually truncate $FOO to 51 characters:


NEWFOO=$( echo "$FOO" | awk -v max=51 '{print substr($0,0,max)}' )


However, if you want to handle the case of $FOO containing newlines (and you want the newline to count toward the max), then this instead would do the trick:


NEWFOO=$( echo "$FOO" | awk -v max=51 '
{
len = length($0)
max -= len
print substr($0,0,(max &amp;gt; 0 ? len : max + len))
if ( max &amp;lt; 0 ) exit
max--
}' )


For fun, I decided to expand on the solution I provided immediately above…&lt;/pre&gt;</description>
    <dc:creator>Teske, Devin</dc:creator>
    <dc:date>2013-05-16T16:48:26</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.os.freebsd.questions">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.os.freebsd.questions</link>
  </textinput>
</rdf:RDF>
