Search Results

Search: Posts Made By: krishnaux
Forum: Linux 01-27-2012
3,132
Posted By krishnaux
Thanks for the replies, I got this now :) :b::)
Thanks for the replies, I got this now :) :b::)
Forum: Linux 01-27-2012
3,132
Posted By krishnaux
Decode the statement!!
What will the below statement do ?:confused:

[ -z "$VAR" ] &&
{
[ -x "/bin/setup" ] && {eval `/bin/setup 1`} || [ -d "/tmp/" ] && { VAR="/tmp" }
export $VAR;
}
1,939
Posted By krishnaux
Thanks very much !! this is what i was looking...
Thanks very much !! this is what i was looking for and it works :)
1,939
Posted By krishnaux
Calling commands with ksh
Hi,

I am not able to run below command on linux, it however works on solaris. If anyone knows the reason and a solution for it can you please let me know ?

Linux
-----
$> ksh 'echo hi'...
11,983
Posted By krishnaux
thanks ctsgnb! from this I got a clue and wrote...
thanks ctsgnb! from this I got a clue and wrote below command which worked for me :)

nawk -F"<" ' { for(i=18;i<=NF-1;i++){ print "<"$i } }' File.xml > temp.xml
tr -d '\n' < temp.xml > File.xml
11,983
Posted By krishnaux
anyone got an idea on the above ?
anyone got an idea on the above ?
11,983
Posted By krishnaux
thx for the reply. but this is not working. I had...
thx for the reply. but this is not working. I had tried this earlier and it doesn't give any output at all maybe due the volume of records ? not sure....when I size down the file to only two to three...
11,983
Posted By krishnaux
I have attached the file that I am working on. I...
I have attached the file that I am working on. I want the data between first <FEEDMessage> and the last </FEEDMessage> extracted (including the tags) and writen to another file on unix.
11,983
Posted By krishnaux
Thanks Guys for the response. The sed command...
Thanks Guys for the response. The sed command works for me :)

---------- Post updated 04-12-11 at 03:41 AM ---------- Previous update was 04-11-11 at 10:30 AM ----------

The sed workded for me...
11,983
Posted By krishnaux
extract text between two words on a single line
Hi Guys,

Can someone help me with a way to extract text between two words on a single line.

For example if the file has below content I want to extract all text between b and f inclusive of b...
5,541
Posted By krishnaux
ThanQ
Thanks Guys, it worked for me :) !!!!
5,541
Posted By krishnaux
Thanks for the reply. here is the code. ...
Thanks for the reply. here is the code.

-----------------------------
#!/usr/bin/ksh

Load clearcase
cleartool setview j999999
$HOME/test.ksh
-----------------------------

The cleartool...
5,541
Posted By krishnaux
how to jump a shell !!
Hi,

can someone point out a solution to my problem below.

Within a shell script TEST.ksh I have to run two commands CmdA & CmdB one after the other as below.
-------------
TEST.ksh...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 01:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy