Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 61909

Manipulation or examining of text by programs, scripts, etc.

3
votes
This looks more like a python job to me. A general rule of thumb is: if your task requires only a "flat" and content-blind processing, core utilities (preferably gnu) are the way to go. This goes for …
answered Jan 29 '15 by orion
2
votes
Third field means third field when separated by spaces (standard shell word splitting). This is exactly what you got and what anyone would expect from this feature (people usually sort tables, with ar …
answered Mar 5 '14 by orion
4
votes
First you need to find the maximum length. Comma is your field separator, and you need to ignore the first line: len=$(awk -F, 'BEGIN{mn=0;} NR>1{n=length($1);mn=mn>n?mn:n;}END{print mn}' test.txt) …
answered Mar 8 '14 by orion
19
votes
So, you want to replace things in a brand-specific format? At the first look it looks bad, but the new docx format is a bit better for that than the old doc format, because it's actually a ZIP file co …
answered Oct 17 '16 by orion
2
votes
Your code is quite ok, I'd probably do that as a quick solution. It's more efficient to actually exit sed immediately after printing: sed -n '1{p;q}' to avoid reading the entire file for no reason. N …
answered Jan 29 '15 by orion