Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Posts tagged text-processing

This tag doesn't have any usage information yet.

This tag doesn't have a detailed wiki yet.

75%
+4 −0
Q&A How to extract string from file, run filter, and replace in file with new value?

TASK I am coding up ebooks to a specific standard, and have a script that converts a string into the correct titlecase for this publisher. When working with some public domain source files, one of...

4 answers  ·  posted 5mo ago by David‭  ·  last activity 1mo ago by Mithical‭

66%
+4 −1
Q&A Simplest way of stripping leading/trailing whitespace from file or program output

What is the simplest shell idiom for stripping leading and trailing whitespace from a file or program output? Ideally I am looking for the equivalent of trim or strip methods in some languages. Th...

3 answers  ·  posted 10mo ago by matthewsnyder‭  ·  last activity 9mo ago by AdminBee‭

Question text-processing
77%
+5 −0
Q&A What unexpected things can happen if a user runs commands expecting a text file on input lacking a file-final newline?

It is often taught that in Unix/Linux text files should end with newline characters. The reason given (orally) to me by various sources was that "some commands (such as wc) assume or require a newl...

2 answers  ·  posted 10mo ago by Lover of Structure‭  ·  last activity 9mo ago by tripleee‭

33%
+1 −4
Q&A Substituting text in a sed like manner but with a richer format

I have the following problems working with sed: It doesn't allow multiline operations (thus, no indentations, no nesting) It is generally obligatory to wrap entire commands in quote marks (sed ...

1 answer  ·  posted 2y ago by deleted user  ·  last activity 2y ago by user53100‭

Question sed text-processing