09-25-2007
alphanumeric comparision
I have a requirement where I need to check if
Quote:
r1v07l08ab < r1v07l09ak
r1v07l09ab < r1v07l09ac
r1v07l09ab < r1v07l09if
where r1v07l09ab is a software release.
I should always check for this to be true to continue the release deployment because an older release should not be deployed by mistake. I mean only the release greater than the current release should be deployed on the server.
please help.
Thanks in advance.
Thanks,
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file I'm trying to sort such as
fred1
fred2
fred10
fred11
...
when I sort I get
fred1
fred10
fred11
fred2
...
using sort can any give me the syntax to sort this is dict order
e.g., (4 Replies)
Discussion started by: gefa
4 Replies
2. UNIX for Dummies Questions & Answers
Hi :)
I am writing a ksh
I have a string of general format
A12B3456CD78
the string is of variable length
the string always ends with numbers (here it is 78.. it can be any number of digits may be 789 or just 7)
before these ending numbers are alphabets (here it is CD can even be... (3 Replies)
Discussion started by: lakshmikanth
3 Replies
3. UNIX for Advanced & Expert Users
Hi ,
I have a requirement where one column have to be sorted (delimiter is pipe)
for eg:
My input filed is as below
1|FIAT|0010103|23011|01/01/2000|31/12/9999|1.15
2|232|613|1
2|234|743|1
2|234|793|1
2|234|893|1
1|FIAT|0010103|23012|01/01/2000|31/12/9999|1.15
2|230|006|0
2|230|106|0... (9 Replies)
Discussion started by: laxmi131
9 Replies
4. Shell Programming and Scripting
Hi guys, I'm new to this forum and I'm not a UNIX expert. I can't figure out this certain problem i'm having:
I need to sort some words, some of the words are annotations (enclosed within < and >). I need to have them sorted alphabetically with all non-alphanumeric characters up front. For... (2 Replies)
Discussion started by: fed.m.ang
2 Replies
5. Shell Programming and Scripting
Hi!
Could anyone so kindly help me a code to eliminate from a txt file, obtained by collecting and merge several web-page, every word (string) containing non alphabetical, numeric and punctuation character (i.e NON a-zA-Z0-9, underscore and punctuation mark)?
Thanks a lot for the help to... (5 Replies)
Discussion started by: mjomba
5 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I am having a data file which consists of lakhs of records in the below foramt:
"1223323","4341341","discription aadfad"
"3123123","5463456","discription aadfad"
"2343324","6565767","discription asdfads"
"A3423423","7957456","discription aadfad"
"343453B","7957456","discription... (1 Reply)
Discussion started by: abhi_123
1 Replies
7. Shell Programming and Scripting
Hi folks,
I have a value like A12,i could able to change this into integer using typeset as below
typeset -i A12
But, I need your advice to change the values like 1A2 or 12A into integer.
Thanks in advance.
Thanks,
Sathish (3 Replies)
Discussion started by: bsathishmca
3 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have files with a column which has values and ranges, for example
colA colB
ERD1 3456
ERD2
ERD3 4456
I want to have the following output
colA colB colC
ERD1 3456 3456
ERD2 526887 526890
ERD3 4456 4456
Being a newbie to... (2 Replies)
Discussion started by: alpesh
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
I want sort following files in ascending order.
exp_installer_CC4160-file10.dmp
exp_installer_CC4160-file11.dmp
exp_installer_CC4160-file12.dmp
exp_installer_CC4160-file13.dmp... (3 Replies)
Discussion started by: gramakrishna
3 Replies
10. Shell Programming and Scripting
I have a lot of data that need to be sorted alphanumerically. I began using sort -du and it solved almost all my problems. However, when I encountered files with data like this it began to fail:
/vol/close_eng_ice_0888
/vol/open_eng_ice_0890
/vol/open_eng_ice_08923
/vol/open_eng_ice_0893... (6 Replies)
Discussion started by: newbie2010
6 Replies
LEARN ABOUT DEBIAN
systraq
SYSTRAQ(8) [FIXME: manual] SYSTRAQ(8)
NAME
systraq - monitors your system and warns you when files change
SYNOPSIS
systraq
DESCRIPTION
systraq is part of the systraq package, a set of scripts that monitors your system for file changes. It is meant to be run by a cronjob,
not directly.
systraq runs various system commands, to inspect the state of the system: what is it doing now?, what has it been doing recently?, are we
running to hardware limitations?. Furthermore, it runs commands to inspect some files in users' homedirectories, as well as some system
files, for frequently seen flaws. All these commands are maintained in little scripts in /etc/systraq/systraq.d. The first two characters
of the script's name are used for the execution-order. The names of executable files in systraq.d/ (or symlinks to such files) must consist
entirely of upper and lower case letters, digits, underscores, and hyphens. Files which not adhere will be silently ignored. The systraq
script supplies some environment variables to the scripts in systraq.d/, these might be helpful when adding your own scripts. Refer to the
(very small) systraq code itself for the details.
We'll elaborate on some of the shipped systraq.d/ scripts.
AA-shellrc checks for unsafe umask setting in shell startup scripts, or unsafe PATH in these scripts.
AA-debsums runs debsums, to check md5sums as stated in packaging files with the sums of the actual files running the system. (NB: debsums
has support for md5 checksums only, most Debian packages ship md5 checksums only. Therefore, we can't use sha256sum. See also the
discussion on proposed release goal: DEBIAN/md5sums for all packages[1] at the Debian release mailinglist in August 2007 as well as Debian
Bug #268658[2] for some considerations on this.)
AA-localdigest runs sha256sum (or the command set in the ST_SUM environment variable) to check message digests as locally maintained in a
file named in the ST_LDIGESTS environment variable. Typically, this is set to /var/lib/systraq/systraq.sums. If this environment variable
is unset, this check is silenty skipped.
Of course, you can add your own scripts. If you name them AA-local, they'll never get overwritten by any version of this software. If you
don't like one of these scripts, you can disable it by removing the symlink, and creating a new symlink with the same name pointing to
/bin/true.
SEE ALSO
The systraq Manual, installed in /usr/share/doc/systraq.
VERSION
$Id: systraq.dbx 374 2008-12-14 08:47:32Z joostvb $
AUTHORS
Joost van Baal <joostvb-systraq-20041015@mdcc.cx>
Author.
Laurent Fousse <laurent@komite.net>
Author.
COPYRIGHT
Copyright (C) 2001-2008 Joost van Baal
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any
later version published by the Free Software Foundation.
This document is based upon a manual page written by Laurent Fousse for the Debian project.
NOTES
1.
proposed release goal: DEBIAN/md5sums for all packages
http://lists.debian.org/debian-release/2007/08/threads.html#00086
2. Debian Bug #268658
http://bugs.debian.org/268658
[FIXME: source] 17 december 2008 SYSTRAQ(8)