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'

2
Shell_01/git/ex02/find_sh.sh Executable file
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/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/ex06/skip.sh Executable file
View File

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

2
Shell_01/git/ex07/r_dwssap.sh Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/sh
grep -v "#" /etc/passwd | sed -n 'n;p' | awk -F ':' '{ print $1 }' | rev | sort -r | sed -n "${FT_LINE1-1},${FT_LINE2-42}p" | tr '\n' ' ' | sed 's/ $/./; s/ /, /g'