10-12-2011
@radoulov,
That is an *awesome* explanation.
I am so grateful for the code and the lesson.
Thank you!
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have a log file which is generated by a script which looks like this:
userid: 7
starttime: Sat May 24 23:24:13 CEST 2008
endtime: Sat May 24 23:26:57 CEST 2008
total time spent: 2.73072 minutes / 163.843 seconds
date: Sat Jun 7 16:09:03 CEST 2008
userid: 8
starttime: Sun May... (7 Replies)
Discussion started by: dejavu88
7 Replies
2. Shell Programming and Scripting
Hi,
I would like to print a block of text between 2 regular expression using Sed,
This can be achieved by using the command as shown below, however my problem is the same block of text is repeated twice. I would like to eliminate the duplicate block of text.
For Example
If my file... (5 Replies)
Discussion started by: dkumar91
5 Replies
3. Shell Programming and Scripting
Hi
I have been struggling with a script for removing duplicate messages from a shared mailbox.
I would like to search for duplicate messages based on the “Message-ID” string within the messages files.
I have managed to find the duplicate “Message-ID” strings and (if I would like) delete... (1 Reply)
Discussion started by: spangberg
1 Replies
4. Shell Programming and Scripting
I am a beginner in Unix. Though have been asked to write a script to filter(remove duplicates) data from a .dat file. File is very huge containig billions of records.
contents of file looks like
30002157,40342424,OTC,mart_rec,100, ,0
30002157,40343369,OTC,mart_rec,95, ,0... (6 Replies)
Discussion started by: mukeshguliao
6 Replies
5. Shell Programming and Scripting
Hi,
In a file, I have to mark duplicate records as 'D' and the latest record alone as 'C'.
In the below file, I have to identify if duplicate records are there or not based on Man_ID, Man_DT, Ship_ID and I have to mark the record with latest Ship_DT as "C" and other as "D" (I have to create... (7 Replies)
Discussion started by: machomaddy
7 Replies
6. Windows & DOS: Issues & Discussions
So, I have text files,
one "fail.txt"
And one
"color.txt"
I now want to use a command line (DOS) to remove ANY line that is PRESENT IN BOTH from each text file.
Afterwards there shall be no duplicate lines. (1 Reply)
Discussion started by: pasc
1 Replies
7. Shell Programming and Scripting
Dear community,
I have to remove duplicate lines from a file contains a very big ammount of rows (milions?) based on 1st and 3rd columns
The data are like this:
Region 23/11/2014 09:11:36 41752
Medio 23/11/2014 03:11:38 4132
Info 23/11/2014 05:11:09 4323... (2 Replies)
Discussion started by: Lord Spectre
2 Replies
8. Shell Programming and Scripting
Hi All
I have a list of files which will have duplicate list of blocks of text. Following is a sample of the file, I have removed the sensitive information from the file.
All the code samples starts from <TR BGCOLOR="white"> and Ends with IP address and two html tags like this.
10.14.22.22... (3 Replies)
Discussion started by: mahasona
3 Replies
9. Shell Programming and Scripting
Hi folks!
I have a file which contains a 1000 lines. On each line i have multiple occurrences ( 26 to be exact ) of pattern folder#/folder#.
# is depicting the line number in the file
some text here folder1/folder1 some text here folder1/folder1 some text here folder1/folder1 some text... (7 Replies)
Discussion started by: martinsmith
7 Replies
10. Shell Programming and Scripting
Hello,
I have a script that is generating a tab delimited output file.
num Name PCA_A1 PCA_A2 PCA_A3
0 compound_00 -3.5054 -1.1207 -2.4372
1 compound_01 -2.2641 0.4287 -1.6120
3 compound_03 -1.3053 1.8495 ... (3 Replies)
Discussion started by: LMHmedchem
3 Replies
LEARN ABOUT DEBIAN
gtypist
GTYPIST(1) User Commands GTYPIST(1)
NAME
gtypist - a typing tutor with lessons for different keyboards and languages
SYNOPSIS
gtypist [ options... ] [ script-file ]
DESCRIPTION
`gtypist' is a typing tutor with several lessons for different keyboards and languages. New lessons can be written by the user easily.
OPTIONS
-b --personal-best
track personal best typing speeds
-e % --max-error=%
default maximum error percentage (default 3.0); valid values are between 0.0 and 100.0
-n --notimer
turn off WPM timer in drills
-t --term-cursor
use the terminal's hardware cursor
-f P --curs-flash=P
cursor flash period P*.1 sec (default 10); valid values are between 0 and 512; this is ignored if -t is specified
-c F,B --colours=F,B
set initial display colours where available
-s --silent
don't beep on errors
-q --quiet
same as -s, --silent
-l L --start-label=L
start the lesson at label 'L'
-w --word-processor try to mimic word processors
-k --no-skip
forbid the user to skip exercises
-i --show-errors
highlight errors with reverse video
-h --help
print this message
-v --version
output version information and exit
-S --always-sure
do not ask confirmation questions
--banner-colors=F,B,P,V set top banner colours (background, foreground,
package and version respectively)
--scoring=wpm,cpm
set scoring mode (words per minute or characters per minute)
If not supplied, script-file defaults to '/usr/local/share/gtypist/gtypist.typ'. The path $GTYPIST_PATH is searched for script files.
EXAMPLES
To run the default lesson in english `gtypist.typ':
gtypist
To run the lesson in spanish:
gtypist esp.typ
To instruct gtypist to look for lesson `bar.typ' in a non standard directory:
GTYPIST_PATH="/home/foo" gtypist bar.typ
To run the lesson in the file `test.typ' of directory `temp', starting at label `TEST1', using the terminal's cursor, and run
silently:
gtypist -t -q -l TEST1 /temp/test.typ
AUTHOR
Written by Simon Baldwin
REPORTING BUGS
Report bugs to bug-gtypist@gnu.org
COPYRIGHT
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Simon Baldwin.
Copyright (C) 2003, 2004, 2008, 2011 GNU Typist Development Team. This program comes with ABSOLUTELY NO WARRANTY; for details please see
the file 'COPYING' supplied with the source code.
This is free software, and you are welcome to redistribute it under certain conditions; again, see 'COPYING' for details. This program is
released under the GNU General Public License.
SEE ALSO
The full documentation for gtypist is maintained as a Texinfo manual. If the info and gtypist programs are properly installed at your
site, the command
info gtypist
should give you access to the complete manual.
gtypist 2.9.1 November 2011 GTYPIST(1)