Hi Yoda,
It is not working for the complex things like the text below: i have 500 to 1000 lines in the txt file which i have to replace.
Code:
I have a lerarne a &lesson=ddd;
which i have to for &mm=22;
asdfasd &G=3;
sad &aa=sss
sor sdfsdf dsfsdfs &lesson
saasdasdasd
d ther asdfadd &lesson
asda &aa
asdasdasd&AA
hi,
i wanted to put the output of file f1 into the pattern space of file f2
f1:
wjwjwjwjwjwjwj //these line go in file f2
jwjwjwjwjwjjwjw
wjwjwjwjjwjwjwj
f2:
Pattern_start
__________ //these are the line to be replaced
__________
Pattern_end
i m... (4 Replies)
Hi everyone.
Could u be so kind and help me with on "simple" shell script?
1. i need to search a file line by line for a pattern.
example of a lines in that file
2947 domain = feD,id = 00 0A 02 48 17 1E 1D 39 DE 00 0E 00,Name
Values:snNo = f10
Add AttFlag = 0
2. i need to find... (0 Replies)
Hi guys,
i have a pattern that i am searching in a file and i want to extract some of this pattern
...
module TS1N65ULPA96X32M4 (
....
i want to extract only TS1N65ULPA96X32M4 part and i do the following
sed 's/module \(x*\).*/\1/' name_of_file
but this is not quite right.
could... (6 Replies)
Hi,
I have two files viz,
rak1:
$ cat rak1
rak2:
$ cat rak2
sdiff rak1 rak2 returns:
I want the lines that got modified, changed, or deleted preceding with the section they are in.
I have done this so far: (1 Reply)
Hello,
The following sed command is giving error
sed: -e expression #1, char 13: unknown option to `s'
The sed command is
echo "//-----" | sed "s/\/\/---*/$parChk/g"
where parChk="//---ee-"
How can i print the variable value from sed command ?
And is it possible to replace a... (2 Replies)
Greatings all,
I am coming to seek your knowledge and some help on an issue I can not currently get over. I have been searching the boards but did not find anything close to this matter I am struggling with.
I am trying to clean a CSV file and make it loadable for my SQL*Loader. My problem... (1 Reply)
I have a huge file that has roughly 30304 lines. I need to extract specific info from that file. For example,
Box 1 > *aaaaaaaajjjj*
> hbbvjvj
> jdnnfddllll
> *dgdfhfekwjh*
Box 2 > *aaaaaaa'aj'jjj*
> dse hkjuejef bfdw
> dyeee
> dsewq
> *dgdfhfekwjh*
>feweiuei
Box 3 > *aaaa"aaaaj"jjj*
>... (25 Replies)
Hi All
I am having pipe seperated inputs like
Adam|PeteR|Josh|PEter
Nick|Rave|Simon|Paul
Steve|smith|PETER|Josh
Andrew|Daniel|StAlin|peter
Rick|PETer|ADam|RAVE
i want to repleace all the occurrence of peter (in any case pattern PeteR,PEter,PETER,peter,PETer) with Peter so that output... (5 Replies)
Hi all,
I have files and have a missing record. I need copy the existing record and mark those values up. For example in the below file 11048 is missing. I need to copy 22001 and copy those create the values for 11048. I have 120 set of files and I need to do that on all files.
Note the... (8 Replies)
I have a file like below.
2018.07.01, Sunday
09:27 some text 123456789 0 21 0.06 0.07 0.00
2018.07.02, Monday
09:31 some text 123456789 1 41 0.26 0.32 0.00
09:39 some text 456789012 1 0.07 0.09 0.09
09:45 some text 932469494 1 55 0.29 0.36 0.00
16:49 some text 123456789 0 48 0.12 0.15 0.00... (9 Replies)
Discussion started by: father_7
9 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)