Perhaps the orgional poster wasn't as mild as he could've been. I'm
sure he was just trying to help out. All that's being said is that
when starting a new topic, please create a new email instead of trying
to start it by hitting a reply button and wiping out the text/subject.
If that's what you did, great, if not well you learned something new.
As for the instructions someone gave you. One of the nice things
about the Mac is it comes from a Unix background and as such has all
the standard Unixy programs still there under the hood. What you've
asked for is fairly basic stuff that is already provided. If you open
a Terminal, you can get information on the commands as given.
1. Open Terminal.app
2. Type: `man fmt` (exclude the quotes):
FMT(1) BSD General Commands Manual FMT(1)
NAME
fmt -- simple text formatter
SYNOPSIS
fmt [-cmnps] [-d chars] [-l num] [-t num] [goal [maximum] |
-width | -w width] [file ...]
DESCRIPTION
The fmt utility is a simple text formatter which reads the
concatenation of input files (or stan-
dard input if none are given) and produces on standard output a
version of its input with lines
as close to the goal length as possible without exceeding the
maximum. The goal length defaults
to 65 and the maximum to 10 more than the goal length.
Alternatively, a single width parameter
can be specified either by prepending a hyphen to it or by using
-w. For example, ``fmt -w 72'',
``fmt -72'', and ``fmt 72 72'' all produce identical output. The
spacing at the beginning of the
input lines is preserved in the output, as are blank lines and
interword spacing. Lines are
joined or split only at white space; that is, words are never
joined or hyphenated.
...
3. Type: `man fold`
FOLD(1) BSD General Commands Manual FOLD(1)
NAME
fold -- fold long lines for finite width output device
SYNOPSIS
fold [-bs] [-w width] [file ...]
DESCRIPTION
The fold utility is a filter which folds the contents of the
specified files, or the standard
input if no files are specified, breaking the lines to have a
maximum of 80 columns.
...
Now, you can type the commands and make that work. Once you know how
to do it from the commandline, you can always find a way to do it via
BBEdit. Look in the manual for "Run Unix Filter" and "Text Factory".
Of course, if you just have a directory full of files and it's a
one-off thing, just do it from the Terminal command line and call it
good.
You can gain huge power by learning to use your commandline tools.
It's one of the reasons I'm able to use my Mac when doing things like
writing Linux kernel code.
- Steve
On Thu, Mar 17, 2011 at 9:20 AM, Webmaster
<[email protected]> wrote:
> I'm sorry fellas, but this is all a bit confusing to me. Here
> is exactly what my original message looks like in my email
> client:
>
> ----------
> To: [email protected]
> From: Webmaster <[email protected]>
> Subject: How To Rewrap Lines To Specified Length In Folder Of Files
> Cc:
> Bcc:
>
> Hello Again,
>
> Another question...
>
> I have a folder which presently contains several hundred
> BBEdit files. I want to rewrap the lines in each file at 76
> characters per line.
>
> Is there a way to do this globally, just as you would do on
> an individual file using command + backslash?
>
> If so, how would I accomplish this?
>
> Thanks so much!
>
> WW
> ----------
>
> That is exactly what is in my email client window for that
> message.
>
> If I somehow did something wrong, I apologize, but I also
> find it rather offensive that someone is now blowing this
> issue out of proportion, and accusing me of deliberately
> hijacking a thread. I am not a pirate or a hijacker, and I
> don't intentionally break any rules. I wouldn't know how to
> hijack something if I tried. My skills are limited to
> designing our website with basic HTML and some CSS, and
> working with images in Photoshop. That is about it. I am not
> a programmer or a hacker of any sort; the Terminal is for the
> most part foreign to me; and there are a lot of things
> discussed on this BBEdit support list that I am absolutely
> clueless about.
>
> Anyway, I rarely post on this list, because my needs aren't
> that great. Occasionally, there is just something that I
> don't know how to do in BBEdit, so I ask for help here.
>
> So far, only one person has responded on topic to my original
> request for information, and what he said is over my head. I
> would appreciate if someone here could please provide a
> simpler, clearer answer regarding how to rewrap lines to a
> specific length in a folder full of BBEdit files.
>
> Thanks,
> WW
>
> --
> ............................................................................
> EPN Website : http://www.endtimeprophecy.net
> EPN Blog : http://www.endtimeprophecy.net/Blog/
> EPN RSS Feed : http://www.endtimeprophecy.net/EPN-RSS-Feed.xml
> Top Christian Sites : http://www.topchristiansites.org
> Armageddon BBS : http://www.endtimeprophecy.net/ArmageddonBBS/
> Facebook : http://www.facebook.com/profile.php?id=100001989026091
> Tumblr : http://endtime-prophecy-net.tumblr.com
> Twitter : http://twitter.com/WordWeaver777
> ............................................................................
>
> --
> You received this message because you are subscribed to the "BBEdit Talk"
> discussion group on Google Groups.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> <http://groups.google.com/group/bbedit?hl=en>
> If you have a feature request or would like to report a problem, please
> email "[email protected]" rather than posting to the group.
> Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
>
--
You received this message because you are subscribed to the
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem,
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>