Sample Header Ad - 728x90

How to get the difference between numbers using dc?

2 votes
1 answer
410 views
Input: > printf 1\n\2\n3\n 1 2 3 Desired output: 0 1 1 Typing printf 1\n\2\n3\n | dc -e '-p' the output is: dc: stack empty dc: stack empty
Asked by ncomputers (1572 rep)
Jan 28, 2016, 09:51 PM
Last activity: Feb 17, 2023, 05:15 PM