Timeline for Conditionally remove lines with less than 4 characters
Current License: CC BY-SA 4.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 6, 2020 at 17:21 | comment | added | Jeff Schaller♦ | I was brought here by some "low quality" flags and would recommend that you do your best to test future Answers before posting them. Stack Exchange aims to be a high-quality repository of Questions and Answers. | |
| Nov 6, 2020 at 17:05 | review | Low quality posts | |||
| Nov 6, 2020 at 19:55 | |||||
| Nov 6, 2020 at 8:22 | history | edited | Olaf | CC BY-SA 4.0 |
added 1 character in body
|
| Nov 6, 2020 at 8:20 | comment | added | Olaf | Whilst you both may be right, it's not my intention, to write the script for the OP, but just to provide one option/direction, how it can be archived. I personally use and prefer loops, as they allow me a better reuse of existing codes and in case needed, store results as variables and obviously, I am not the only one. | |
| Nov 6, 2020 at 8:11 | comment | added | Olaf | Whilst you both might be right, I wrote "You can try something like this, code not tested: " | |
| Nov 5, 2020 at 7:49 | comment | added | Kusalananda♦ |
You seem to have syntax errors in your script, you also call awk once for each line in the file, which will be slow.
|
|
| Nov 5, 2020 at 7:16 | comment | added | Stéphane Chazelas | You may want to read Why is using a shell loop to process text considered bad practice?. You could also run your script by shellcheck. | |
| Nov 5, 2020 at 7:03 | history | answered | Olaf | CC BY-SA 4.0 |