[go: up one dir, main page]

Today I Learned

tags


2022/07/02

That you can unescape newlines with printf "%b" 'escaped\nstring':

escaped='a\nb'
printf "%b" "$escaped"
# a
# b