LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Discovering the shell command ‘fold’.

Posted 08-16-2016 at 01:13 AM by Michael Uplawski
Updated 08-16-2016 at 01:54 AM by Michael Uplawski (cosmetics.)

Explaining to others has always been a great approach to internalize valuable information. So here is this shell command that I have discovered thanks to an exchange on LQ. You can read the discussion here: sed-less word wrap in Bash.

What it does: fold wraps lines of text after a given position and at a given symbol. This is lot like wrapping in a text-editor or what your mail-client does, when you configure a maximum line-length for incoming and outgoing email. You could, for example,...
Attached Images
File Type: png sc_xfile.png (41.3 KB, 15 views)
Senior Member
Views 88 Comments 0 Michael Uplawski is offline

  



All times are GMT -5. The time now is 12:28 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration