How would I split a file based on the location of a string, basically I want all entries above the string unix in this example
1
2
3
4
unix
5
6
7
Thanks,
Chuck (3 Replies)
Hey Guys.I am a newbie on Bash Shell Scripting and Perl.And I have a question about file parsing.
I have a log file which contains reports about a communication device.I need to take some of the reports from the log file.Its hard to explain the issue.but shortly I can say that, the reports has a... (2 Replies)
Any ideas?
1)loop through text file
2)extract everything between SOL and EOL
3)output files, for example: 123.txt and 124.txt for the file below
So far I have: sed -n "/SOL/,/EOL/{p;/EOL/q;}" file
Here is an example of my text file.
SOL-123.go
something goes here
something goes... (0 Replies)
Hello all,
I have some text formatted as follows
Name: John doe
Company:
Address 1: 7 times the headache
Address 2:
City: my city
State/Province: confusion
Zip/Postalcode: 12345
and I'm trying to figure out how I could extract the data after the colon so that the result would be ... (6 Replies)
Hello
I have a file that contains 10 rows as below:
"ID" "DP"
"ID=GRMZM2G015073_T01" "23.6044288292005"
"ID=GRMZM2G119852_T01" "59.7782287606723"
"ID=GRMZM2G100242_T02" "61.4167813736184"
"ID=GRMZM2G046274_T01" "6.63061838134219"
"ID=GRMZM2G046274_T02" ... (5 Replies)
I was trying to parse the text file, which will looks like this
###XYZABC####
############
int = 4
char = 1
float = 1
.
.
############
like this my text file will contains lots of entries and I need to store these entries in the map eg. map.first = int and map.second = 4 same way I... (5 Replies)
I'm totally stumped with how to handle this huge text file I'm trying to deal with. I really need some help!
Here is what is looks like:
ab1ba67c331a3d731396322fad8dd71a3b627f89359827697645c806091c40b9
0.2
812a3c3684310045f1cb3157bf5eebc4379804e98c82b56f3944564e7bf5dab5
0.6
0.6... (3 Replies)
Hi Friends,
I am back for the second round today - :D
My input text file is this way
Home
friends
friendship meter
Tools
Mirrors
Downloads
My Data
About Us
Help
My own results
BLAT Search Results
ACTIONS QUERY SCORE START END QSIZE IDENTITY CHRO STRAND ... (7 Replies)
I do have a flat text file that are divided into blocks. Each block is demimited by '='. I would like to parse certain numbers and letters.
This is the format of the file I have. It has thousands of such blocks
>A B 1, 100
TTTT 100 95
>C D 1, 95
GHJKL
=
>A B 1, 72
GHUJKLO 72 84
>C D... (3 Replies)
Discussion started by: Kanja
3 Replies
LEARN ABOUT DEBIAN
text2gif
text2gif(1) General Commands Manual text2gif(1)NAME
text2gif - A program to generate GIF images out of regular text. Text can be one line or multi-line, and is converted using 8 by 8 fixed
font.
USAGE
text2gif [-q] [-s ClrMapSize] [-f FGClr] [-c R G B] [-t Text ] [-h]
This program reads stdin if no text is provided on the command line (-t), and will dump the created GIF file to stdout.
MEMORY REQUIRED
Line.
OPTIONS
[-q]
Quiet mode. Defaults off on MSDOS, on under UNIX. Controls printout of running scan lines. Use -q- to invert.
[-s ClrMapSize]
Explicitly defines the size of the color map of the resulting gif image. Usually the image will be bicolor with fg as color 1,
unless [-f] is explicitly given in case the color map size will be big enough to hold it. However it is sometimes convenient to set
the color map size to certain size while the fg color is small mainly so this image may be merged with another (images must match
color map size).
[-f FG]
Select foreground index (background is always 0). By default it is one and therefore the image result is bicolored. if FG is set
to n then color map will be created with 2^k entries where 2^k > n for minimum k, assuming k <= 8. This color map will be all zeros
except this forground index. This option is useful if this text image should be integrated into other image colormap using their
colors.
[-c R G B]
The color to use as the foreground color. White by default.
[-t "Text"]
One line of text can be provided on the command line. Note you must encapsulate the Text within quotes if it has spaces (The
quotes themselves are not treated as part of the text). If no -t option is provided, stdin is read until end of file.
[-h]
Print one line command line help, similar to Usage above.
NOTES
There is a hardcoded limit of 100 the number of lines.
AUTHOR
Gershon Elber
Man page created by T.Gridel <tgridel@free.fr>, originally written by Eric S. Raymond <esr@thyrsus.com>
giflib-tools text2gif(1)