Okay thanks for your help thus far. Ill sleep over it and see if i can make changes. Possibly ill start again and use case instead. Ill be on tomorrow.
---------- Post updated at 04:00 PM ---------- Previous update was at 12:19 AM ----------
Ive been working on the code and this is what i get so far. Everything works ok it accepts inputs one at a time. However when i want to exit (by pressing 0 and enter) i need to do it twice and it makes 0 the lowest letter. Its not what i want and im sure in the code i made it so it would exit out right after 0 was found and to display the lowest letter.
Hi,
I trying to find the solution for writing the programming in unix by shell programming for sorting thr string in alphabetical order.
I getting diffculty in that ,, so i want to find out the solution for that
Please do needful
Thanks
Bhagyesh (1 Reply)
echo $TEMP|grep ""
I want to check TEMP is alphabetic or not in both the cases.but in above script i am getting 1($?) if TEMP is in pure lower case or pure upper case.i want to get 0($?) when TEMP would be alphabetic in either cases.pleaaaase help me out..... (4 Replies)
Hi all,
I So, I've got a monster text document comprising a list of various company names and associated info just in a long list one after another. I need to sort them alphabetically by name...
The text document looks like this:
Company Name:
the_first_company's_name_here
Address:... (2 Replies)
Hi everyone!
I am new to the forum and have recently started working with Linux.
Quick question, I want a user list in alphabetical order as the output of a shell script.
Who can help me!?
Thanks!
From the netherlands ;) (5 Replies)
I've looking over a script for work and I've had a problem with the script not listing the files in alphabetical order. To look up PIDs for apps, it would be beneficial to have them listed in that order. Here is what I've been reviewing.
#!/usr/bin/perl
$str = sprintf "%4s %-40s", "PID",... (7 Replies)
Hi, need help in sorting lines between strings "<section status = “ole-service”>" and "</section>" in alphabetical order, based on the text in red. Hoping for an AWK or SED solution. Thank you.
...
<section status = “ole-service”>...
<p service = "OOO">XZZ</p>
<p service = "AAA">AAA... (3 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script program to count the ONLY the number of alphabetic characters stored in the shell variable... (1 Reply)
Discussion started by: kofine05
1 Replies
LEARN ABOUT POSIX
re
RE(1) General Commands Manual RE(1)NAME
re - programm to conver russian texts between different encodings
SYNOPSIS
re <infile><outfile><infrmt><outfrmt><f|b|s><u|l|s>
DESCRIPTION
This manual page was written for the Debian GNU/Linux distribution because the original program does not have a manual page.
re is a program that converts russian texts between encodings.
OPTIONS
The easiest way to convert some file into readable form (KOI-8), just type this:
re <SourceFile> <DestFile> ? K
where :
<SourceFile> - unreadable file
<DestFile> - resulting file
? - tells RE that source codepage is unknown and RE should analyze the file and determine the source codepage
K - tells RE that destination codepage is KOI-8
Note: If you know, what is source codepage, you may use it instead of "?" option. For example, you want to convert letter.txt file which
was written in Win you know, that this file is in 1251 codepage:
re letter.txt letter2.txt W K
Now examine the letter2.txt - you should see russian symbols in KOI-8.
Here is the know codepages list and their abbreviatures:
W - Windows 1251 "_" - _xxe
D - Dos "%" - %hex
K - KOI-8 "\" - 'hex
L - Latin G - Graph_win
I - Iso "<" - <binhex>
H - HEX + - +UTF7-
S - ShiftKbrd C - C_MIC
M - Mac Y - Y_c16
A - AFF Z - Z_c32
O - Odd(UTF8_1) F - F(UTF8_2)
B - Base64 P - Pict
E - Express N - N_Estl
T - T-Html V - V_Vpp855
U - User X - X_sp
"-" - uue J - J_diff
Other options are: [-v][-E|-R|-N][-e|-s]
-v - tells what is processing
-n - don't tells what is processing (default)
-E - converts all p,H from Russian to English
-R - converts all p,H from English to Russian
-N - lets all p,H Russian or English as in text (default)
-e - converts all symbols 0x80 - 0xFF
-s - converts only 64 symbols of Russian Alphabet (default)
AUTHOR
This manual page was written by Aigars Mahinovs <aigarius@debian.org>, for the Debian GNU/Linux system (but may be used by others).
March 21, 2000 RE(1)