10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
Currently we have nmon running on our Red hat Linux server.
The ouput file is now coming with the naming convention as "servername_160321_0010.nmon".
The output file naming convention has to be changed as "nmon_servername_daily_2016.03.21_00.00.00"
How can we do it ? Any suggestions... (10 Replies)
Discussion started by: newtoaixos
10 Replies
2. Red Hat
Hi,
I am installing a new RHEL 5 application server containing JBOSS along with other specific 3rd party applications. I know that this usually gets installed in /opt but I was thinking of installing these on a new separtate lv / file system instead.
i.e.
/<my_new_FS_name>
rather than... (6 Replies)
Discussion started by: Duffs22
6 Replies
3. UNIX for Dummies Questions & Answers
I need this script to check if the first 3 letters of the file name are capital.
find . -type f -name *001.dpx -exec find {} ! -name ???_???_???_v??.??????.dpx \; >> ./Bad_FileNames.txt
Currently it finds the first frame of the sequence and tests that against the naming convention. It works... (6 Replies)
Discussion started by: scribling
6 Replies
4. Fedora
Hi Guys,
Where would i find the list of distribution codes.
For example.
samba-32bit-3.4.2 -1.1.3.1.x8664.rpm
In above rpm file it is indicated that its release is 1.1.3.1 .
The rpm is meant to be run for opensuse.
Where would i get the linking of release number and distribution.
... (2 Replies)
Discussion started by: pinga123
2 Replies
5. Shell Programming and Scripting
Hi ,
i have below files in wrk folder. file names are
1102090001.CLT
1102090003.CLT
1102100019.CLT
1102100020.CLT
the above files are concatenate to one file but that concatenate file name must be same naming convention. (date +%y%m%d)and 0001 count.
example : concatenate file... (9 Replies)
Discussion started by: krbala1985
9 Replies
6. Shell Programming and Scripting
i have a file staff.txt with contents
tom|25|New York
sims|40|London
neyo|18|Moscow
i want to label the column at the top, my output should be
Names|age|city of birth
tom|25|New York
sims|40|London
neyo|18|Moscow (4 Replies)
Discussion started by: blackzinga80
4 Replies
7. Hardware
For the selection of motherboards, is there any naming convention in the type numbers? There is usually a brand name and sometimes a version name, but more essential details like form factor, SATA speed and maximum amount of RAM is never given. Is there a reason for that? Is there any background... (2 Replies)
Discussion started by: figaro
2 Replies
8. Shell Programming and Scripting
OK, so a quick background:
I am a sys admin for a 1:1 deployment in academia with Macbooks, totaling around 6,000. Macbooks get shifted around from building to building and go to and from the repair center if hardware repair is needed. Often, some machines will get moved from one building to... (8 Replies)
Discussion started by: tlarkin
8 Replies
9. UNIX for Advanced & Expert Users
Hello,
I'm wondering what is the naming conventions for *.so shared libraries in linux. For example, a library in /lib, say libcrypt-2.7.so has a symbolic link called libcrypt.so.1 pointing to it, yet libncursesw.so.5.6 has a symbolic link called libncursesw.so.5 pointing to it. What is the... (2 Replies)
Discussion started by: neked
2 Replies
10. UNIX for Advanced & Expert Users
Hello all,
How does the Solaris identifies the controller subscript ? ( like c0txdxs0 or c1txdxsx ?? )
I have a unix box ( Ultra 30) running with 2.5.1.
When I connected an external hard disk to the on-board scsi port, it got identified as c0t1dxsx...
(... (1 Reply)
Discussion started by: shibz
1 Replies
Linux::KernelSort(3pm) User Contributed Perl Documentation Linux::KernelSort(3pm)
NAME
Linux::KernelSort - Perl extension for sorting and comparing Linux kernel versions. The expected kernel version naming convention is the
same naming convetion demonstrated by http://www.kernel.org. NOTE: Currently, only the 2.6.x series of kernels (including -rc's, -git's,
and -mm's) are properly evaluated.
SYNOPSIS
use Linux::KernelSort;
my $kernel = new Linux::KernelSort;
my $ret;
my $version1 = "2.6.19";
my $version2 = "2.6.19-rc2-git7";
$ret = $kernel->compare($version1, $version2);
if ($ret == 0) {
print "$version1 and $version2 are the same version
";
} elsif ($ret > 0) {
print "$version1 is newer than $version2
";
} else {
print "$version1 is older than $version2
";
}
my @kernel_list = ( '2.6.15',
'2.6.18',
'2.6.18-rc2',
'2.6.18-rc2-git2',
'2.6.18-mm1',
'2.6.18-rc2-mm1' );
my @sorted_list = $kernel->sort(@kernel_list);
print join( ', ', @sorted_list );
DESCRIPTION
Linux::KernelSort is intended to sort a list of kernel versions into ascending order. It also provides the capability to compare two ker-
nel versions and determine if one version is newer, older, or the same as the other version.
FUNCTIONS
version_check() Purpose: Verify the version is valid and follows the proper naming convention demonstrated by http://www.kernel.org Input:
A string containing the kernel version Return: 0 if version is valid 1 if version is invalid
rank()
Purpose: Generate a ranking for a given kernel version
Input: A string containing the kernel version which
follows the proper naming convention demonstrated
by http://www.kernel.org
Return: Kernel ranking
compare()
Purpose: Compare two kernel versions
Input: Strings ($kernel1, $kernel2) each containing a
kernel version which follows the proper naming
conventaion demonstrated by http://www.kernel.org
Return -1 if $kernel1 < $kernel2 (ie $kernel1 is older than $kernel2)
0 if $kernel1 == $kernel2 (ie $kernel1 is the same version as $kernel2)
1 if $kernel1 > $kernel2 (ie $kernel1 is newer than $kernel2)
sort()
Purpose: Sort a list of kernel versions in ascending order.
Uses shell sort algorithm.
Input: Array of strings containing kernel versions which
follows the proper naming convention demonstrated
by http://www.kernel.org
Return: Sorted array
AUTHOR
Leann Ogasawara <lt>ogasawara@osdl.org<gt>
COPYRIGHT AND LICENSE
Linux-KernelSort is Copyright (c) 2006, by Leann Ogasawara. All rights reserved. You may distribute this code under the terms of either
the GNU General Public License or the Artistic License, as specified in the Perl README file.
perl v5.8.8 2008-02-23 Linux::KernelSort(3pm)