I have a file:
Fred
Fred
Fred
Jim
Fred
Jim
Jim
If sort is executed on the listed file, shouldn't the output be?:
Fred
Fred
Fred
Fred
Jim
Jim
Jim (3 Replies)
Using the last, uniq, sort and cut commands, determine how many times the different users have logged in.
I know how to use the last command and cut command...
i came up with last | cut -f1 -d" " | uniq
i dont know if this is right, can someone please help me... thanks (1 Reply)
Does anyone have a quick and dirty way of performing a sort and uniq in perl?
How an array with data like:
this is bkupArr BOLADVICE_VN
this is bkupArr MLT6800PROD2A
this is bkupArr MLT6800PROD2A
this is bkupArr BOLADVICE_VN_7YR
this is bkupArr MLT6800PROD2A
I want to sort it... (4 Replies)
Input File is :
-------------
25060008,0040,03,
25136437,0030,03,
25069457,0040,02,
80303438,0014,03,1st
80321837,0009,03,1st
80321977,0009,03,1st
80341345,0007,03,1st
84176527,0047,03,1st
84176527,0047,03,
20000735,0018,03,1st
25060008,0040,03,
I am using the following in the script... (5 Replies)
Hi All,
I have a text file with the format shown below. Some of the records are duplicated with the only exception being date (Field 15). I want to compare all duplicate records using subscriber number (field 7) and keep only those records with greater date.
... (1 Reply)
I have a flatfile A.txt
2012/12/04 14:06:07 |trees|Boards 2, 3|denver|mekong|mekong12
2012/12/04 17:07:22 |trees|Boards 2, 3|denver|mekong|mekong12
2012/12/04 17:13:27 |trees|Boards 2, 3|denver|mekong|mekong12
2012/12/04 14:07:39 |rain|Boards 1|tampa|merced|merced11
How do i sort and get... (3 Replies)
Hi again,
I have files with the following contents
datetime,ip1,port1,ip2,port2,number
How would I find out how many times ip1 field shows up a particular file? Then how would I find out how many time ip1 and port 2 shows up?
Please mind the file may contain 100k lines. (8 Replies)
Hi !
I am trying to remove doubbled entrys in a textfile only between delimiters.
Like that example but i dont know how to do that with sort or similar.
input:
{
aaa
aaa
}
{
aaa
aaa
}
output:
{
aaa
}
{ (8 Replies)
Hello all,
Need to pick your brains,
I have a 10Gb file where each row is a name, I am expecting about 50 names in total. So there are a lot of repetitions in clusters.
So I want to do a
sort -u file
Will it be considerably faster or slower to use a uniq before piping it to sort... (3 Replies)
Discussion started by: senhia83
3 Replies
LEARN ABOUT OSX
perlivp5.16
PERLIVP(1) Perl Programmers Reference Guide PERLIVP(1)NAME
perlivp - Perl Installation Verification Procedure
SYNOPSIS
perlivp [-p] [-v] [-h]
DESCRIPTION
The perlivp program is set up at Perl source code build time to test the Perl version it was built under. It can be used after running:
make install
(or your platform's equivalent procedure) to verify that perl and its libraries have been installed correctly. A correct installation is
verified by output that looks like:
ok 1
ok 2
etc.
OPTIONS -h help
Prints out a brief help message.
-p print preface
Gives a description of each test prior to performing it.
-v verbose
Gives more detailed information about each test, after it has been performed. Note that any failed tests ought to print out some
extra information whether or not -v is thrown.
DIAGNOSTICS
o print "# Perl binary '$perlpath' does not appear executable.
";
Likely to occur for a perl binary that was not properly installed. Correct by conducting a proper installation.
o print "# Perl version '$]' installed, expected $ivp_VERSION.
";
Likely to occur for a perl that was not properly installed. Correct by conducting a proper installation.
o print "# Perl @INC directory '$_' does not appear to exist.
";
Likely to occur for a perl library tree that was not properly installed. Correct by conducting a proper installation.
o print "# Needed module '$_' does not appear to be properly installed.
";
One of the two modules that is used by perlivp was not present in the installation. This is a serious error since it adversely affects
perlivp's ability to function. You may be able to correct this by performing a proper perl installation.
o print "# Required module '$_' does not appear to be properly installed.
";
An attempt to "eval "require $module"" failed, even though the list of extensions indicated that it should succeed. Correct by
conducting a proper installation.
o print "# Unnecessary module 'bLuRfle' appears to be installed.
";
This test not coming out ok could indicate that you have in fact installed a bLuRfle.pm module or that the "eval " require
"$module_name.pm"; "" test may give misleading results with your installation of perl. If yours is the latter case then please let
the author know.
o print "# file",+($#missing == 0) ? '' : 's'," missing from installation:
";
One or more files turned up missing according to a run of "ExtUtils::Installed -> validate()" over your installation. Correct by
conducting a proper installation.
For further information on how to conduct a proper installation consult the INSTALL file that comes with the perl source and the README
file for your platform.
AUTHOR
Peter Prymmer
perl v5.16.2 2013-08-25 PERLIVP(1)