Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Shell/Exams/Pipes/2023-CE-01.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Напишете серия от команди, която извежда пътищата до всички файлове (из цялата файлова система),
# чиито собственик е текущият потребител и имат име, завършващо на .blend<число>.

# Примерен изход:
# /home/students/ivan/scenes/landscape.blend1
# /home/students/ivan/scenes/landscape.blend26
# /home/students/ivan/scenes/landscape.blend42
# /home/students/ivan/.local/share/Trash/lewd.blend1
# /tmp/baba.blend5

find / -type f -user $(whomai) 2>/dev/null | grep "\.blend\[0-9]*$"
3 changes: 2 additions & 1 deletion Shell/Exams/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
|12|2020-SE-01|[Solution](<./Pipes/2020-SE-01.sh>)|
|13|2020-SE-02|[Solution](<./Pipes/2020-SE-02.sh>)|
|14|2022-CE-01|[Solution](<./Pipes/2022-CE-01.sh>)|
|15|2023-CE-01|MISSING|
|15|2023-CE-01|[Solution](<./Pipes/2023-CE-01.sh>)|
|16|2016-SE-01|[Solution](<./Pipes/2016-SE-01.sh>)|
### Scripts

|Task no.|Task id|Solution|
Expand Down
1 change: 1 addition & 0 deletions Shell/Exercises/Pipes/03-b-8500.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ cat /etc/group | cut -d ':' -f 1 | sed -E 's/^.*$/Hello, &/'
#or
cat /etc/group | awk -F ':' '{print "Hello, " $1}'
#or

cat /etc/group | cut -d ':' -f 3 | awk -v user_group_id=$(id -g) '$1 == user_group_id { print "Hello " $1 " - I am here!" } $1 != user_group_id { print "Hello " $1 }'
2 changes: 1 addition & 1 deletion tasks.config
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:Shell Exam : 3 @ ./Shell/Exams

## Pipes
./Shell/Exams/Pipes:1-15
./Shell/Exams/Pipes:1-16

## Scripts
./Shell/Exams/Scripts:16-61
Expand Down