Sponsored Content
Top Forums Shell Programming and Scripting Extract X words from end of line, minus last keynumber X Post 302466639 by fubaya on Wednesday 27th of October 2010 12:12:26 AM
Old 10-27-2010
Thanks guys. Just getting around to checking up on this. They both work.

I swear, every time I think I know a little awk, I look at something like this and it looks like Greek. I think I get it, but I wouldn't want to have to explain it to someone or I would confuse us both. I'll use malcomex999's. It still looks like Greek but it's a little shorter so it has to be better, right? Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

extract a particular start and end pattern from a line

hi In the foll example the whole text in a single line.... i want to extract text from IPTel to RTCPBase.h. want to use this acrooss the whole file Updated: IPTel\platform\core\include\RTCPBase.h \main\MWS2051_Sablime_Int\1... (7 Replies)
Discussion started by: manish205
7 Replies

2. Shell Programming and Scripting

How to append words at the end of first line

Hi Unix gurus This is my first post here. I have a file which looks like this: string1,string2 ,string3 ,string4 ... ... I need to append all words below first line to the first line, ie string1,string2,string3,string4,... Bear in mind that it is not known how many lines follow... (11 Replies)
Discussion started by: lmatlebyane
11 Replies

3. UNIX for Dummies Questions & Answers

Using sed to extract a substring at end of line

This is the line that I am using: sed 's/^*\({3}*$\)/\1 /' <test.txt >results.txt and suppose that test.txt contains the following lines: http://www.example.com/200904/AUS.txt http://www.example.com/200903/_RUS.txt http://www.example.com/200902/.FRA.txt What I expected to see in results.txt... (6 Replies)
Discussion started by: figaro
6 Replies

4. Shell Programming and Scripting

sed: Find start of pattern and extract text to end of line, including the pattern

This is my first post, please be nice. I have tried to google and read different tutorials. The task at hand is: Input file input.txt (example) abc123defhij-E-1234jslo 456ujs-W-abXjklp From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
5 Replies

5. Shell Programming and Scripting

Copying x words from end of line to specific location in same line

Hello all i know it is pretty hard one but you will manage it all after noticing and calculating i find a rhythm for the file i want to edit to copy the last 12 characters in line but the problem is to add after first 25 characters in same line in other way too copy the last 12 characters... (10 Replies)
Discussion started by: princesasa
10 Replies

6. UNIX for Dummies Questions & Answers

extract text between two words on a single line

Hi Guys, Can someone help me with a way to extract text between two words on a single line. For example if the file has below content I want to extract all text between b and f inclusive of b and f. Aparently sed does this but does it line by line and I guess it cannot read word by word. ... (11 Replies)
Discussion started by: krishnaux
11 Replies

7. Shell Programming and Scripting

How to extract text from STRING to end of line?

Hi I have a very large data file with several hundred columns and millions of lines. The important data is in the last set of columns with variable numbers of tab delimited fields in front of it on each line. Im currently trying sed to get the data out - I want anything beetween :RES and... (4 Replies)
Discussion started by: Manchesterpaul
4 Replies

8. Shell Programming and Scripting

Print one sentence 40 to 50 words end with period in a file

Hi All, Is there another way to achieve this? how get short phrase in a sentence with character count of 100 to 155 words end with period but don't end something like 50,000. . Here's my current script but the output is not good. This will use for my snippets or preview. grep... (6 Replies)
Discussion started by: lxdorney
6 Replies

9. Shell Programming and Scripting

Replace particular words in file based on if finds another words in that line

Hi All, I need one help to replace particular words in file based on if finds another words in that file . i.e. my self is peter@king. i am staying at north sydney. we all are peter@king. How to replace peter to sham if it finds @king in any line of that file. Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies

10. Shell Programming and Scripting

Perl to extract values and print at end of each line

