Sponsored Content
Top Forums Shell Programming and Scripting Get specific information from output Post 303043115 by Lord Spectre on Saturday 18th of January 2020 01:52:19 PM
Old 01-18-2020
RudiC, don't misunderstand me, when I wrote "asap" I didn't want to speed up people to reply, just to say that I have a problem to solve Smilie
By the way, I solved the mistery, and you're right RudiC, my input has quirks, maybe because is coming from telnet, so I fixed it with:
Code:
dos2unix -a get.tmp > /dev/null 2>&1

Thank you all for collaboration, and for the many examples provided!!!


Lucas

Last edited by Lord Spectre; 01-18-2020 at 03:57 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to perform Grep on many Gzip files, Searching for Specific information

Hello, I am wondering if you can assist with my question and ask kindly for this. I have a number of files that are listed as file1.gz through file100.gz. I am trying to perform a grep on the files and find a specific date that only resides within within one of the files. There are... (3 Replies)
Discussion started by: legharb
3 Replies

2. UNIX for Advanced & Expert Users

using txr to extract information from output

am using txr command (txr 1097) on a process that generates the following output. Im trying to extract the 13th field from the highlighted string. it is delimited by '?'. The 13th field corresponds to the '0' (in bold). can you let me know how I can extract the 13 th field please? ... (1 Reply)
Discussion started by: pazman
1 Replies

3. Shell Programming and Scripting

Using txr to extract information from output

am using txr command (txr 1097) on a process that generates the following output. Im trying to extract the 13th field from the highlighted string. it is delimited by '?'. The 13th field corresponds to the '0' (in bold). can you let me know how I can extract the 13 th field please? ... (1 Reply)
Discussion started by: pazman
1 Replies

4. UNIX and Linux Applications

Reflection Macro: Use Current Date Information in specific field of report

Hi Everyone, New to the forum, and have my first question. I have the following Macro currently being used within Telnet to run a report for the date being entered. However, now I need the Macro to input the day after today to the the day after today. Example: If today is May 9, 2012 - the... (0 Replies)
Discussion started by: CipherEffect
0 Replies

5. Shell Programming and Scripting

get specific information from text file or command output

Hello, I would need some help, :wall: on a linux script, I am not sure how can I separate some text file, Text file contains something similar to this: share "userhome_e" "/fs1_100g/FILE58/userhome" umask=022 maxusr=4294967295 netbios=FILE58 share "bu share"... (3 Replies)
Discussion started by: nakaedu
3 Replies

6. Shell Programming and Scripting

[Solved] How can I pull specific information from PS?

