#!/bin/bash
declare -A map1 map2
IFS=$'\n'
while read line; do
map1["$line"]=1
done < /tmp/file1.txt
while read line; do
map2["$line"]=1
done < /tmp/file2.txt
for k in ${!map1[@]}; do
[[ "${map2[$k]}" ]] || echo $k
done
a='a a a
b b b
c c c'
# вариант 1
echo "$a" | while read x; do
echo "---$x---"
done
# вариант 2
while read x; do
echo "---$x---"
done < <(echo "$a")
find . -type f -regextype posix-awk -regex '.+/0([01][0-9]|2[0-4])\.jpg$' | sort
last_time_online=`curl -s "http://lolygirl.ru/time_online.php?client=clear"`
last_time_online=${last_time_online:1:${#last_time_online}-1}
curr_date=`date +%s`
echo $(($curr_date - $last_time_online))
xrandr --output HDMI-0 --auto --primary --left-of DVI-I-0