In the below perl I am trying to extract and print the values AF1=, the GT value, and F or QUAL diveded by 33 (rounded to the nearest whole #). The GT value is at the end after the GT:PL so all the possibilities are read into a hash h, then depending on the value that is in the line the... (1 Reply)
Discussion started by: cmccabe
1 Replies
Greek(5)							File Formats Manual							  Greek(5)

NAME
Greek, greek - Introduction to Greek language support DESCRIPTION
This reference page describes the codeset, locale, device, and other kinds of support for the Greek language. Codesets The operating system supports the following coded character sets (codesets) for Greek: ISO 8859-7 (ISO Latin/Greek) ISO8859-7 is the string that represents this codeset in the names of locales and codeset converters. Refer to iso8859-7(5) for information on the ISO Latin/Greek codeset. PC code-page formats (supported through codeset converters only) cp737, cp869, and cp1253 are the strings that represent these encoding formats in the names of codeset converters. Refer to code_page(5) for information on PC code pages. UCS-2, UCS-4, and UTF-8 encoding formats (file data supported through codeset con- verters only) UCS-2, UCS-4, and UTF-8 are the strings that represent these encoding formats in the names of codeset converters. Refer to Uni- code(5) for information on these encoding formats. See the i18n_intro(5) and l10n_intro(5) reference pages for introductory information on codesets. The iconv_intro(5) reference page dis- cusses codeset converters and how to use them. Locales The operating system provides the following Greek locale: el_GR.ISO8859-7, for Greece This locale is also available under the name el_GR.ISO8859-7@ucs4 for applications that need to convert data between ISO8859-7 file format and UCS-4 process code for character classification operations. You can use the locale command (see locale(1)) to find out if this locale is installed on your system. See i18n_intro(5) for information on setting locale from the operating system command line. For the Common Desktop Environment (CDE), you set locale by setting the session language. To do this, use the Language menu accessed from the Options button on the Login window. Keyboards The operating system supports the following VT style and PC style keyboards for Greek: ---------------------------------------------- VT Style (105/108 keys) PC Style (102 keys) ---------------------------------------------- Greek LK401 LK444 LK411 LK471-BH LK461 LK97W-BH Greek LK471 PCXAL-HH PCXAL-LH ---------------------------------------------- For your keyboard to function correctly with your system, you must load a keyboard mapping table (keymap) that is appropriate for your key- board's model and language. If you load a keymap that does not correspond to your keyboard's model and language, your keyboard behavior is unpredictable. The label located on the bottom surface of a keyboard usually specifies its model (five letter code) and language (two let- ter code). See the keyboard(5) reference page for general information on keymaps and instructions for loading them in different formats. The following tables supply Greek-specific information that you need when loading keymaps. Selecting keymaps in xkb format: --------------------------------------------------------- For VT Style For PC Style Keyboard: Select: Keyboard: Select: --------------------------------------------------------- LK401 Greek lk401 LK444 lk444 or lk44x LK411 lk411 LK471-BH lk471bh or lk471 LK461 lk461 LK97W-BH lk97wbh or lk97w PCXAL-HH pcxalhh PCXAL-LH pcxallh --------------------------------------------------------- Keyboards can have keys with characters printed on both the left and right half of the keycap. The way you set or use your keyboard to send different sets of characters varies from one keyboard model to another. Furthermore, your keyboard allows you to enter more characters than those printed on the keycaps. Refer to the keyboard(5) reference page for information on how to enter characters. Printers For information on setting up and configuring printers for non-English text, refer to the i18n_printing(5) reference page. PostScript fonts available for languages supported by the ISO 8859-7 codeset are listed on the iso8859-7(5) reference page. SEE ALSO
Commands: locale(1) Others: code_page(5), i18n_intro(5), i18n_printing(5), iconv_intro(5), iso8859-7(5), keyboard(5), l10n_intro(5), Unicode(5) Writing Software for the International Market Greek(5)
All times are GMT -4. The time now is 05:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy