08-29-2006
shell program to reverse the string
pls help me in getting that program
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. Shell Programming and Scripting
How to get the reverse parsing work.
I have a strings like
aqw-wef-324-err.log
wefd-324r-err.log
efrt-4rfr.log
.
.
i want to have string upto last hypen.
aqw-wef-324
wefd-324r
... (1 Reply)
Discussion started by: senthilk615
1 Replies
3. Shell Programming and Scripting
Hi,
I am very new to perl.
My question:
How i can reverse the given string using substr function but without using reverse function in perl?
Anybody please help.
thanks,
-Lalit (3 Replies)
Discussion started by: email-lalit
3 Replies
4. Shell Programming and Scripting
I have a file like this:
Dog Cat One ABCDEFGHIJ house
Dog Cat Two ABCDEFGHIJ house
Cat Cat One ABCDEFGHIJ house
Cat Cat Two ABCDEFGHIJ house
I want to look at $3 and if it says "Two" print out the line except reverse $4.
Dog Cat One ABCDEFGHIJ house
Dog Cat Two JIHGFEDCBA house ... (3 Replies)
Discussion started by: dcfargo
3 Replies
5. UNIX for Dummies Questions & Answers
Thanks so much vivekraj (0 Replies)
Discussion started by: andrew1400
0 Replies
6. Programming
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
7. Shell Programming and Scripting
Guys,
I am trying to find a way to achieve this. I need to print /usr/local/apche/htdocs only from the string /usr/local/apache/htdocs/file.php using the regex. The below did not work. I know a solution with normal cut, I need a way to do this with the awk regex.
awk '/+file.php/' (6 Replies)
Discussion started by: anilcliff
6 Replies
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
Hi All,
I would like to know , how to reverse a given string
example :
Hi how are you
Required Output:
you are how HiThanks (7 Replies)
Discussion started by: santhoshks
7 Replies
10. Shell Programming and Scripting
Hello,
Can anyone explain for me in this script to reverse the string?
1) the "x=x" part, how it works?
$ echo welcome | awk '{ for(i=length;i!=0;i--)x=x substr($0,i,1);}END{print x}'
$ emoclew2) x seems to be an array at the END, but can it automatically print the whole array in awk?
Thanks... (8 Replies)
Discussion started by: yifangt
8 Replies
SynCE(7) http://www.synce.org/ SynCE(7)
NAME
SynCE - A project for connecting to devices running Microsoft Windows Mobile.
DESCRIPTION
The SynCE project aims to provide libraries and tools to connect to and synchronise with PDA's and other devices running Microsoft Windows
Mobile, or Windows CE.
The main components include :-
libsynce
Core library that provides various support services and functions.
librapi2
Core library implementing the RAPI protocol, equivalent to rapi.dll on a Windows OS. RAPI is used for most kinds of interaction with a WM
device.
This library actually implements two versions of the protocol. RAPI 1 is used for devices up to and including CE 5.0, with RAPI 2 coming
into use from 5.1 (WM5).
librra
Library implementing RRA (Remote Replication Agent), a protocol used for synchronisation. This protocol is used for all data synchronisa-
tion until WM5, at which point Airsync is used for the majority. RRA is still used for file synchronisation however.
dccm
The dccm daemon negotiates the initial connection with a WM device, and may provide keep-alive signals and client connections, depending on
the device version and flavour of dccm.
There have been a number of dccm 'flavours'. The original, also known as synce-dccm, is now considered obsolete and should not be used.
Vdccm is a natural progression of dccm which is not greatly used anymore. Odccm is the most common in use at the moment, and uses dbus to
provide connections to both legacy and modern devices. Hal-dccm is a new option that integrates the dccm functionality into hal to provide
a more platform consistent interface.
The following steps are required to get started with SynCE:
(1) Ensure the rndis kernel module or a serial connection mechanism is installed
To use advanced network features (rndis) with a WM5 or later device, which is recommended, you must use the usb-rndis-[lite|ng] driver from
SynCE. For older devices or to use serial with WM5, if synce-hal is not used you will require the synce-serial package. You will of course
also need a dccm daemon, synce-hal or odccm is recommended.
(2) Start the connection daemon (as root)
If using odccm, this daemon must run as the root user. With synce-hal, dccm will be started as required. Older dccm implementations must be
run as your user.
(3) Run tools that access the device (as user)
See for example pls(1) and pcp(1).
See http://www.synce.org/ for more information about the SynCE project.
AUTHOR
This manual page was written by David Eriksson <twogood@users.sourceforge.net>. It was later updated by Jonny Lamb <jonnylamb@jonny-
lamb.com> and Mark Ellis <mark@mpellis.org.uk>.
SEE ALSO
odccm(1)
The SynCE project November 2002 SynCE(7)