Search Results

Search: Posts Made By: tmalik79
1,295
Posted By tmalik79
Sorry for that. is removed as that is...
Sorry for that.


is removed as that is not relevant.
I am not encountering error but my array sequence is getting changed in run time.

if you observer output every time second loop is...
1,295
Posted By tmalik79
Hi Rudic, Thanks for quick response. Output...
Hi Rudic, Thanks for quick response.

Output is from above script, I just modified IP address due to sensitivity of the data. when i executed above script thats what exactly printed on screen.
...
1,295
Posted By tmalik79
Bash array variables are changed in loop runtime
I am trying to check whether particular host and port are responding or not. I am using below script to check. but node_port array that i am using in loop is getting replaced with previous iteration...
1,108
Posted By tmalik79
Display latest record from file based on multiple columns combination
I have requirement to print latest record from file based on multiple columns combination.
EWAPE EW1SLE0000 EW1SOMU01 ABORTED 03/16/2015 100004 03/16/2015 100005 001
EWAPE EW1SLE0000 EW1SOMU01...
1,764
Posted By tmalik79
Thanks you very much.. it is working..
Thanks you very much.. it is working..
1,764
Posted By tmalik79
Display files based on particular file timestamp
Hi,

I have requirement to list out files that are created after particular file.
ex. I have below files in my directory. I want to display files created after /dirdat/CG1/cg004440 file.

...
1,295
Posted By tmalik79
Find logon user based on executed script proc id
Hi,
i have requirement to find logged in user based on process id. i have below scenario.

1. all my users will logon to unix box using ssh from windows system.
2. after successful logon they...
6,122
Posted By tmalik79
Reset while loop to loop same file multiple times
Hi,
I want to read file multiple times. Right now i am using while loop but that is not working.

ex.
While read line
do
while read line2
do
echo stmt1
...
1,079
Posted By tmalik79
Create softlinks between 2 different hosts
Hi

I want to create softlinks, my source files and folders are placed in one server(hostname: info-1) and i want to access those files from different host(hostname :info-2).

file and folder...
4,739
Posted By tmalik79
Thank you very much.
Thank you very much.
4,739
Posted By tmalik79
My output is in variable and i want to read that...
My output is in variable and i want to read that variable and print the required number.

The above solutions are perfectly working with outfile. But I dot want to create file to store values and...
4,739
Posted By tmalik79
i want to pass 8 value as parameter. When i am...
i want to pass 8 value as parameter. When i am passing parameter it not printing anything.

$ln_num=8
$awk '{if($0>$ln_num){print $0;exit}}' outfile
4,739
Posted By tmalik79
find greater than value
Hi

I want to find greater than and min value.


dategrep()
{
varlinenum=$1
varSESSTRANS_CL="$(egrep -n "<\/SESSTRANSFORMATIONINST>" tmpsess9580.txt | cut -d":" -f1)"
echo...
9,627
Posted By tmalik79
Here is the sample input file. <MAPPING...
Here is the sample input file.

<MAPPING DESCRIPTION='' ISVALID='YES' NAME='m_UPROCS_DEPENDENCIES_LST' OBJECTVERSION='1' VERSIONNUMBER='2'>
<TRANSFORMATION DESCRIPTION=''...
9,627
Posted By tmalik79
Thanks for all your help and time. This is really...
Thanks for all your help and time. This is really helpful to me and my whole project delivery is dependent on this.

I have tried above stmt and changed file name to.. I may not filter the data....
9,627
Posted By tmalik79
Thanks a lot. Above code is working with sample...
Thanks a lot. Above code is working with sample file which i given.

But when i am trying with original file which has many other tags not returning any output.

I am using Unix KSH terminal and...
16,452
Posted By tmalik79
Thanks for solution.. But i was looking for. ...
Thanks for solution.. But i was looking for.

line starts with '<SESSION ' and also contains 'NAME=' in same line anywhere as a first parameter. this will gives me exact session which i want and...
9,627
Posted By tmalik79
Here is what i am trying to achieve.. I...
Here is what i am trying to achieve..

I want print the data or create file line starts with '<MAPPING ' and contains 'NAME=$variable1' anywhere in the line and other line with </MAPPING>. This is...
9,627
Posted By tmalik79
Thanks ctsgnb. I am trying to use above...
Thanks ctsgnb.

I am trying to use above statement to find range. This is to get the data from between lines.

sed -n '/<MAPPING [^>]*NAME=/!d/,/<\/MAPPING>/p' filename

But above stmt is...
16,452
Posted By tmalik79
This is really helpful.. But this is creating n+1...
This is really helpful.. But this is creating n+1 output files. If i have 2 occurrences of the </SESSION> string in a file but output files are 3.

---------- Post updated at 01:49 PM ----------...
9,627
Posted By tmalik79
How to print line starts with specific word and contains specific word using sed?
Hi,

I have gone through may posts and dint find exact solution for my requirement.

I have file which consists below data and same file have lot of other data.

<MAPPING DESCRIPTION =''...
16,452
Posted By tmalik79
Thanks for your prompt response. Is there...
Thanks for your prompt response.

Is there any way to to split the output occurrence wise. I want to print first occurrence into file1 and 2nd occurrence into file2.
16,452
Posted By tmalik79
find string nth occurrence in file and print line number
Hi

I have requirement to find nth occurrence in a file and capture data from with in lines (between lines)

Data in File.
<QUOTE>
<SESSION>
<ATTRIBUTE NAME='Parameter Filename'...
2,915
Posted By tmalik79
Read variables names from array and assign the values
Hi,

I have requirement to assign values to variables which are created dynamically.

Below is the code which i am using to achieve above requirement.

#!/bin/ksh

oIFS="$IFS"; IFS=','
...
2,837
Posted By tmalik79
This helps me a lot.. Thank you very much scottn
This helps me a lot.. Thank you very much scottn
Showing results 1 to 25 of 27

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