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