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 169077

sed is a command-line stream editor for filtering and transforming text.

1
vote
That output format doesn't make sense to me. I don't think it's going to be practical at all. Anyway, just write it per line, then transpose (or better, leave it per line): tr '\n' ' ' < example | tr 'N' '\n' | sed 's/^A //; /^$/d' gives 4 3 5 7 8 3 3 4 5 2 2 7 4 6 9 …
answered Sep 16 '17 by n.caillou
1
vote
The awk version: awk -F, 'NF > 5' myfile
answered Dec 22 '17 by n.caillou
6
votes
The general answer is man 7 regex but specifically sed -E 's/"name":\["abc1234"\], age:"24" /"name": "abc1234", age:"24"/g' file > new or sed -E 's/"name" *: *\["([^"]+)"\], *age *: *"([0-9]+)"/"name": "\1", age:"\2"/g' file > new grep -E '"name" *: *\[' new …
answered Dec 19 '17 by n.caillou