Hi guys.
I have a file :
1
2
10
123
and I want :
0001
0002
0010
0123
My script is a shell.
I don't know if i should used "sed" or "awk" or "printf"
Thinks!
A Perderabo's script take on a other forum
It is really good
#! /usr/bin/ksh
# datecalc -- Perderabo's date calculator
#
USAGE="datecalc -a year month day - year month day
datecalc -a year month day [-|+] n
datecalc -d year month day
datecalc -D year month day
datecalc -j year month day...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.