Sponsored Content
Top Forums Shell Programming and Scripting How to extract every repeated string between two specific string? Post 302920193 by sembii on Wednesday 8th of October 2014 01:17:02 AM
Old 10-08-2014
Hi, I have already tried it without luck.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search for string in a file and extract another string to a variable

Hi, guys. I have one question: I need to search for a string in a file, and then extract another string from the file and assign it to a variable. For example: the contents of the file (group) is below: ... ftp:x:23: mail:x:34 ... testing:x:2001 sales:x:2002 development:x:2003 ...... (6 Replies)
Discussion started by: daikeyang
6 Replies

2. Shell Programming and Scripting

extract specific string and rename file

Hi all, I am working on a small prog.. i have a file.txt which contains random data... K LINES V4 ADD CODE `COMPANY` ADD CODE `DISTRIBUTOR` SEQ NAME^K LINES V5 SEQ NAME^K LINES V6 ADD `PACK-LDATE` SEQ NAME^K^KCOMMAND END^KHEADINFO... (1 Reply)
Discussion started by: mukeshguliao
1 Replies

3. Shell Programming and Scripting

to extract string from main string and string comparison

continuing from my previous post, whose link is given below as a reference https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569 consider there is create table commands in a file for eg: CREATE TABLE `Blahblahblah` ( `id` int(11) NOT NULL... (2 Replies)
Discussion started by: vivek d r
2 Replies

4. Shell Programming and Scripting

Extract a string between 2 ref string from a file

Hi, May i ask if someone share some command for extracting a string between 2 ref string in a txt file My objective: i had a file with multiple lines and wants only to extract the string "watch?v=IbkAXOmEHpY" or "watch?v=<11 random character>", when i used "grep 'watch?=*' i got a results per... (4 Replies)
Discussion started by: jao_madn
4 Replies

5. Shell Programming and Scripting

Extract a specific string from a file

Hi, I have a file whose contents are as follows. 2013-03-08/15:09:20.134 INFO 00000000-00000000 0034 09700400 CON_IN SessionID:ED5E1400-4805-85E2-17B2-5BE45684886A Connection ID:ED5E1400-4805-68F1-BB1D-F06496BCF910 TO:<sip:51234999@10.239.94.146:5060 FROM:<sip:9302280716@97.208.31.7:51024... (2 Replies)
Discussion started by: SunilB2011
2 Replies

6. Shell Programming and Scripting

Search String and extract few lines under the searched string

Need Assistance in shell programming... I have a huge file which has multiple stations and i wanted to search particular station and extract few lines from it and the rest is not needed Bold letters are the stations . The whole file has multiple stations . Below example i wanted to search... (4 Replies)
Discussion started by: ajayram_arya
4 Replies

7. Shell Programming and Scripting

To Search for a string and to extract the string from the text

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)
Discussion started by: Kannannair
5 Replies

8. UNIX for Dummies Questions & Answers

Reading between a repeated string

I have a requirement where I have to read the lines between a repeated string FileName: abc.txt ls /data/abc.txt 1 2 #ZENCO 3 4 5 6 #ZENCO 11 213 454 7 #ZENCO (8 Replies)
Discussion started by: eskay
8 Replies

9. UNIX for Beginners Questions & Answers

How to grep repeated string on the same line?

I have this a file.txt with one line, whose content is /app/jdk/java/bin/java -server -Xms3g -Xmx3g -XX:MaxPermSize=256m -Dweblogic.Name=O2pPod8_mapp_msrv1_1 -Djava.security.policy=/app/Oracle/Middleware/Oracle_Home/wlserver/server/lib/weblogic.policy -Djava.security.egd=file:/dev/./urandom... (3 Replies)
Discussion started by: Lam
3 Replies

10. Shell Programming and Scripting

Need to filter string between specific string in ksh

My argument has data as below. 10.9.9.85 -rwxr-xr-x user1 2019-10-15 17:40 /app/scripts/testingscr5.scr 127869538 -rwxr-xr-x user1 2019-10-15 17:40 /app/scripts/testingscr56scr 127869538 ....... (note all these between lines will start with hyphen '-' ) -rwxr-xr-x user1 2019-10-15 17:40... (3 Replies)
Discussion started by: mohtashims
3 Replies
Tangram::Type::Dump::Any(3pm)				User Contributed Perl Documentation			     Tangram::Type::Dump::Any(3pm)

NAME
Tangram::Type::Dump::Any - Intuitive DataBase InterFace SYNOPSIS
# ... in a nearby Tangram::Schema structure ... SomeClass => { fields => { idbif => { -options => { dumper => 'Data::Dumper', }, some_field => undef, some_property => undef, some_attribute => undef, each_one => undef, gets => undef, saved => undef, }, string => { cheese => undef, }, }, }; DESCRIPTION
The idbif mapping type collates multiple data members into a single perl_dump (see Tangram::Type::Dump::Perl), storable (see Tan- gram::Type::Dump::Storable) or yaml (see Tangram::Type::Dump::YAML) column. For instance, with the schema definition in the example, all the columns in the example would be serialised via Data::Dumper. If you stored an object like this: $cheese = bless { cheese => "gouda", gets => 6, each_one => 9 }, "SomeClass"; You would see something in your database similar to: /^'--v------v--------v----------------------------'^ | id | type | cheese | idbif | >----o------o--------o------------------------------< | 1 | 42 | gouda | { gets => 6, each_one => 9 } | \_,--^------^--------^----------------------------._/ (note: the actual output from your SQL Database client may differ from the above) So, if you're the sort of person who likes to set their attributes with accessors, but doesn't like the overhead this places on the RDBMS... then this may help. Note: the real benefits of this mapping type are for when you're storing more complex data structures than "6" and "9" :-). You may prefer to use the default dumping type, which is storable. LINKS TO OTHER OBJECTS If Tangram encounters another object which is already in storage (ie, has been inserted via "$storage->insert($foo)"), then it will store a "Memento". This memento includes the object ID, which is sensitive to schema changes (the ordering of classes in the schema). If the class implements a "px_freeze" and "px_thaw" function, then there will be a "Memento" that includes the class name of the object, and the data that was returned by the class' "px_freeze" method. To be reconstituted, it is called as: SomeClass->px_thaw(@data) See Tangram::Type::Dump for more details on the complicity API. Please set RETVAL to be the thawed object. (that is, return a single scalar). BUT, I REALLY, REALLY HATE SCHEMAS! However, maybe you are one of those folk who don't like to declare their attributes, instead peppering hashes willy nilly, then there is another option. Instead of explicitly listing the fields you want, if you don't specify any fields at all, then it means save ALL remaining fields into the column. For convenience, "-poof" is provided as a synonym for "-options", so you can write: { fields => { idbif => { -poof => # There goes another one! { }, } }, } [ You see, Tangram::Type::Dump::Any isn't actually an intuitive DB interface. No, an intuitive DB interface is a user interface component, and that title is reserved for Visual Tangram. VT expects to pick up the title with any luck by the end of the 21st century^W RSN! I Don't Believe In Fairies is actually what it stands for. It's a completely arbitrary name; chosen for no reason at all, and certainly not anything to do with Pixie. ] perl v5.8.8 2006-03-29 Tangram::Type::Dump::Any(3pm)
All times are GMT -4. The time now is 02:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy