Add comment about improvment in comment v grepping
This commit is contained in:
parent
70562795d8
commit
b95e3be972
|
@ -1,8 +1,13 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
# FT_LINE1=7
|
||||||
|
# FT_LINE2=15
|
||||||
|
|
||||||
FT_DIFF=$((FT_LINE2 - FT_LINE1 + 1))
|
FT_DIFF=$((FT_LINE2 - FT_LINE1 + 1))
|
||||||
|
|
||||||
cat /etc/passwd |
|
cat /etc/passwd |
|
||||||
|
# Not perfect, will discard line that contain a #
|
||||||
|
# anywhere in the line, not just the beginning
|
||||||
grep -v '#' |
|
grep -v '#' |
|
||||||
sed '1d' |
|
sed '1d' |
|
||||||
awk 'NR % 2 == 1' |
|
awk 'NR % 2 == 1' |
|
||||||
|
|
Loading…
Reference in New Issue