Questions tagged [gnu-sed]

Use this tag for questions specific to the GNU version of the stream editor sed. Notice that questions should not be about general (interactive) usage of GNU sed, but programming using GNU sed. For sed questions not specific to GNU sed, use the "sed" tag.

GNU sed is the GNU version of sed, a "non-interactive command-line text editor". It features several extensions to POSIX sed such as support of extended regular expressions (ERE), in-place editing, and case modifiers for substitutions.

The current version is GNU sed 4.4, released on 2017-02-04.

Links of interest

33 questions
0
votes
1 answer

Getting lines formatted as CSV entries and perform conversions on them with sed

When I try to grep something, I get: 09:00:02.052(0.0000<-0.0001<-0.0002) 15:04:07.225(75.8901<-78.1234<-79.4567) 16:08:11.463(100.0000<-100.0000<-100.0000) values in () are percentage, so always lies in [0, 100] So the input format will always be…
Tom Lau
  • 109
  • 1
  • 7
0
votes
2 answers

How can I convert strings in angle brackets to uppercase on MacOS?

I am working in MacOS 10.12 and I have 100 files such as this: My file like this this, but not quite like this. But there might be like this, too. I have been trying to convert all of the items in <> to…
QuietLeni
  • 139
  • 1
  • 3
  • 12
-1
votes
1 answer

How to delete duplicate lines from a block using sed

Suppose we have a block of lines as given example below: . . . . …
1 2
3