New answers tagged

5 votes

Print Variable containing backslashes

If printf '%s' "$A" doesn't show any backslash then they're not there. You can check with curl alone. Maybe you were confused by the output of: bash-5.0$ typeset -p A ...
Stéphane Chazelas's user avatar
6 votes

"ls" counterpart to "find" operator "-printf"?

Not with the GNU implementation of ls¹ as far as I know, however it's possible with some implementations of stat. For example stat from GNU Coreutils, stat --printf '%n\t%y\t%s\n' will give you the ...
steeldriver's user avatar
  • 79.6k

Top 50 recent answers are included