|
|
How to extend Smultron using Commands
par seems to truncate lines longer than 512 characters.
How to extend Smultron using Commands
I tested for this by running these two commands:
(ls /usr/bin | tr '\n' ' ' ; echo) | wc (ls /usr/bin | tr '\n' ' ' ; echo) | par | wc The wc(1) command writes out the number of lines, words, and characters in a stream. On my system, the output of the first command, without par, was "1 753 5754", indidcating 1 line, 753 words, and 5,754 characters (all of which were on a single line). The second command, with par, produced "84 753 5753", indicating that the single line of 5,754 chars was wrapped to produce 84 lines. Perhaps there is some other reason that your lines are being truncated? By the way, par will complain about words that are longer than the max line width, since it doesn't break words. Could that be what you are seeing?
How to extend Smultron using Commands
I installed par, added the environmental variable to .profile
How to extend Smultron using Commands
Yes, I have tried it with long lines in smultron. Just to be sure, I re-did the "ls /usr/bin" test, but I saved the 5,753-character line in a file and edited it in smultron. Then I ran my "par w99" script and saved the result. It was fine, 76 wrapped lines, 5,753 characters.
How to extend Smultron using Commands
Are you using smultron 3.1 ? Maybe that's what's going on.Yes, version 3.1 MacOS 10.4.9 PPC Should I try a different version?
How to extend Smultron using Commands
Are you using Smultron 3.1 ? Maybe that's what's going on.I just now tried Smultron 2.2.7 and it gives "Invalid parameter" for the "<"
How to extend Smultron using Commands
No, an earlier version wouldn't help. The ability to filter selected text was new in 3.0, and 3.1 fixed various issues, so I was just thinking that you may have been using 3.0 and that this was a bug in that version.
How to extend Smultron using Commands
How about the version of par ? I seem to have version 1.52, installed via darwinports. (You can check yours by the command "par version".)I also have par 1.52 vial darwinports. Right now I am more interested in using par with TextExtras inside TextEdit. I am new to unix scripting but not programming, and do not know the syntax. Have you tried that? |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|