11-11-2011
I don't understand number 2:
Quote:
When condition1 is satisfied, I need to count and separate rows in FILE:1 belonging to group1 or group 2.
Why 2 groups? How can we determine which group the records belong to?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
I have a file in UNIX with duplicates, I have use sort command as below to delete duplicates based on the KEY positions/columns but now I do not want to "delete" duplicates but summarize by KEY numeric columns.
REALLY NEED HELP... URGENT!!!
Thanks in advance.
sort -k 1.1,1.92... (6 Replies)
Discussion started by: shotronix
6 Replies
2. Shell Programming and Scripting
I have this huge log file on my linux box that gets generated every day. I'm able to extract the information I need; however I really would like it to be broken down every 10mins.
Log File Snippet
01:23:45 MARYHADA Maryhadalittle.lamb(): fleece as white as snow 1394 for and everywhere that... (8 Replies)
Discussion started by: ravzter
8 Replies
3. Shell Programming and Scripting
Please help me with commands for the following file operations
File description
5 columns in total , sorted by column 1 value
First formatting,
1) Records with duplicate column 1 values are to be ignored. Just consider the first occurrence of such a record.
2) Records with (column 2 -... (3 Replies)
Discussion started by: newbie83
3 Replies
4. Shell Programming and Scripting
I have a file like:
I would like to find lines lines with duplicate values in column 1, and retain only one based on two conditions: 1) keep line with highest value in column 3, 2) if column 3 values are equal, retain the line with the highest value in column 4.
Desired output:
I was able to... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
5. Shell Programming and Scripting
Hi,
I hope somebody can help me with this problem, since I would like to solve this problem using awk, but im not experienced enough with this.
I have two files which i want to match, and output the matching column name and row number.
One file contains 4 columns like this:
FILE1:
a ... (6 Replies)
Discussion started by: Jenna.bos
6 Replies
6. Shell Programming and Scripting
deleted
deleted (1 Reply)
Discussion started by: ust3
1 Replies
7. Shell Programming and Scripting
At the top of the XYZ file, I need to insert the ABC data value of column 2 only when ABC column 1 matches the prefix XYZ file name (not the ".txt"). Is there an awk solution for this?
ABC Data
0101 0.54
0102 0.48
0103 1.63
XYZ File Name
0101.txt
0102.txt
0103.txt
... (7 Replies)
Discussion started by: ncwxpanther
7 Replies
8. Shell Programming and Scripting
Good evening
I have the below requirements, as I am not an experts in Linux/Unix and am looking for your ideas how I can do this.
I have file called file1 and file2.
I need to get the second column which is text1_random_alphabets and find that in file 2, if it's exists then print the 3rd... (4 Replies)
Discussion started by: mychbears
4 Replies
9. Shell Programming and Scripting
I have huge log file that taken every minute
and I need the total at 5min intervals.
Sample log:
#timestamp(yyyymmddhhmm);result;transaction
201703280000;120;6
201703280001;120;3
201703280002;105;3
201703280003;105;5
201703280004;105;5
201703280005;105;4
201703280006;120;2... (2 Replies)
Discussion started by: wwolfking
2 Replies
10. Shell Programming and Scripting
Hi,
I have 2 csv files.
a.csv
HUAWEI,20LMG011_DEKET_1296_RTN-980_IDU-1-11-ISV3-1(to LAMONGAN_M),East_Java,20LMG011_DEKET_1296_RTN-980_IDU-1,20LMG011,20LMG
027_1287_LAMONGAN_RTN980_IDU1,20LMG027,1+1(HSB),195.675,20LMG011-20LMG027,99.9995,202.6952012... (7 Replies)
Discussion started by: tententen
7 Replies
LEARN ABOUT HPUX
listusers
listusers(1) General Commands Manual listusers(1)
NAME
listusers - display user login data
SYNOPSIS
groups] logins]
DESCRIPTION
The command displays data concerning user logins. The output shows the user login and the comment field value (for example, user name,
location). The default displays data about all user logins.
Options
The command supports the following options:
Display only users who have
groups, as their primary group. Use with the option.
Display only users who have
groups, as their supplementary group. Use with the option.
Display all users belonging to
groups, sorted by login. A comma separated list specifies multiple groups.
Display the requested
logins. A comma separated list specifies multiple logins.
Display only users belonging to the specified repository,
either for NIS or users.
A user login has a UID of 100 or greater.
When the and options are combined, a user login is only displayed once, even though the login may belong to multiple specified groups.
EXAMPLES
List all user logins.
List all user logins in the group and the users removing all duplicates.
List all users who have as their primary group.
List all users who have as their supplementary group.
List only local user logins.
List only NIS user logins.
FILES
SEE ALSO
passwd(1), logins(1M), group(4), passwd(4).
STANDARDS CONFORMANCE
listusers(1)