Sponsored Content
Full Discussion: Data mining a text file.
Top Forums Shell Programming and Scripting Data mining a text file. Post 302205121 by joeyg on Friday 13th of June 2008 02:13:01 PM
Old 06-13-2008
Hammer & Screwdriver perhaps one-line command?

> cat uid_data | cut -d" " -f3-4 | sort | uniq -c
      2 adm 4
      2 bin 2
      2 daemon 1
      2 gdm 50
      2 listen 37
      2 lp 71
      1 noaccess 60002
      1 noaccess 60003
      2 nobody 60001
      2 nuucp 9
      2 root 0
      2 smmsp 25
      2 sys 3
      2 uucp 5
      2 webservd 80


4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting data from text file based on configuration set in config file

Hi , a:) i have configuration file with pattren <Range start no>,<Range end no>,<type of records to be extracted from the data file>,<name of the file to store output> eg: myfile.confg 9899000000,9899999999,DATA,b.dat 9899000000,9899999999,SMS,a.dat b:) Stucture of my data file is... (3 Replies)
Discussion started by: suparnbector
3 Replies

2. Shell Programming and Scripting

Find and replace data in text file with data in same file

OK I will do my best to explain what I need help with. I am trying to format an ldif file so I can import it into Oracle oid. I need the file to look like this example. Keep in mind there are 3000 of these in the file. changetype: modify replace: userpassword dn:... (0 Replies)
Discussion started by: timothyha22
0 Replies

3. Shell Programming and Scripting

Filter a .kml file (xml) with data set from text file

I have a .kml file. So I want filter the .kml to get only the tags that have this numeric codes that they are in a text file 11951 11952 74014 11964 11965 11969 11970 11971 11972 60149 74018 74023 86378 11976 11980 11983 11984 11987 (5 Replies)
Discussion started by: pcoj33
5 Replies

4. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
gdm-restart(1m) 						   User Commands						   gdm-restart(1m)

gdm-restart, gdm-safe-restart, gdm-stop - stop or restart GDM SYNOPSIS
gdm-restart gdm-safe-restart gdm-stop DESCRIPTION
gdm-restart stops and restarts GDM by sending a HUP signal to the GDM daemon. This command immediately terminates all sessions and logs out users currently logged in with GDM. gdm-safe-restart stops and restarts GDM by sending a USR1 signal to the GDM daemon. GDM is restarted as soon as all users log out. gdm-stop stops GDM by sending a TERM signal to the GDM daemon. FILES
The following files are used by this application: /usr/bin/gdm-restart Executable to stop and restart GDM /usr/bin/gdm-safe-restarExecutable to stop and restart GDM safely /usr/bin/stop Executable to stop GDM ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-display-mgr | +-----------------------------+-----------------------------+ |Interface stability |External | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. gdm(1), gdmXnestchooser(1), gdmflexiserver(1), gdmphotosetup(1), gdmsetup(1), gdmthemetester(1), gdmconfig(1m) NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2004. SunOS 5.10 1 Sep 2004 gdm-restart(1m)

Featured Tech Videos

All times are GMT -4. The time now is 11:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy