Unix shell program that reverse a string...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Unix shell program that reverse a string...
# 1  
Old 02-26-2010
Shell program...

Thanks so much vivekraj

Last edited by andrew1400; 02-27-2010 at 12:17 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to execute a unix shell script from a java program

Hi All, well , i am facing this problem.. i have tried a few sample codes but there isn't any solution . could anyone please give a sample code as of how to do this... Please see the below details...and read the details carefully. I have written some code, logic is 1)from... (4 Replies)
Discussion started by: aish11
4 Replies

2. Shell Programming and Scripting

Reverse of a string

Hi All, I have a String str="Manish". I would like to reverse it. I know the option to do this in bash is: echo "Manish" | rev but I have seen an alternate solution somewhere, which states that: str="Manish" echo $str | awk '{ for(i=length($0);i>=1;i--) printf("%s",substr($0,i,1));... (7 Replies)
Discussion started by: manishdivs
7 Replies

3. Programming

String reverse

Hi all, I jus wanna print string b after reversing it. but the out put is blank. My code snippet is below. :wall: int main() { char * a, * b; b = new char; a = new char; int len, le; le = 0; cout<< " enter your string \n"; cin>> a; len = strlen(a); for(int i =... (8 Replies)
Discussion started by: vineetjoshi
8 Replies

4. Shell Programming and Scripting

Shell program in unix

Hi, Iam having the following situation: Iam reading one file and taking that line one by one and searching that word in file2 using grep command read_file1() { cat file1| while read line do grep $line file2 >> outputfile.dat done } now iam having file 1 q q a s... (13 Replies)
Discussion started by: nivas
13 Replies

5. Shell Programming and Scripting

Shell program in unix

Hi, Iam having file 1 and file 2 as follows: file1 file2 a a a b a c b c I want to get an output file which contains a a (4 Replies)
Discussion started by: nivas
4 Replies

6. Programming

Returning Strings from C program to Unix shell script

Hi, I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script. I refered a thread in this forum. But using that command in the code, it is throwing an error clear_text_password=$(get_password) Error: bash:... (24 Replies)
Discussion started by: venkatesh_sasi
24 Replies

7. Filesystems, Disks and Memory

shell program to reverse the string

pls help me in getting that program (1 Reply)
Discussion started by: saikiran
1 Replies

8. Programming

Returning Strings from C program to Unix shell script

Hi, Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string. Is there any way i can return the decrypted string to Unix shell program. My shell script uses the output of the program to... (11 Replies)
Discussion started by: satguyz
11 Replies

9. Shell Programming and Scripting

string in reverse

Can we print any string in reverse order? For example: oracle 16294 1 0 Aug 11 ? 0:00 ora_reco_crepd oracle 16276 1 0 Aug 11 ? 0:19 ora_dbw0_crepd I need second last column from this output. (0:00 & 0:19). I can use awk print $2 after reversing the string. ... (4 Replies)
Discussion started by: malaymaru
4 Replies

10. Shell Programming and Scripting

ftp files from Unix to Windows through shell program

Hi, I made a shell script to allow user to ftp file to windows shared drive. Here is part of my code within my shell script: /usr/bin/ftpmtc $usr $pswd $jobno Within 'ftpmtc': #ARGUMENT: USER,PASWD,JOBNO,VER,LOG_DATE,$$ $UCB/echo "user $1 $2" > $inst_file $UCB/echo "cd prod" >> $inst_file... (7 Replies)
Discussion started by: whatisthis
7 Replies
Login or Register to Ask a Question
XmRepTypeAddReverse(3X) 												   XmRepTypeAddReverse(3X)

NAME
XmRepTypeAddReverse - A representation type manager function that installs the reverse converter for a previously registered representation type SYNOPSIS
#include <Xm/RepType.h> void XmRepTypeAddReverse (rep_type_id) XmRepTypeId rep_type_id; DESCRIPTION
XmRepTypeAddReverse installs the reverse converter for a previously registered representation type. The reverse converter takes a numeri- cal representation type value and returns its corresponding string value. Certain applications may require this capability to obtain a string value to display on a screen or to build a resource file. The values argument of the XmRepTypeRegister function can be used to register representation types with nonconsecutive values or with duplicate names for the same value. If the list of numerical values for a representation type contains duplicate values, the reverse con- verter uses the first name in the value_names list that matches the specified numeric value. For example, if a value_names array has can- cel, proceed, and abort, and the corresponding values array contains 0, 1, and 0, the reverse converter will return cancel instead of abort for an input value of 0. Specifies the identification number of the representation type SEE ALSO
XmRepTypeGetId(3X), XmRepTypeRegister(3X) XmRepTypeAddReverse(3X)