10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Froum.
I have tried in vain to find a solution for this problem - I'm trying to replace any double quotes within a quoted string with a single quote, leaving everything else as is.
I have the following data:
Before:
... (32 Replies)
Discussion started by: pchang
32 Replies
2. Shell Programming and Scripting
I need to search the file using strings "Request Type" , " Request Method" , "Response Type" and by using result set find the xml tags and convert into a single line?. below are the scenarios.
Cat test
Nov 10, 2012 5:17:53 AM
INFO: Request Type
Line 1.... (5 Replies)
Discussion started by: laknar
5 Replies
3. Shell Programming and Scripting
I have a csv data file :
A,B,C,D,"A,B",E,"GG,H"
E,F,G,H,I,J,"S,P"
I need to replace all "," with "|" except the ones between double quotes i.e
A|B|C|D|"A,B"|E|"GG,H"
E|F|G|H|I|J|"S,P"
CAn someone assist? (8 Replies)
Discussion started by: Shivdatta
8 Replies
4. Shell Programming and Scripting
Hi.
I will be very appreciated for help.
I need replace all characters into string with \ (backslash)
I mean if I have word abcdefg as input.
How I can convert it to \a\b\c\d\e\f\g
Thanks and best regards. Staas. (5 Replies)
Discussion started by: beckss
5 Replies
5. Shell Programming and Scripting
Hi
I got this:
aix.acct,aix.system.config.cron,aix.system.config.src,aix.system.install,string2
and
I want this:
aix.acct
system.config.cron
aix.system.config.src
aix.system.install
string2
I tried using sed by changing ',' into an 'ENTER' but I couldn't. :-(
thxs (2 Replies)
Discussion started by: iga3725
2 Replies
6. Shell Programming and Scripting
Hi Guys,
is there any command to convert the output returned by the below command to string format:
Code:
sed 1!d filename
Output is :
108
---------- Post updated at 11:03 AM ---------- Previous update was at 11:00 AM ----------
Because i am using this output as string parameter ... (4 Replies)
Discussion started by: kam786sim
4 Replies
7. Shell Programming and Scripting
Hi All,
I have a string like below.
"Mar 31 2009" .
I want to convert this to unix time .
Also please let me know how to find the unix time for the above string minus one day. For Eg. if i have string "Mar 31 2009" i want to find the unix time stamp of "Mar 30 2009".
Thanks in advance,... (11 Replies)
Discussion started by: girish.raos
11 Replies
8. Shell Programming and Scripting
Hi
I have a line/string as follows:
A=" 3498 NORDEA - INDX LINKED NORY"
which was converted into an array of characters:
p321$ echo "${ARR}"
3 4 9 8 N O R D E A - I N D X L I N K E D N O R Y
When I am trying print this array there are blank... (4 Replies)
Discussion started by: aoussenko
4 Replies
9. Shell Programming and Scripting
Hi people,
I need to convert a string eg 09/13/2008 to a valid unix date. (4 Replies)
Discussion started by: sameerspice
4 Replies
10. Shell Programming and Scripting
Hi,
I have a String input parameter like this: 20080430 (YYYYMMDD). Inside
my korn shell script I need to add one day to this date.
L_TRADE_DAY=$1
let L_TODAY=$L_TRADE_DAY+1
Offcourse this raises a problem at the end of a month. 20080430 + 1 gives 20080431 instead of 20080501.
... (2 Replies)
Discussion started by: ORatjeuh
2 Replies