Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

convert number



Hi,
I'm lost in a shell issue with no clue where to look for a solution.
I have a very long column of three digit numbers and I need to transform
each of them into a one digit number according to the following
"conversion table"

151	2
152	2
153	2
158	4
159	3
160	2
171	4
172	1
173	4

Any suggestion how to solve the problem with a shell script?
Thanks in advance



Messages sorted by: Reverse Date, Date, Thread, Author