You are not logged in.

#1 2015-11-19 10:24:54

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Why is printf better than echo?

Offline

#2 2015-11-19 17:33:20

Horizon_Brave
Operating System: Linux-Nettrix
Registered: 2015-10-18
Posts: 1,473

Re: Why is printf better than echo?

Great! More syntax I need to learn!  tongue   But yea I have noticed that echo seems to be a bit more general and can't be as specific as printf


"I have not failed, I have found 10,000 ways that will not work" -Edison

Offline

#3 2015-11-19 23:50:24

Snap
Member
Registered: 2015-10-02
Posts: 465

Re: Why is printf better than echo?

Thanks, Doc.

Offline

#4 2015-11-20 06:34:30

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Why is printf better than echo?

Fascinating, thank you!
smile

Offline

#5 2015-11-20 09:47:35

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,746

Re: Why is printf better than echo?

I was actually unaware that printf is newer until hitting this one
http://wiki.bash-hackers.org/commands/builtin/printf

Offline

Board footer

Powered by FluxBB