Compare commits
5 Commits
70562795d8
...
b3d21ec94e
Author | SHA1 | Date |
---|---|---|
|
b3d21ec94e | |
|
017b264464 | |
|
74d0c6955e | |
|
a86d253dad | |
|
b95e3be972 |
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
find . -type f -name "*.sh" | xargs -I{} basename {} | sed 's/\.sh$//g'
|
find . -type f -name "*.sh" -exec basename {} .sh \;
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
find . | wc -l
|
find . -type f -o -type d | wc -l
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
ifconfig -a | grep ether | awk '{ print $2 }'
|
ifconfig | grep ether | awk '{ print $2 }'
|
||||||
|
|
|
@ -1,16 +1,19 @@
|
||||||
#!/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' |
|
||||||
rev |
|
|
||||||
sort -r |
|
|
||||||
rev |
|
|
||||||
cut -d':' -f1 |
|
cut -d':' -f1 |
|
||||||
rev |
|
rev |
|
||||||
|
sort -r |
|
||||||
head -"${FT_LINE2}" |
|
head -"${FT_LINE2}" |
|
||||||
tail -"${FT_DIFF}" |
|
tail -"${FT_DIFF}" |
|
||||||
tr '\n' ':' |
|
tr '\n' ':' |
|
||||||
|
|
Loading…
Reference in New Issue