Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
convert number
- X-seq: zsh-users 15066
- From: tartifola@xxxxxxxxx
- To: zsh-users@xxxxxxx
- Subject: convert number
- Date: Wed, 19 May 2010 19:11:03 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:organization:x-mailer:mime-version:content-type :content-transfer-encoding; bh=0pHGTKu4GaB6QnXH7V3Mb3DG58kdGH/l3nssOwhKrws=; b=QZWNxeoRT37UIUJa804e3pS/hWZUQi+K5bi2He1cm/ZNA6UFkRMRi+wS22HjkTtF/Z Lpexo7TStDiPTOyA+/2DexTF6IekcrHLe+BKUNZvKZgT4Bi+edh/hkiXrX5wwV7qfFE7 ZXyoa7A42Gy91ELyTr+SuA7WwGGkM0uuWCYWk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:organization:x-mailer :mime-version:content-type:content-transfer-encoding; b=cPab3iw9+T0dzm7FjNjq+51D7o9aLkaEanH/D0ToFVKdbD2F6VE2Hv2JWRzSX7UkhG t7rz2VXZ1OekmVcsOc6urzSlQ5SUNecWowRqjeJtzkIX477nqvFPqMGGcCxwh8DFcnfS 7U9Tt2gjMC/4aKi1ts3IG2zSsme76P3MlMM1Q=
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Tartifola Inc.
- Reply-to: tartifola@xxxxxxxxx
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