New answers tagged printf
5
votes
Accepted
Print Variable containing backslashes
If printf '%s' "$A" doesn't show any backslash then they're not there. You can check with curl https://mysite.com alone.
Maybe you were confused by the output of:
bash-5.0$ typeset -p A
...
6
votes
Accepted
"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 ...
Top 50 recent answers are included
Related Tags
printf × 277bash × 124
shell-script × 46
awk × 40
echo × 36
shell × 35
text-formatting × 22
text-processing × 18
linux × 16
sed × 16
find × 14
scripting × 9
escape-characters × 9
newlines × 9
zsh × 8
command-line × 7
numeric-data × 7
variable × 6
ksh × 6
posix × 6
columns × 6
dash × 6
quoting × 5
c × 5
unicode × 5