- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
#!/bin/bash
c=0;
declare -a fls;
cat $*| while read line
do
# echo "line $line №$c"
fls[$c]=$line;
let c++;
for((i=0;i<=${#fls[@]}-1;i++))
{
for((i2=$i+1;i2<=${#fls[@]};i2++))
{
# echo "${fls[$i]} ${fls[$i2]}";
if [ ${fls[$i]} = "${fls[$i2]}" ];then
echo "Zeile $i ist gleich Zeile $i2";
#else
# echo "Строка $i не равна строке $i2";
fi
}
}
done
Dummy00001 13.01.2011 19:28 # +1
gegMOPO4 14.01.2011 12:44 # +2
Dummy00001 14.01.2011 13:17 # 0
borius 24.08.2021 02:10 # 0