Suppose I have given input a long string like SGHDRIAKGCJLFIFZKGCHXJFSGKCHVGZRUAJFAKGXLH
I want a text file storing the location of S like 1 24.
Suppose the string is stored as some text file like string.txt
Now I give the command
Resultant output is
I want to store this output in a text file.
Moderator's Comments:
Seriously: Please use CODE tags as required by forum rules!
Last edited by RudiC; 03-31-2017 at 07:05 AM..
Reason: Added CODE tags.
Hello All,
I am after the script or the command which can scan the entire file for a string $PART_ID and when found to extract/copy the corresponding $PART_ID value (e.g THIRE_PTY_SOFTWARE for the 1st occurance of $PART_ID in the attached file) to a file.
Appreciate your help.
Thanks in... (3 Replies)
I want to write a script to check for duplicates
For example: I have a text file with information in the format of /etc/passwd
alice:x:1008:555:William Williams:/home/bill:/bin/bash
bob:x:1018:588:Bobs Boos:/home/bob:/bin/bash
bob:x:1019:528:Robt Ross:/home/bob:/bin/bash
james:x:1012:518:Tilly... (3 Replies)
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Hello guys,
i want some help please in coding that program , " A mini dictionary"
the file looks like :
Waver --- To be hesitated
retirement --- life after end of career
The user enter the word , and then it prints the meaning of it
Please use CODE tags when... (4 Replies)
Hi Team
I have an huge xml where i need to search for a ceratin numbers. For example
2014-05-06 15:15:41,498 INFO WebContainer : 10 CommonServicesLogs - CleansingTriggerService.invokeCleansingService Entered PUBSUB NOTIFY MESSAGE () -
<?xml version="1.0" encoding="UTF-8"... (5 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
LEARN ABOUT CENTOS
tk::dialog
Dialog(3) User Contributed Perl Documentation Dialog(3)NAME
Tk::Dialog - Create modal dialog and wait for a response.
SYNOPSIS
$dialog = $parent->Dialog(-option => value, ... );
DESCRIPTION
This procedure is part of the Tk script library - its arguments describe a dialog box. After creating a dialog box, Dialog waits for the
user to select one of the Buttons either by clicking on the Button with the mouse or by typing return to invoke the default Button (if
any). Then it returns the text string of the selected Button.
While waiting for the user to respond, Dialog sets a local grab. This prevents the user from interacting with the application in any way
except to invoke the dialog box. See the Show() method.
OPTIONS
The following option/value pairs are supported:
-title
Text to appear in the window manager's title bar for the dialog.
-text
Message to appear in the top portion of the Dialog.
-bitmap
If non-empty, specifies a bitmap to display in the top portion of the Dialog, to the left of the text. If this is an empty string then
no bitmap is displayed in the Dialog.
-default_button
Text label string of the Button that displays the default ring.
-buttons
A reference to a list of Button label strings. Each string specifies text to display in a Button, in order from left to right.
METHODS
$answer = $dialog->Show(?-global?);
This method displays the Dialog, waits for the user's response, and stores the text string of the selected Button in $answer. If
-global is specified a global (rather than local) grab is performed.
The actual Dialog is shown using the Popup method. Any other options supplied to Show are passed to Popup, and can be used to position
the Dialog on the screen. Please read Tk::Popup for details.
ADVERTISED WIDGETS
Because Tk::Dialog is a subclass of Tk::DialogBox it inherits all the advertised subwidgets of its superclass: e.g. "B_button-text", where
'button-text' is a Button's -text value. Additionally, Tk::Dialog advertises:
message
The dialog's Label widget containing the message text.
bitmap
The dialog's Label widget containing the bitmap image.
EXAMPLE
$dialog = $mw->Dialog(-text => 'Save File?', -bitmap => 'question', -title => 'Save File Dialog', -default_button => 'Yes', -buttons =>
[qw/Yes No Cancel/);
KEYWORDS
bitmap, dialog, modal, messageBox
perl v5.16.3 2014-06-10 Dialog(3)