Files
School/Anul 1/Semestrul 2/OS/Labs/shell-programming/problem1.sh
T
2024-08-31 12:07:21 +03:00

7 lines
138 B
Bash

#!/bin/bash
for X in `cat who.fake | awk -F' ' '{print $1}' | sort | uniq` ;do
C=`cat ps.fake | grep -E "^$X" | wc -l`
echo $X $C
done