The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
1answer
46 views

Why does printf work differently with sudo?

I have a simple script to convert a text file with colour escape sequences to the actual characters. It works if I run it directly, but not with sudo. To set up the scripts: test.txt ...
0
votes
1answer
87 views

How do I use the excape characters properly in csh's builtin echo command?

I'm trying to build my fstab during install with a script, so I want to have something like this: printf '# Device\t\tMountpoint\tFSType\tOptions\t\tDump\tPass#' >> /mnt/etc/fstab printf ...
0
votes
2answers
365 views

zsh printf quote bug

does anyone have any idea why am I getting hit by this bug in zsh since forever? It's like a string formatting bug of some sorts: ~% printf "%s\n" foo " foo)foo Basically anything that has double ...
0
votes
1answer
120 views

Can dtrace print human readable sizes?

Is there a way to get DTrace printf output Bytes in human readable format GB, TB, ... ? For example here: #!/usr/sbin/dtrace -s #pragma D option quiet dtrace:::BEGIN { trace("Tracing... ...