02-03-2005
calculating a check digit
first post... I work in a system called RTCIS (real time control & information system) that is a warehouse management program. The user interface runs on UNIX. I only have manager prompt command line access so I can't do much other than look around at some SQL tables and stuff. Here's my question... At the command line I can calculate the value of a check digit for a string of numbers (eg: a barcode number) using the unix 'chkd' command. What is the formula behind the calculation? I want to use it in an Access database to validate UPC codes entered in a form.
Thanks!
jim9418
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I found below script to check whether the variable is a digit in ksh.
############################
#!/bin/ksh
REPLY="3f"
if ]*\)'` != ${REPLY} && "${REPLY}" != "0" ]]
then
print "is digit\n"
else
print "not digit\n"
fi
############################
Although it works fine, but... (6 Replies)
Discussion started by: sleepy_11
6 Replies
2. Shell Programming and Scripting
Folks,
Is there a simple way to replace one digit by two digit using sed.
Example,
mydigit1918_2006_8_8_lag1.csv should be
mydigit1918_2006_08_08_lag01.csv.
I tried this way, but doesn't work.
echo mydigit1989_2006_8_8_lag1.csv|sed 's/]/0]/'
Thank you, (5 Replies)
Discussion started by: Jae
5 Replies
3. Shell Programming and Scripting
Hi All,
How can i convert a number 24 to 0024
In the same way how can i convert 123 to 0123?
All this has to be done inside a script
Thanks in advance
JS (6 Replies)
Discussion started by: jisha
6 Replies
4. Shell Programming and Scripting
I have a var storing date
var=`date`
Now the date is returned as
Mon Feb 2 00:25:48 PST 2009
Is there any way to check the date field alone ("2" in above case) and if its a single digit then add a prefix 0 to it and store the result in same variable "var"
My intention in above case is... (3 Replies)
Discussion started by: villain41
3 Replies
5. Programming
Hi,
Does anybody know what the below means:
I have a program containing the following and am trying to understand what it does:
temp=$(echo $count2 | tr -cd )
Cheers
Paul
Please start using code tags (2 Replies)
Discussion started by: runnerpaul
2 Replies
6. Shell Programming and Scripting
Hi every body!
I wrote script on Fedora (bash shell) to check whether a tring enter from user console is start with a uppercase/lowercase letter or a digit. But with this script i have some problem when I enter from character from 'b' to 'z' --> result is uppercase. This code look like ok but i... (9 Replies)
Discussion started by: nguyendu0102
9 Replies
7. Shell Programming and Scripting
Hi all,
Need your help here. I have a file with thousand of lines, as shown in example below
KDKJAA 98324
OIDSAJ 324
KJAJAK 100
KJKAJK 89
JOIJOI 21
JDKDJL 12
UOIUOD 10
UDUYDS 8
UIUHKK 6
I would like to grep using... (5 Replies)
Discussion started by: masterpiece
5 Replies
8. Shell Programming and Scripting
Have columns with digits and strings like:
input.txt
3840 3841 3842 Dav Thun Tax
Cahn 146; Dav.
3855 3853 3861 3862 Dav Thun Tax
2780 Karl VI.,
3873 3872 3872 Dav Thun Tax
3894 3893 3897 3899 Dav Thun Tax
403; Thun 282.
3958 3959 3960 Dav Thun Tax
3972 3972 3972 3975 Dav Thun Tax... (8 Replies)
Discussion started by: sdf
8 Replies
9. Shell Programming and Scripting
Hi Guys.
My Input:
ABCD 12 00 KL
ABCD 12 08 DL
ABCD 12 10 KK
ABCD 12 04 LL
ABCD 13 00 LP
ABCD 13 1O LS
Output:
ABCD 12 0 KL
ABCD 12 8 DL
ABCD 12 10 KK
ABCD 12 4 LL
ABCD 13 0 LP (2 Replies)
Discussion started by: pareshkp
2 Replies
10. Shell Programming and Scripting
Hi All,
I have the following time stamp data in 2 columns
Date TimeStamp(also with milliseconds)
05/23/2012 08:30:11.250
05/23/2012 08:30:15.500
05/23/2012 08:31.15.500
.
.
etc
From this data I need the following output.
0.00( row1-row1 in seconds)
04.25( row2-row1 in... (5 Replies)
Discussion started by: ks_reddy
5 Replies
LEARN ABOUT LINUX
update-manager
UPDATE-MANAGER(8) System Manager's Manual UPDATE-MANAGER(8)
NAME
update-manager - graphical management of software packages updates
SYNOPSIS
update-manager [options]
DESCRIPTION
Update-manager is a frontend for the apt package management system. It allows you to perform some actions of the command line tool apt-get
in a graphical environment.
Update-manager is especially designed for upgrading your system, or migrating your system towards a more recent version.
OPTIONS
For a daily use, you may launch update-manager with no options so that your system is just upgraded.
For migration purposes, update-manager accepts some options:
-h, --help
Show a similar help message
-c, --check-dist-upgrades
Check if a new distribution release is available
-d, --devel-release
Check if upgrading to the latest devel release is possible
-p, --proposed
Try to run a dist-upgrade
--dist-upgrade
Try to run a dist-upgrade
ACTIONS PERFORMED DURING AN UPGRADE TO A NEW VERSION
* eventually reinstall the package ubuntu-desktop
* switch to an updated sources.list entries
* adds the default user to new groups if needed
SEE ALSO
Synaptic, sources.list, aptitude
AUTHORS
update-manager was developed by Michael Vogt <mvo@ubuntu.com> with various contributors (see AUTHORS file)
This manual page was originally written by Bruno Mangin and Michael Vogt <mvo@ubuntu.com>.
COPYRIGHT
Copyright (C) 2006-2007 Canonical
There is NO warranty. You may redistribute this software under the terms of the GNU General Public License. For more information about
these matters, see the files named COPYING.
August 2, 2007 UPDATE-MANAGER(8)