To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

From Wikipedia, the free encyclopedia

fold is a Unix command used for making a file with long lines more readable on a limited width computer terminal by performing a line wrap.

Most Unix terminals have a default screen width of 80, and therefore reading files with long lines could get annoying. The fold command puts a line feed every X characters if it does not reach a new line before that point. If the -w argument is set, the fold command allows the user to set the maximum length of a line.

YouTube Encyclopedic

  • 1/3
    Views:
    506
    880
    39 601
  • unix commands: fold (beginner) anthony explains #217
  • Unix 3
  • How to fix or remove Mac OS X Keychain password Error pop ups

Transcription

History

The utility first appeared in 1BSD of 1977 and was originally written by Bill Joy.[1][2]

fold is part of the X/Open Portability Guide since issue 4 of 1992. It was inherited into the first version of POSIX.1 and the Single Unix Specification.[3]

The version of fold bundled in GNU coreutils was written by David MacKenzie.[4]

The command is available as a separate package for Microsoft Windows as part of the UnxUtils collection of native Win32 ports of common GNU Unix-like utilities.[5]

Example

As a usage example, to fold a file named file.txt to have a maximum of 50 characters per line, one could run the following command:

fold -w 50 file.txt
  • file.txt:
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur dignissim
venenatis pede. Quisque dui dui, ultricies ut, facilisis non, pulvinar non,
purus. Duis quis arcu a purus volutpat iaculis. Morbi id dui in diam ornare
dictum. Praesent consectetuer vehicula ipsum. Praesent tortor massa, congue et,
ornare in, posuere eget, pede.

Vivamus rhoncus. Quisque lacus. In hac habitasse platea dictumst. Nullam mauris
tellus, sollicitudin non, semper eget, sodales non, pede. Phasellus varius
ullamcorper libero. Fusce ipsum lorem, iaculis nec, vulputate vitae, suscipit
vel, tortor. Cras varius.

Nullam fringilla pellentesque orci. Nulla eu ante pulvinar velit rhoncus
lacinia. Morbi fringilla lacus quis arcu. Vestibulum sem quam, dapibus in,
fringilla ut, venenatis ut, neque.
  • output:
Lorem ipsum dolor sit amet, consectetuer adipiscin
g elit. Curabitur dignissim
venenatis pede. Quisque dui dui, ultricies ut, fac
ilisis non, pulvinar non,
purus. Duis quis arcu a purus volutpat iaculis. Mo
rbi id dui in diam ornare
dictum. Praesent consectetuer vehicula ipsum. Prae
sent tortor massa, congue et,
ornare in, posuere eget, pede.

Vivamus rhoncus. Quisque lacus. In hac habitasse p
latea dictumst. Nullam mauris
tellus, sollicitudin non, semper eget, sodales non
, pede. Phasellus varius
ullamcorper libero. Fusce ipsum lorem, iaculis nec
, vulputate vitae, suscipit
vel, tortor. Cras varius.

Nullam fringilla pellentesque orci. Nulla eu ante 
pulvinar velit rhoncus
lacinia. Morbi fringilla lacus quis arcu. Vestibul
um sem quam, dapibus in,
fringilla ut, venenatis ut, neque.

See also

References

  1. ^ fold(1) – FreeBSD General Commands Manual
  2. ^ "fold.c – 1BSD". minnie.tuhs.org.
  3. ^ printf – Shell and Utilities Reference, The Single UNIX Specification, Version 4 from The Open Group
  4. ^ "fold(1) - Linux man page". linux.die.net.
  5. ^ "Native Win32 ports of some GNU utilities". unxutils.sourceforge.net.

External links


This page was last edited on 5 February 2024, at 01:18
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.