Sponsored Content
Top Forums Shell Programming and Scripting extraction of perfect text from file. Post 302207551 by Franklin52 on Friday 20th of June 2008 08:14:11 AM
Old 06-20-2008
It's not allowed to bump up questions. If you bump your thread to the top you're pushing other peoples threads to the board unfairly to the bottom.
Please read our rules.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell script for text extraction from a file

Hi All, I am new to Shell Scripting. I have a file consisting of XML messages.Each message is associated with a timestamp value(it is not a xml field).I need to extract\copy all messages in a particular time interval and put in another new file using Shell Scripting. My XML looks like... (3 Replies)
Discussion started by: vignesh53
3 Replies

2. UNIX for Advanced & Expert Users

extraction of data from a text file which follows certain pattern

hi everybody, i have a file, in it I need to extract some data that follows a particular pattern.. For example: my file contains like now running Speak225 sep 22 mon 16:34:05 2008 -------------------------------- ... (4 Replies)
Discussion started by: mohkris
4 Replies

3. UNIX for Dummies Questions & Answers

String extraction from a text file

The following script code works great for extracting 'postmaster' from a line of text stored in a variable named string: string="PenaltyError:=554 5.7.1 Error, send your mail to postmaster@LOCALDOMAIN" stuff=$( echo $string | cut -d@ -f1 | awk '{ print $NF }' ) echo $stuff However, I need to be... (9 Replies)
Discussion started by: cleanden
9 Replies

4. Shell Programming and Scripting

Extraction of data from multiple text files, and creation of a chart

Hello dear friends, My problem as explained below seems really basic. Fact is that I'm totally new to programming, and have only a week to produce a script ( CShell or Perl ? ) to perform this action. While searching on the forums, I found a command that could help me, but I don't know... (2 Replies)
Discussion started by: ackheron
2 Replies

5. Shell Programming and Scripting

Extraction of text using sed or awk command

Hi All, I need to extract 543 from the command below : # pvscan PV /dev/sdb1 VG vg0 lvm2 Total: 1 543.88 GB] / in use: 1 / in no VG: 0 I have the following command which does the job, but I think this could be achieved in a more simple way using sed or awk. Any help is... (7 Replies)
Discussion started by: nua7
7 Replies

6. Shell Programming and Scripting

awk - horizontal and vertical text extraction

Hi, I need some help in getting extracting the specific horizontal and vertical texts in a single line. I am trying to extract few of the parameters from a config file. Your help is appreciated. Desired Output ---------------- Pool members members ... (4 Replies)
Discussion started by: pratheeshp
4 Replies

7. Shell Programming and Scripting

sed text extraction between 2 patterns using variables

Hi everyone! I'm writting a function in .bashrc to extract some text from a file. The file looks like this: " random text Begin CG step 1 random text Begin CG step 2 ... Begin CG step 100 random text" For a given number, let's say 70, I want all the text between "Begin CG... (4 Replies)
Discussion started by: radudownload
4 Replies

8. Shell Programming and Scripting

Text extraction

Dear All, I am trying to extract text from a file containing cron entries. cat /var/tmp/cron_backups/debmed_tmp < * * * * * /bell > * * * * * /belly what I am trying to do is create two text files containing all entries that begin with < and another text files containing entries with > .... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies

9. Shell Programming and Scripting

Solution which is works perfect if all headers match from file b

HI Guys, I have file A.txt Code: ID,L1,L2,L3,L4 1A,2a,33a,44b,55c 2A,10a,14a,15b,16c File B.txt Code: ID L1 L4 L5 Output:- Code: (3 Replies)
Discussion started by: huuanh2811
3 Replies
textpack(1)						      General Commands Manual						       textpack(1)

NAME
textpack - Pack and unpack Flex files containing text SYNOPSIS
textpack -c FLEXFILE [TEXTFILE] textpack -x FLEXFILE [TEXTFILE] DESCRIPTION
Text Flex files are used for the storage of strings by the games Exult supports. While expack(1) can operate on such files, using textpack to pack and unpack them is more comfortable. The first parameter determines the mode of operation, -c stands for creation, -x for extraction. Creation TEXTFILE (or stdin if it is missing) is read and must conform to the file format (see below). FLEXFILE will be created containing the strings from this input. Extraction The strings contained in FLEXFILE are extracted and written to TEXTFILE (if given, stdout otherwise) in the file format documented below. File Format Empty lines, and lines starting with a pound sign (#) are ignored. Other lines must begin with a number, followed by a colon (:). The num- ber is the index of the string and may be given either in decimal, in octal prefixed with 0; or in hexadecimal prefixed with 0x. Anything following the colon belongs to the string and gets stored in the Flex verbatim. Lines are limited in length to 1024 characters. EXAMPLES
textpack -x text.flx Writes all the strings contained in text.flx to stdout in the format discussed above. textpack -c text.flx strings.list Reads strings.list and puts its contents into the Flex file text.flx Example text file # An example 0:the zeroth string # strings may be empty 1: # holes are allowed, strings 2 to 16 will be empty 17:string seventeen # 13 hexadecimal == 19 decimal, 24 octal == 20 decimal 0x13:nineteen 024:twenty # numbers need not go up 18:eighteen # this will overwrite the definition from above 19:overwritten AUTHOR
This manpage was written by Robert Bihlmeyer. It may be freely redistributed and modified under the terms of the GNU General Public License version 2 or higher. SEE ALSO
expack(1), exult(6) Exult 2002-03-24 textpack(1)
All times are GMT -4. The time now is 02:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy