file_content="$(cat /etc/hosts)"
file_content="$(printf "%s" "$(cat /etc/hosts)")"
file_content=""
FS= read -r -d '' file_content < "/etc/hosts"
file_content="$(cat /some/file)"
echo $file_content
>>> lol kek cheburek. kol
echo "$file_content"
>>> lol
kek cheburek.
kol
f=""
while IFS= read -r line || [[ -n "$line" ]]; do
f+="${line}"$'\n'
done < 1.txt
f="${f%$'\n'}"
echo "$f" > 2.txt