0
0
This commit is contained in:
Guy Baconniere
2021-08-20 10:02:38 +02:00
parent 5aa02c94b5
commit d30270c485
354 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
#!/bin/sh
id -Gn $FT_USER | tr ' ' ',' | tr -d '\n'

View File

@@ -0,0 +1,2 @@
#!/bin/sh
find . -type f -name '*.sh' -exec basename '{}' .sh \;

View File

@@ -0,0 +1,2 @@
#!/bin/sh
find . \( -type f -o -type d \) | wc -l | tr -d ' '

2
Shell_01/git_old/ex04/MAC.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
ifconfig | grep -oE 'ether .*' | cut -c7-23

View File

@@ -0,0 +1 @@
42

2
Shell_01/git_old/ex06/skip.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
ls -l | awk '{ if ((NR + 1) % 2 == 0) print $0 }'

View File

@@ -0,0 +1,2 @@
#!/bin/sh
awk -F ':' '!/^#/ { n++; login=$1; rev="rev <<<"login; rev | getline revlogin; close(rev); print ((n > 1) && ((n+1) % 2 == 0))? revlogin:login }' /etc/passwd | sort -rh | tr '\n' ' ' | sed 's/ $/./; s/ /, /g;'