Skip to main content
11 events
when toggle format what by license comment
Jul 18, 2017 at 8:03 vote accept Wildcard
Nov 18, 2016 at 5:27 comment added Satō Katsura No, because sed has a pattern space and a hold space, while awk has records and the associated bookkeeping. Basic thing to understand about computers and algorithms: data structures always trump behavior. The former are measurables. The latter isn't.
Nov 18, 2016 at 5:17 comment added Wildcard @SatoKatsura, only because Awk has no such thing as auto-print. Otherwise they're equivalent. Right?
Nov 18, 2016 at 4:43 comment added Satō Katsura Awk's next isn't exactly equivalent to sed's d either. A guy named Banach came up with the hierarchy of theories, analogies between theories, and analogies between analogies. He didn't quite get to analogies between apples and orange juice. Now, that would make for an entertaining development. :)
Nov 18, 2016 at 2:23 comment added Wildcard @SatoKatsura, actually I think it was partially a confusion between Sed's n command and Awk's next command. I now realized that Awk's next command is actually equivalent to the delete command (d) in Sed. :)
Jul 8, 2016 at 8:07 history tweeted twitter.com/StackUnix/status/751326798026272768
Jul 7, 2016 at 21:24 answer added don_crissti timeline score: 5
Jul 7, 2016 at 21:14 answer added John1024 timeline score: 7
Jul 7, 2016 at 21:14 comment added Satō Katsura Not sure how you'd think of them as identical. b without a label starts next cycle, while n reads the next line from the input and keeps going. Compare f.i. the results of seq 1 5 | sed '/2/ { b; d; }' and seq 1 5 | sed '/2/ { n; d; }'.
Jul 7, 2016 at 21:14 answer added Kusalananda timeline score: 3
Jul 7, 2016 at 20:59 history asked Wildcard CC BY-SA 3.0