I need to grab information from the output of the ps command. For each line of ps output that contains _progres -b I need to get the word that follows -p. The "-p" can be anywhere after "_progres -b". Using grep to select the correct lines is no problem (e.g. ps -ef|grep "_progres \-b|grep -v... (3 Replies)
Discussion started by: Papa Lee
3 Replies

7. Shell Programming and Scripting

Pull out information from output logs

My scenario is as follows. 1. I have a reference file with the IP addresses and names $ cat ref.list 10.11.xxx.xxx AA 10.12.xxx.xxx BB 10.13.xxx.xxx CC 10.14.xxx.xxx DD 2. A script runs and gets me one of the IP addresses and puts it in a separate file, for e.g... (2 Replies)
Discussion started by: Nagesh_1985
2 Replies

8. Shell Programming and Scripting

How to extract specific information?

hi, i have a file A like this: ******************* No 2823 ******************** contig15205- G383C4U02H4G80+ is in contig15205- G383C4U02HGLXM- is in contig15205- G383C4U01C3HIZ+ is in contig15205- ... (3 Replies)
Discussion started by: the_simpsons
3 Replies

9. Shell Programming and Scripting

Extract Specific Information from a particular field

Hi, I am trying to extract a specific information from a file which contains more than 200 million records. Attached the input file for your reference. My file contains information below ... (4 Replies)
Discussion started by: rramkrishnas
4 Replies

10. Shell Programming and Scripting

Missing information in output file

Gents, Using the following code i am able to output the information i need, but some of the strings are not complete due to the separator : used.. Kindly can u help me to get all string after the first : Example in the output file column 16 i should get 17/11/25 03:43:51:732000 but i... (8 Replies)
Discussion started by: jiam912
8 Replies
font(n) 						       Tk Built-In Commands							   font(n)

__________________________________________________________________________________________________________________________________________________

NAME
font - Create and inspect fonts. SYNOPSIS
font option ?arg arg ...? _________________________________________________________________ DESCRIPTION
The font command provides several facilities for dealing with fonts, such as defining named fonts and inspecting the actual attributes of a font. The command has several different forms, determined by the first argument. The following forms are currently supported: font actual font ?-displayof window? ?option? Returns information about the the actual attributes that are obtained when font is used on window's display; the actual attributes obtained may differ from the attributes requested due to platform-dependant limitations, such as the availability of font families and pointsizes. font is a font description; see FONT DESCRIPTIONS below. If the window argument is omitted, it defaults to the main window. If option is specified, returns the value of that attribute; if it is omitted, the return value is a list of all the attributes and their values. See FONT OPTIONS below for a list of the possible attributes. font configure fontname ?option? ?value option value ...? Query or modify the desired attributes for the named font called fontname. If no option is specified, returns a list describing all the options and their values for fontname. If a single option is specified with no value, then returns the current value of that attribute. If one or more option-value pairs are specified, then the command modifies the given named font to have the given val- ues; in this case, all widgets using that font will redisplay themselves using the new attributes for the font. See FONT OPTIONS below for a list of the possible attributes. font create ?fontname? ?option value ...? Creates a new named font and returns its name. fontname specifies the name for the font; if it is omitted, then Tk generates a new name of the form fontx, where x is an integer. There may be any number of option-value pairs, which provide the desired attributes for the new named font. See FONT OPTIONS below for a list of the possible attributes. font delete fontname ?fontname ...? Delete the specified named fonts. If there are widgets using the named font, the named font won't actually be deleted until all the instances are released. Those widgets will continue to display using the last known values for the named font. If a deleted named font is subsequently recreated with another call to font create, the widgets will use the new named font and redisplay themselves using the new attributes of that font. font families ?-displayof window? The return value is a list of the case-insensitive names of all font families that exist on window's display. If the window argu- ment is omitted, it defaults to the main window. font measure font ?-displayof window? text Measures the amount of space the string text would use in the given font when displayed in window. font is a font description; see FONT DESCRIPTIONS below. If the window argument is omitted, it defaults to the main window. The return value is the total width in pixels of text, not including the extra pixels used by highly exagerrated characters such as cursive ``f''. If the string contains newlines or tabs, those characters are not expanded or treated specially when measuring the string. font metrics font ?-displayof window? ?option? Returns information about the metrics (the font-specific data), for font when it is used on window's display. font is a font description; see FONT DESCRIPTIONS below. If the window argument is omitted, it defaults to the main window. If option is speci- fied, returns the value of that metric; if it is omitted, the return value is a list of all the metrics and their values. See FONT METRICS below for a list of the possible metrics. font names The return value is a list of all the named fonts that are currently defined. FONT DESCRIPTION
The following formats are accepted as a font description anywhere font is specified as an argument above; these same forms are also permit- ted when specifying the -font option for widgets. [1] fontname The name of a named font, created using the font create command. When a widget uses a named font, it is guaranteed that this will never cause an error, as long as the named font exists, no matter what potentially invalid or meaningless set of attributes the named font has. If the named font cannot be displayed with exactly the specified attributes, some other close font will be substi- tuted automatically. [2] systemfont The platform-specific name of a font, interpreted by the graphics server. This also includes, under X, an XLFD (see [4]) for which a single ``*'' character was used to elide more than one field in the middle of the name. See PLATFORM-SPECIFIC issues for a list of the system fonts. [3] family ?size? ?style? ?style ...? | A properly formed list whose first element is the desired font family and whose optional second element is the desired size. The | interpretation of the size attribute follows the same rules described for -size in FONT OPTIONS below. Any additional optional | arguments following the size are font styles. Possible values for the style arguments are as follows: | normal bold roman italic underline overstrike | [4] X-font names (XLFD) | A Unix-centric font name of the form -foundry-family-weight-slant-setwidth-addstyle-pixel-point-resx-resy-spacing-width-charset- | encoding. The ``*'' character may be used to skip individual fields that the user does not care about. There must be exactly one | ``*'' for each field skipped, except that a ``*'' at the end of the XLFD skips any remaining fields; the shortest valid XLFD is sim- | ply ``*'', signifying all fields as defaults. Any fields that were skipped are given default values. For compatibility, an XLFD | always chooses a font of the specified pixel size (not point size); although this interpretation is not strictly correct, all exist- | ing applications using XLFDs assumed that one ``point'' was in fact one pixel and would display incorrectly (generally larger) if | the correct size font were actually used. [5] option value ?option value ...? A properly formed list of option-value pairs that specify the desired attributes of the font, in the same format used when defining a named font; see FONT OPTIONS below. When font description font is used, the system attempts to parse the description according to each of the above five rules, in the order specified. Cases [1] and [2] must match the name of an existing named font or of a system font. Cases [3], [4], and [5] are accepted on all platforms and the closest available font will be used. In some situations it may not be possible to find any close font (e.g., the font family was a garbage value); in that case, some system-dependant default font is chosen. If the font description does not match any of the above patterns, an error is generated. FONT METRICS
The following options are used by the font metrics command to query font-specific data determined when the font was created. These proper- ties are for the whole font itself and not for individual characters drawn in that font. In the following definitions, the ``baseline'' of a font is the horizontal line where the bottom of most letters line up; certain letters, such as lower-case ``g'' stick below the baseline. -ascent The amount in pixels that the tallest letter sticks up above the baseline of the font, plus any extra blank space added by the designer of the font. -descent The largest amount in pixels that any letter sticks down below the baseline of the font, plus any extra blank space added by the designer of the font. -linespace Returns how far apart vertically in pixels two lines of text using the same font should be placed so that none of the characters in one line overlap any of the characters in the other line. This is generally the sum of the ascent above the baseline line plus the descent below the baseline. -fixed Returns a boolean flag that is ``1'' if this is a fixed-width font, where each normal character is the the same width as all the other characters, or is ``0'' if this is a proportionally-spaced font, where individual characters have different widths. The widths of control characters, tab characters, and other non-printing characters are not included when calculating this value. FONT OPTIONS
The following options are supported on all platforms, and are used when constructing a named font or when specifying a font using style [5] as above: -family name The case-insensitive font family name. Tk guarantees to support the font families named Courier (a monospaced ``typewriter'' font), Times (a serifed ``newspaper'' font), and Helvetica (a sans-serif ``European'' font). The most closely matching native font family will automatically be substituted when one of the above font families is used. The name may also be the name of a native, platform- specific font family; in that case it will work as desired on one platform but may not display correctly on other platforms. If the family is unspecified or unrecognized, a platform-specific default font will be chosen. | -size size | The desired size of the font. If the size argument is a positive number, it is interpreted as a size in points. If size is a nega- | tive number, its absolute value is interpreted as a size in pixels. If a font cannot be displayed at the specified size, a nearby | size will be chosen. If size is unspecified or zero, a platform-dependent default size will be chosen. | Sizes should normally be specified in points so the application will remain the same ruler size on the screen, even when changing | screen resolutions or moving scripts across platforms. However, specifying pixels is useful in certain circumstances such as when a | piece of text must line up with respect to a fixed-size bitmap. The mapping between points and pixels is set when the application | starts, based on properties of the installed monitor, but it can be overridden by calling the tk scaling command. | -weight weight The nominal thickness of the characters in the font. The value normal specifies a normal weight font, while bold specifies a bold font. The closest available weight to the one specified will be chosen. The default weight is normal. -slant slant The amount the characters in the font are slanted away from the vertical. Valid values for slant are roman and italic. A roman font is the normal, upright appearance of a font, while an italic font is one that is tilted some number of degrees from upright. The closest available slant to the one specified will be chosen. The default slant is roman. -underline boolean The value is a boolean flag that specifies whether characters in this font should be underlined. The default value for underline is false. -overstrike boolean The value is a boolean flag that specifies whether a horizontal line should be drawn through the middle of characters in this font. The default value for overstrike is false. PLATFORM-SPECIFIC ISSUES The following named system fonts are supported: X Windows: All valid X font names, including those listed by xlsfonts(1), are available. MS Windows: system ansi device systemfixed ansifixed oemfixed Macintosh: system application SEE ALSO
options KEYWORDS
font Tk 8.0 font(n)
All times are GMT -4. The time now is 10:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy