Sponsored Content
Full Discussion: Last two logins script
Top Forums Shell Programming and Scripting Last two logins script Post 302379213 by dennis.jacob on Thursday 10th of December 2009 12:20:16 AM
Old 12-10-2009
Try:

awk '{ A[$1]=_p"\n"$0;_p=$0; } END { for ( e in A) print A[e] }' file
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help with logins

Could someone please tell me what I would have to do so I can dial in to Solaris through a modem and login? Thanks in advance. Jomar (2 Replies)
Discussion started by: crispyco
2 Replies

2. AIX

Limit logins to 1

Trying to limit 1 login per account... Setup: We have 2 auth logins, one to the AIX (telnet)then into a distribution mgmt software, the users do not have a shell to log into on the AIX itself, so placing a script such as: active=`who | awk '{printf",%s,\n",$1}' | grep ,$LOGNAME, | wc -l` ... (0 Replies)
Discussion started by: pheusion
0 Replies

3. Shell Programming and Scripting

Another question for tracking failed logins via script

Hello Experts, I have this initial shell script that tracks failed login attempts: #!/bin/bash #Fetch failed user logins to file failed-logins.txt grep -i failed /var/log/secure | awk '{ print $1, $2" ", $3" ", $9" ", $11 }' > failed-logins.txt #Splitting the failed-logins in... (10 Replies)
Discussion started by: linuxgeek
10 Replies

4. Shell Programming and Scripting

Help with shell script which logins to hosts

By a shell script When I am logging into hosts one by one with ssh. I am getting below message. Pseudo-terminal will not be allocated because stdin is not a terminal. stty: : Invalid argument stty: : Invalid argument Can you please suggest what should I do to stop this? ... (10 Replies)
Discussion started by: KuldeepSinghTCS
10 Replies

5. Shell Programming and Scripting

Run a script in two differnt logins

Hi, I need to run a script in two different login's in the same server, but it is running only in one login, i have used the corresponding PATH for each login, but still it says " not authorized to put msg in queue". (2 Replies)
Discussion started by: savithavijay
2 Replies

6. AIX

AIX ftp/sftp script monitor to failed logins

Hi All, Any idea on how to write a script on AIX 5.3 to monitor ftp or sftp login failed. Thanks and more power, Itik (2 Replies)
Discussion started by: itik
2 Replies

7. Solaris

User Logins

Is the below logins are needed in the machine..... nuucp , uucp ,smmsp , svctag , listen , webservd , ip ( We are not using printers), Can you help in these? Regards, kumar (3 Replies)
Discussion started by: rajeshkumarvg
3 Replies

8. Shell Programming and Scripting

Emergency...!!! Shell Scripting.... How to start a same script in 3 different logins?

Hi, I've a shell script. If I trigger the script it takes one day to complete the execution. I've to start the same script in 3 different logins of Unix machine simultaneously. Do you have any idea how can I make it? Please suggest.:( Thank you.. (1 Reply)
Discussion started by: testin
1 Replies

9. Shell Programming and Scripting

Shell Scripting.... How to start a same script in 3 different logins?

Hi, I’ve a shell script. If I trigger the script it takes one day to complete the execution. I’ve to start the same script in 3 different logins of Unix machine simultaneously. Do you have any idea how can I make it? Please suggest. Thank you.. Stop making the font size smaller than... (3 Replies)
Discussion started by: testin
3 Replies

10. Shell Programming and Scripting

Script that outputs user logins sorted by duration

Hello, I want to write a script that takes a username as input and outputs the user's logins sorted by duration. Also I want to exclude the "still logged in" entries. I use the "last" command but Im having problems sorting the entries based on the duration. Can you help me? Thanks a lot =) (4 Replies)
Discussion started by: ddante
4 Replies
gdcmtar(1)							       GDCM								gdcmtar(1)

NAME
gdcmtar - Concatenate/Extract DICOM files. SYNOPSIS
gdcmtar [options] file-in file-out DESCRIPTION
The gdcmtar is a command line tool used to tar/untar multi-frames images (including SIEMENS MOSAIC file) PARAMETERS
file-in DICOM input filename file-out DICOM output filename options options --enhance enhance (default) -U --unenhance unenhance -M --mosaic Split SIEMENS Mosaic image into multiple frames. -p --pattern Specify trailing file pattern. --root-uid Root UID. general options -h --help print this help text and exit -v --version print version information and exit -V --verbose verbose mode (warning+error). -W --warning warning mode, print warning information -E --error error mode, print error information -D --debug debug mode, print debug information environment variable GDCM_ROOT_UID Root UID Typical usage SIEMENS Mosaic $ gdcminfo MR-sonata-3D-as-Tile.dcm MediaStorage is 1.2.840.10008.5.1.4.1.1.4 [MR Image Storage] TransferSyntax is 1.2.840.10008.1.2.1 [Explicit VR Little Endian] NumberOfDimensions: 2 Dimensions: (384,384,1) ... $ gdcmtar --mosaic -i MR-sonata-3D-as-Tile.dcm -o mosaic --pattern %03d.dcm Will output: -rw-r--r-- 1 mathieu mathieu 72882 2009-08-10 11:14 mosaic000.dcm -rw-r--r-- 1 mathieu mathieu 72886 2009-08-10 11:14 mosaic001.dcm -rw-r--r-- 1 mathieu mathieu 72886 2009-08-10 11:14 mosaic002.dcm -rw-r--r-- 1 mathieu mathieu 72886 2009-08-10 11:14 mosaic003.dcm -rw-r--r-- 1 mathieu mathieu 72886 2009-08-10 11:14 mosaic004.dcm -rw-r--r-- 1 mathieu mathieu 72886 2009-08-10 11:14 mosaic005.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic006.dcm -rw-r--r-- 1 mathieu mathieu 72882 2009-08-10 11:14 mosaic007.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic008.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic009.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic010.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic011.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic012.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic013.dcm -rw-r--r-- 1 mathieu mathieu 72882 2009-08-10 11:14 mosaic014.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic015.dcm -rw-r--r-- 1 mathieu mathieu 72882 2009-08-10 11:14 mosaic016.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic017.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic018.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic019.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic020.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic021.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic022.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic023.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic024.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic025.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic026.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic027.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic028.dcm -rw-r--r-- 1 mathieu mathieu 72884 2009-08-10 11:14 mosaic029.dcm -rw-r--r-- 1 mathieu mathieu 72882 2009-08-10 11:14 mosaic030.dcm $ gdcminfo mosaic000.dcm MediaStorage is 1.2.840.10008.5.1.4.1.1.4 [MR Image Storage] TransferSyntax is 1.2.840.10008.1.2.1 [Explicit VR Little Endian] NumberOfDimensions: 2 Dimensions: (64,64,1) ... SEE ALSO
gdcmdump(1), gdcmraw(1), gdcminfo(1) COPYRIGHT
Copyright (c) 2006-2011 Mathieu Malaterre Version 2.2.0 Tue Feb 5 2013 gdcmtar(1)
All times are GMT -4. The time now is 04:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy