I am writing a script which will read a word and say how many vowels and consonants does the word contain. but i dont know how to traverse a string in shell scripting. if it was in C i'd have done something like this:
but i have no idea how to use for loop like that in shell.
thanks in advance
I'm pretty new at this UNIX stuff, and this may be a simple question but I'm kind of stuck :confused:
Let's say I have a large directory structure of .essay files,
where I saved all of the essays that I did over the last few years. Not all of the .essay files are in the same directory (all... (1 Reply)
Hi Folks
I am pretty new to unix and shellscripting.
I need help on writing logic on traversing recursively through a set of directories under a top-level folder and delete files(mostly text) which are 1 month old.
Can you people help me on this?
Thanks a lot
Ravi (5 Replies)
Hi,
I am using GVim as editor... and i am viewing code of pascal/ delphi..
my problem is its difficult to use GVim as source code browser....
normally ctags helps to traverse in vim for c/c++..
is there anything like that for pascal/ delphi to minimise this complication of each... (0 Replies)
Hi
i have the following structure
struct S
{
char Mod_num;
char val;
char chr_nm_cd;
}
I am reading a 2GB file and inserting into the structure and writing into a vector.
I feel like only vector will be a right option. I tried with multimap but it is memory intensive and hence i... (1 Reply)
Hi,
I have a parent directory in which I have sub directories of different depth
/usr/usr1/user2/671
/usr/usr1/672
/usr/user2/user1/673
/usr/user2/user3/user4/674
And I need the names of all the directories that which starts only with 6 in a file.
Thanks, (12 Replies)
Please find the below program. the requirement and description of the program also given:
ganesh@ubuntu:~/my_programs/c/letusc/chap9$ cat fa.c.old
/* Program : write a program to count the number of 'e' in thefollowing array of pointers to strings:
char *s = {
"We will teach you how... (12 Replies)
I was given to create a backup of all files in a given directory(command line argument) into say /home/vishal/back and the back up files must be accordingly to the extension of the file i.e pdf files are saved in back/pdf doc files back/doc etc . I gave a recursive function to traverse through the... (1 Reply)
Hello,
I want to loop thru a vector composed of many entries as structure, which contains sequenceID and sequence. At looping, delete any structure if the sequence is a perfect-match substring of another sequence of any other structure, so that the resulted vector contains only unique sequences.... (1 Reply)
Discussion started by: yifangt
1 Replies
LEARN ABOUT OSF1
dxmgetlocalestring
DXmGetLocaleString(3X)DXmGetLocaleString(3X)NAME
DXmGetLocaleString - Provides locale-sensitive Motif compound string version of Toolkit ASCII default values.
SYNOPSIS
XmString DXmGetLocaleString(
I18nContext context,
char *string,
I18nWordType word_type );
PARAMETERS
Reserved for future use. (Null value passed.) Null-terminated string specifying the ASCII string value whose locale sensitive version is
to be retrieved (for example, the string "OK"). Specifies the type (part of speech) of a word in the string, as indicated by one of the
following values:
------------------------------------------
Value Description
------------------------------------------
I18NADJECTIVE The word is an adjective.
I18NADVERB The word is an adverb.
I18NNOUN The word is a noun.
I18NVERB The word is a verb.
------------------------------------------
DESCRIPTION
The DXmGetLocaleString routine provides a locale-sensitive Motif compound string version of Toolkit ASCII default values, such as "OK" or
"Cancel". You can specify the part of speech (adjective, adverb, verb, or noun) associated with each word in the string.
RETURN VALUES
A pointer to the Motif compound string containing the value.
DXmGetLocaleString(3X)