Add comment about improvment in comment v grepping

This commit is contained in:
Timo Schmidt 2023-03-15 15:49:44 +01:00
parent 70562795d8
commit b95e3be972
1 changed files with 5 additions and 0 deletions

View File

@ -1,8 +1,13 @@
#!/bin/sh
# FT_LINE1=7
# FT_LINE2=15
FT_DIFF=$((FT_LINE2 - FT_LINE1 + 1))
cat /etc/passwd |
# Not perfect, will discard line that contain a #
# anywhere in the line, not just the beginning
grep -v '#' |
sed '1d' |
awk 'NR % 2 == 1' |