09-20-2011
What about the other solution? Moving around the text file and manipulating text while the script is running?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello, I'm writing a bash script and I have a question.
Here's what I'm doing:
I have a file called inv.dat which contains the following:
B102:Action Figure - Teacher:79
B103:Bike - Purple:23
B104:Baseball:25
B105:Cricket Bat:15
B101:Action Figure - Fireman:15
B100:Flame-Thrower:25
... (2 Replies)
Discussion started by: netmaster
2 Replies
2. Shell Programming and Scripting
Hello,
I have mysql binary file which logs all the database queries and i to insert all queries log in to database. First i coverted binary file to text file. and start playing with it. Text file contains following queries, some samples are,
SET INSERT_ID=1;
INSERT INTO test... (0 Replies)
Discussion started by: mirfan
0 Replies
3. Shell Programming and Scripting
EDIT: This has been SOLVED. Thanks!
Greetings everyone,
I've posted a few threads with some quick help questions, and this is another one of those. I can't post enough gratitude for those much more knowledgeable than myself who are willing to give good advice for my minor issues. Now,... (2 Replies)
Discussion started by: Eblue562
2 Replies
4. Shell Programming and Scripting
Let me try my best to give you a picture of what I'm trying to do. Once again I'm sorry for the essay thats coming up.
I programmed a rather large library of script functions to deal with input, displaying ANSI block graphics, playing sounds, and refining the terminal and so on. I also designed... (8 Replies)
Discussion started by: tinman47
8 Replies
5. Shell Programming and Scripting
:wall::wall::wall:
Hi I have horrible script below, need help in renaming ls -l output into new filename format:
Desired output:
cp -pv original_path/.* newDirectory/owner_of_file.%dd%mm%y.file_extension.first_8_characters_of_original_filename
localuser@localuser:~ vi... (3 Replies)
Discussion started by: wolf@=NK
3 Replies
6. Shell Programming and Scripting
I need to change a file like this:
John Smith;http://www.profile1.com
John Smith;http://www.profile2.com
Frank Olsen;http://www.profile3.com
Frank Olsen;http://www.profile4.com
Into:
John Smith;http://www.profile1.com;http://www.profile2.com
Frank... (2 Replies)
Discussion started by: locoroco
2 Replies
7. Shell Programming and Scripting
I have 1.6 GB (and growing) of files with needed data between the 11th and 34th line (inclusive) of the second column of comma delimited files. There is also a lot of stray white space in the file that needs to be trimmed. They have DOS-like end of lines.
I need to transpose the 11th through... (13 Replies)
Discussion started by: Michael Stora
13 Replies
8. Shell Programming and Scripting
Hi. I need assistance with the replacing of text into a specific file via a bash script.
My bash script, once run, currently provides a menu of computer names to choose.The script copies onto my system various files, depending what computer was selected in the menu.This is working OK.
Now, I... (1 Reply)
Discussion started by: jonesn2000
1 Replies
9. Shell Programming and Scripting
Guys, I have a variable in a script that I want to transform to into something else Im hoping you guys can help. It doesn't have to use sed/awk but I figured these would be the simplest.
DATE=20160120
I'd like to transform $DATE into "01-20-16" and move it into a new variable called... (8 Replies)
Discussion started by: dendenyc
8 Replies
10. Shell Programming and Scripting
I have an FTP server with thousands of Invoices. All Invoices are in a folder called /volume1/MBSInvoices/
Monthly invoices are added to that folder every month.
Here is a sample filename of the Invoices:
invoice_1_20170101_10010052_10020052_10030052_JOHNDOE.pdf
the Account ID is the... (6 Replies)
Discussion started by: badr777
6 Replies
LEARN ABOUT DEBIAN
mdraw_text
mdraw_text(3m17n) The m17n Library mdraw_text(3m17n)
NAME
mdraw_text - Draw an M-text on a window.
SYNOPSIS
int mdraw_text (MFrame * frame, MDrawWindow win, int x, int y, MText * mt, int from, int to)
DESCRIPTION
Draw an M-text on a window. The mdraw_text() function draws the text between from and to of M-text mt on window win of frame frame at
coordinate (x, y).
The appearance of the text (size, style, color, etc) is specified by the value of the text property whose key is Mface. If the M-text or a
part of the M-text does not have such a text property, the default face of frame is used.
The font used to draw a character in the M-text is selected from the value of the fontset property of a face by the following algorithm:
1. Search the text properties given to the character for the one whose key is Mcharset; its value should be either a symbol specifying a
charset or Mnil. If the value is Mnil, proceed to the next step.
Otherwise, search the mapping table of the fontset for the charset. If no entry is found proceed to the next step.
If an entry is found, use one of the fonts in the entry that has a glyph for the character and that matches best with the face properties.
If no such font exists, proceed to the next step.
2. Get the character property 'script' of the character. If it is inherited, get the script property from the previous characters. If
there is no previous character, or none of them has the script property other than inherited, proceed to the next step.
Search the text properties given to the character for the one whose key is Mlanguage; its value should be either a symbol specifying a
language or Mnil.
Search the mapping table of the fontset for the combination of the script and language. If no entry is found, proceed to the next step.
If an entry is found, use one of the fonts in the entry that has a glyph for the character and that matches best with the face properties.
If no such font exists, proceed to the next step.
3. Search the fall-back table of the fontset for a font that has a glyph of the character. If such a font is found, use that font.
If no font is found by the algorithm above, this function draws an empty box for the character.
This function draws only the glyph foreground. To specify the background color, use mdraw_image_text() or mdraw_text_with_control().
This function is the counterpart of XDrawString(), XmbDrawString(), and XwcDrawString() functions in the X Window System.
RETURN VALUE
If the operation was successful, mdraw_text() returns 0. If an error is detected, it returns -1 and assigns an error code to the
external variable merror_code.
ERRORS
MERROR_RANGE
SEE ALSO
mdraw_image_text()
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 mdraw_text(3m17n)