Hi, I have a input file like this
TH2TH2867Y NOW33332106Yo You Baby
TH2TH3867Y NOW33332106No Way Out
TH2TH9867Y NOW33332106Can't find it
TJ2TJ2872N WOW33332017sure thing alas
TJ2TJ3872N WOW33332017the sky rocks
TJ2TJ4872N WOW33332017nothing else matters ... (4 Replies)
I don't necessary have a problem, as I have a solution. It is just that there may be a better solution.
GOAL: Part one: Parse data from a file using the "\" as a delimiter and extracting only the last delimiter. Part two: Parse same file and extract everything but the last delimited item.
... (8 Replies)
Hi, I am searching for a fast awk hack to eliminate from an ICS file events which have been modified at a certain time.
The structure for parsing is the following:
BEGIN:VEVENT
....
LAST-MODIFIED:...some date...
...
END:VEVENT
If the date matches for example LAST-MODIFIED:20110823 the... (2 Replies)
i am parsing te /etc/passwd file and extracting the login and names alone.
But for some entries only login exist but no name. so i dont want to display those:
how i can check non emptiness for login and name in single if statement:
#!/usr/bin/bash
while IFS=: read login a b c name e
do
... (3 Replies)
Hi,
I have a data set as shown below:
09e757fd,22727,2012-03-01,text1,text2,to
3fd0cae7,310,2012-03-01,text3,text4,to
3fd0cae7,310,2012-03-01,text3,text5,to
3fd0cae7,311,2012-03-01,text7,text10,cc
3fd0cae7,311,2012-03-01,text7,text11,to
3fd0cae7,312,2012-03-01,text8,text15,to... (3 Replies)
I've got a number of RHEL systems and I'm trying to use awk to read and format the output of /etc/passwd. But I'd like to display the host name of the system at the beginning of each line of output.
I've got it working without the adding the host name in this script:
#!/bin/bash
... (3 Replies)
Looking to parse a file to remove the duplicates and get only few fields and uniq rows.
input.tx
Loc (TC) ID : ssfad_fs
Serial : PIC002340098
... (8 Replies)
I have a command to print out the top 5 most cpu intensive commands:
ps aux --sort=-%cpu --no-headers
I would like to make a printout containing only the parsed file name.
So, I want to turn this:
$ ps aux --sort=-%cpu --no-headers
user 24883 4.3 1.7 2010436 131440 ? Sl ... (2 Replies)
Discussion started by: bedtime
2 Replies
LEARN ABOUT DEBIAN
locktest
LOCKTEST(1) [FIXME: manual] LOCKTEST(1)NAME
locktest - Find differences in locking between two SMB servers
SYNOPSIS
locktest {//server1/share1} {//server2/share2} [-U user%pass] [-U user%pass] [-s seed] [-o numops] [-a] [-O] [-E] [-Z] [-R range] [-B base]
[-M min]
DESCRIPTION
locktest is a utility for detecting differences in behaviour in locking between SMB servers. It will run a random set of locking operations
against //server1/share1 and then the same random set against //server2/share2 and display the differences in the responses it gets.
This utility is used by the Samba team to find differences in behaviour between Samba and Windows servers.
OPTIONS -U user%pass
Specify the user and password to use when logging on on the shares. This parameter can be specified twice (once for the first server,
once for the second).
-s seed
Seed the random number generator with the specified value.
-o numops
Set the number of operations to perform.
-a
Print the operations that are performed.
-A
Backtrack to find minimal number of operations required to make the response to a certain call differ.
-O
Enable oplocks.
-u
Hide unlock fails.
-E
enable exact error code checking
-Z
enable the zero/zero lock
-R range
set lock range
-B base
set lock base
-M min
set min lock length
-k
Use kerberos
VERSION
This man page is correct for version 4.0 of the Samba suite.
SEE ALSO
Samba
AUTHOR
This utility is part of the Samba[1] suite, which is developed by the global Samba Team[2].
locktest was written by Andrew Tridgell.
This manpage was written by Jelmer Vernooij.
NOTES
1. Samba
http://www.samba.org/
2. Samba Team
http://www.samba.org/samba/team/
[FIXME: source] 04/16/2014 LOCKTEST(1)