Skip to main content
6 events
when toggle format what by license comment
Jun 18, 2019 at 10:20 history edited Praveen Kumar BS CC BY-SA 4.0
Corrected the code
May 23, 2019 at 19:32 comment added Philippos -r is only available for GNU sed. Most sed flavors (including GNU) understand -E for extended regular expressions instead. Anyhow, this code will modify c indention.
May 23, 2019 at 11:43 comment added Implicit Thanks for your help but unfortunately when I put in this command this is what I get $ sed -r "s/^\s+//g" test.c|sed '/^\/\*.*\*\/$/d' sed: illegal option -- r usage: sed script [-Ealn] [-i extension] [file ...] sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
May 22, 2019 at 15:58 history edited Jeff Schaller CC BY-SA 4.0
Removed the command from the output ; added 4 characters in body; added 1 character in body
May 22, 2019 at 15:35 comment added Jeff Schaller if I'm reading this correctly, it will strip leading whitespace from every line (above and beyond removing one-line comments).
May 22, 2019 at 15:25 history answered Praveen Kumar BS CC BY-SA 4.0