Whereas Linux is not strictly a text-only system, it has a repute for making higher use of plain textual content than some other working system. Whereas many instruments cater to programmers, writers, and authors may make the most of these highly effective instruments. (They will additionally work within the macOS and Home windows Subsystem for Linux terminals.)
7
Compose in an Editor
Being a author, I understand how phrase processors are such useful instruments for writing. The overwhelming majority of actual work I’ve executed with a pc has been “doc preparation.” As a Linux consumer, it is also troublesome to keep away from utilizing a plain textual content editor for my configuration and coding initiatives.
Whereas textual content editors like Vim are primarily meant for code, they can be helpful for prose. They’re completely different than phrase processors as a result of they solely allow you to edit plain textual content with out formatting. However that is the important thing to their energy for writing. Many writers yearn for “distraction-free writing environments,” even shelling out cash for them, however the sorts of textual content editors out there for Linux provide the identical factor at no cost. And you do not even need to be a Linux consumer or know something in regards to the terminal to make the most of them. A lot of them are already out there for Home windows or Mac. With a textual content editor, it is simply you and the phrases. This may be helpful for anybody who writes something from essays to novels.
6
Use Exterior Spell-Checking
Anybody who’s ever written something in a phrase processor has seen the dreaded crimson squiggle under their phrases. Even for those who attempt to preserve writing, it is there, highlighting your errors. The spell-checker appears to be mocking you. Even worse, it is a distraction. However you continue to want it. Even the most effective writers make typos. Our fingers get forward of our brains generally. Or possibly the morning espresso has but to kick in. However there’s a solution for writers.
The standard manner of designing packages in Linux, inherited from Unix, is to make them modular. The perfect is a program that does one factor and does it effectively. It is a hallmark of the “Unix philosophy.” It is meant to be a guiding gentle for builders, however the concept can simply be utilized to writing phrases in addition to packages. After you have picked an editor, you possibly can compose in a distraction-free setting and run your spell checker whenever you’re able to proofread your work.
A superb instance of 1 such instrument is ispell. You run it on a textual content file, and it’ll run by way of it and provide spelling solutions for phrases it flags as doable errors. It is much like the built-in spell checker, however in a separate program. You get the most effective of each worlds: a strategy to focus in your writing and one other pair of eyeballs to identify errors.
5
Structure In One other Program
The benefit of utilizing a plain textual content editor on your writing is that you may focus in your piece as an alternative of formatting. With plain textual content, you do not want to determine italics or boldface. Your editor cannot do this for those who wished to. “Plain textual content” means plain textual content. It is encoded in ASCII or more and more in Unicode.
On your completed product, you’ll want to outline how your doc appears. If you happen to’re writing a weblog submit, you possibly can simply paste it into the submit editor web page after which format your headings and hyperlinks. A whole lot of packages now use Markdown, which lets you set italics or boldface for emphasis rather than raw HTML. You’ll be able to study extra about Markdown on the Markdown Guide.
You probably have much more superior wants, like typesetting plenty of math, Linux has you lined. One factor that satisfied Bell Labs to deploy an OS that a few of its researchers had created, according to Unix co-creator Dennis Ritchie, was a typesetting system referred to as “troff.” Adopting this was an try to handle the massive quantity of paperwork the corporate’s patent division generated. With all of Bell Labs’ innovations within the twentieth century, together with Unix, they had been fairly busy. It survives in open-source type as groff, and is now primarily used to create Linux manual pages.
The opposite main technical typesetting system is LaTeX, an offshoot of the TeX typesetting language created by legendary pc scientist Donald Knuth. This method is broadly utilized in academia and technical publishing, like textbooks and scientific journals. It is well-liked due to its potential to simply typeset mathematical symbols. It is a cross-platform system, and although it is not strictly a Linux program, provided that Linux is popular among scientists and engineers, LaTeX is fairly widespread. A number of implementations exist for Linux. It is even change into well-liked amongst individuals self-publishing books that do not have any math in them as a result of the output appears so good. LaTeX-typeset paperwork have a mode that you’re going to immediately acknowledge whenever you see it.
The thought behind all of those techniques is that you simply compose your textual content and mark it up whenever you wish to format it. If you happen to’ve ever coded an internet web page from scratch, it is a related concept.
4
Use wc
If you happen to write in a journalistic vogue or for freelance purchasers, you may typically need to hit a phrase depend. You may miss the phrase depend perform in your phrase processor. Fortuitously, Linux comes with a phrase depend program. It is referred to as wc.
You’ll be able to name wc from the command line. It really works on customary enter or from information.
You’ll be able to run it on a file with this command:
wc file.txt
You will get a depend of the variety of characters, phrases, and bytes. You are almost certainly simply within the phrases. The -w choice offers you simply the variety of phrases:
wc -w file.txt
The one downside is that for those who’re like me, you may preserve watching your phrase depend. Working in your textual content in a separate editor will help you retain on job.
3
Combine Textual content Processing Instruments to Use Linux as a Phrase Processor
The pattern in software program improvement is to make use of Built-in Growth Environments (IDEs) that embody an editor, a debugger, file and library browsers, model management, and probably a command-line terminal. A contemporary phrase processor is comparable: you could have an editor, a spell checker, formatting buttons, and file opening and saving instruments.
It is doable to make use of the Linux terminal as an IDE just by operating instruments in a number of home windows. You are able to do the identical with textual content processing instruments. You may compose your doc in a single window whereas operating the spell checker in one other. You may handle your information in one other terminal window. A whole lot of instruments that had been invented to handle code will work for plain textual content as effectively.
2
Use Common Expressions for Exact Searches
Common expressions, or regexes, are a great tool for managing textual content. You’ll be able to specify patterns proper right down to the character.
The most typical Linux common expression command is grep. You’ll be able to seek for fundamental patterns:
grep 'foo' instance.txt
You may also seek for a selected sample:
grep 'f.*o' instance.txt
This may match an “f,” adopted by some other character, adopted by an “o.” It’ll match phrases like “meals.” The matches are highlighted in crimson on this implementation.
That is scratching the floor of what you are able to do with common expressions. There may be far more than I can clarify in a brief part.

Associated
8 Tasks You Can Automate Using Regex
Regex or common expressions are an effective way to automate issues.
1
Use Search And Exchange
You may be conversant in search and substitute instructions in your phrase processor to avoid wasting time making repeated modifications to your doc. You will be happy to know that many Linux editors have this characteristic.
A superb instance is Vim, although the syntax may be a little bit bizarre. Here is a world search and substitute on a whole doc:
/s/foo/bar/g
This tells Vim to alter each occasion of “foo” to “bar” throughout all the file. Omitting the “g” on the finish will simply change it on the road the cursor is on.
That is simply the beginning of your journey into textual content processing on the Linux command line. With observe, you possibly can arrange a distraction-free writing setting whereas using highly effective instructions.