I want to group by based on user name, and the output need to be as below. Not necessary the username to be in order, but group by has to be done based on the username value.
Please help.
Thanks
---------- Post updated at 03:54 PM ---------- Previous update was at 03:52 PM ----------
typo error, pasting the correct output
Last edited by Scrutinizer; 05-03-2014 at 03:24 AM..
Reason: CODE tags
Hello,
Could some expert soul please help me with this? I have following file format -
task time
abc 5
xyz 4
abc 5
xyz 3
ddd 10
ddd 2
I need to generate output as -
task ... (5 Replies)
Hello,
I am having 1800 files in a directory with a specified format, like
amms_850o_prod.000003uNy
amms_850o_prod.000003u8x
amms_850o_prod.000003taP
amms_850o_prod.000003tKy
amms_850o_prod.000003si4
amms_850o_prod.000003sTP
amms_850o_prod.000003sBg
amms_850o_prod.000003rvx... (12 Replies)
not sure if it's called "group by" , but what i'm going to do is like this:
i have a file below:
192.168.1.10
192.168.1.10
192.168.1.10
192.168.1.11
192.168.1.15
192.168.1.15
192.168.1.20
192.168.1.22
then i hope to get the result like this:
192.168.1.10 : 3
192.168.1.11 : 1... (6 Replies)
Hi,
When I include a user to the secondary group "sys" GID=3 in Solaris 9 OS I'm not able to login. I get these error. The user home directory and the shell exists. Is this because of any security hardening.
# su - agent
No directory!
# su agent
su: No shell
# grep taddm /etc/passwd... (14 Replies)
Hi,
I have a following file:
role.IMPACT_USER.user=admin
role.IMPACT_USER.user=dd12345
role.IMPACT_USER.user=ss76767
#role.IMPACT_USER.user=root
#role.IMPACT_USER.group=System
role.IMPACT_USER.group=ImpactUser
#Description: Allow users to login in to Impact, start and stop service... (5 Replies)
I am having some problems when writing shell as follows:
shell runs but returns no results
echo "enter group name: "
dir="/home"
read group
if id -g $group > /dev/null 2>&1
then
echo "group exits"
else
echo... (6 Replies)
Hi All,
I want to display the distinct values in the file and for each distinct value how may occurance or there.
Test data:
test1.dat
20121105
20121105
20121105
20121105
20121106
20121106
20121106
20121105
I need to display the output like
Output (2 Replies)
Hi,
I want to know if there is any simple approach to SUM a field based on group by of different fields
for e.g.
file1.txt contains below data
20160622|XXX1||50.00||50.00|MONEY|Plan1|
20160622|XXX1||100.00||100.00|MONEY|Plan1|
20160623|XXX1||25.00||25.00|MONEY|Plan1|... (3 Replies)
Hello All,
I saw this problem on one of the forum and solved it using group-by in oracle sql, though I am a bit curious to implement it using shell script :
There is a file having number of operations :
Opeation,Time-Taken
operation1,83621
operation2,72321
operation3,13288... (11 Replies)
Discussion started by: mukulverma2408
11 Replies
LEARN ABOUT DEBIAN
telnetlogin
TELNETLOGIN(8) BSD System Manager's Manual TELNETLOGIN(8)NAME
telnetlogin -- login wrapper for telnetd
SYNOPSIS
telnetlogin [-h host] [-p] [-f username] [username]
DESCRIPTION
telnetlogin is a setuid wrapper that runs login(1). It is meant to be invoked by telnetd(8); the idea is to remove the necessity of running
telnetd as root.
telnetlogin should be installed mode 4750, user root, group telnetd. Then, telnetd may be run from /etc/inetd.conf as user ``nobody'', group
``telnetd'', and with the option -L path-to-telnetlogin.
telnetlogin accepts only the subset of options to login(1) shown above, in the order listed. This is the order telnetd 8 normally provides
them in. telnetlogin also does sanity checks on the environment variables TERM, and REMOTEHOST. It also insists that the standard input,
output, and error streams are open on a terminal, and that it is the process group leader of the foreground process of that terminal. After
checking all of these conditions, checking the values of the above environment variables for reasonable values, resetting signal handlers,
and so forth, it execs login.
SEE ALSO login(1), inetd.conf(5), inetd(8), telnetd(8)RESTRICTIONS
THIS IS PRESENTLY EXPERIMENTAL CODE; USE WITH CAUTION.
HISTORY
telnetlogin was written during the development of NetKit 0.17.
Linux NetKit (0.17) April 12, 2000 Linux NetKit (0.17)