2022/07/02That you can unescape newlines with printf "%b" 'escaped\nstring':escaped='a\nb' printf "%b" "$escaped" # a # b