Search Results

Search: Posts Made By: Vikram_Tanwar12
1,442
Posted By Vikram_Tanwar12
Thanks for the Reply Jim. The problem is...
Thanks for the Reply Jim.

The problem is that the ping command is not working properly on my system (redhat) It get stuck on the command prompt. That's why I am trying to check the status of...
1,442
Posted By Vikram_Tanwar12
Exit the script when all servers are down
Hello All,

I have a script which needs to exit once it encounters that all the servers are down. In the below portion of a code the content manager is having values of server for example server A...
1,327
Posted By Vikram_Tanwar12
Hello Vbe, Actually I was writing the below...
Hello Vbe,

Actually I was writing the below code.

sed -n "/PTR_Security_Reporting/,/Successfully Exported PTR_Security*/p" input

As there was multiple occurrence of...
1,327
Posted By Vikram_Tanwar12
[Solved] How to print specific text from a file?
Hi All,

I have the below text file from which I have to cut particular section starting from PTR_Security_Rpeorting.cpf to PTR_Security_Reporting_Env93_export.



Report Model............:...
1,612
Posted By Vikram_Tanwar12
Thanks for the reply. Actually iam checking...
Thanks for the reply.

Actually iam checking these error from a single log file. It consist around 900-1000 Lines. I need to check error staring from one section of report to the starting of...
1,612
Posted By Vikram_Tanwar12
Reduce the number of lines in script
Hello All,

I have created a script which will show the errors from a log file in between a particular section.

v1=$(sed -n "/Main Report/,/Main Report End/p" input | grep -i 'Unable to find'...
2,617
Posted By Vikram_Tanwar12
This is my scenario Iam running this script...
This is my scenario

Iam running this script as the main script


./app1.sh -e envxxws -b DUMMY -c BPEL configure deploy


and the below one is the one which iam using at the end of this...
1,149
Posted By Vikram_Tanwar12
I guess you should try the absolute path for your...
I guess you should try the absolute path for your file.
2,617
Posted By Vikram_Tanwar12
How to execute same script independently?
Hello All,

I have one script for example a1.sh. I want to execute the same a1.sh script inside a1.sh script at the end with different parameter such that the second one will run independently. I...
1,037
Posted By Vikram_Tanwar12
Thanks Pravin. It worked fine. If possible can...
Thanks Pravin. It worked fine. If possible can you please explain the code and also can you let me know from which site i can start learning awk.
1,037
Posted By Vikram_Tanwar12
Find the common values
Hi,

I have two files with the below values.

file1


305231921 1.0 ben/Ben_Determination_Appeals
1348791394 2.0 ben/Ben_Determination_Appeals]
1305231921 1.0 ...
1,578
Posted By Vikram_Tanwar12
Yes Rudic bash and ksh both are available. So...
Yes Rudic bash and ksh both are available. So shall i try in bash.

Yup it worked in Bash. Thank you.
1,578
Posted By Vikram_Tanwar12
Iam using bourne shell and Linux (Redhat 5).
Iam using bourne shell and Linux (Redhat 5).
9,783
Posted By Vikram_Tanwar12
What is your desired output by using both grep...
What is your desired output by using both grep and awk.

If you are trying to get the same result by using awk and sed in variable you can simply right the below line


v1=$(grep DEPLOYMENT...
1,578
Posted By Vikram_Tanwar12
Hi Rudic, Thanks for the response but...
Hi Rudic,

Thanks for the response but somehow iam getting below error. Not sure iam trying it correctly or not.


comm -23 <(sort /apps/psr/build_dev/Modified_workflow_env52ws.lst) <(sort...
1,578
Posted By Vikram_Tanwar12
How to sort and compare files in more efficient manner?
Hello All,

Iam using below method to sort and compare files. First iam doing sorting and changing the same file and then doing comparing and taking the final result to another file.


sort -o...
943
Posted By Vikram_Tanwar12
Thanks Yoda. Awk is simply very powerful. Need to...
Thanks Yoda. Awk is simply very powerful. Need to learn it to know more about it.
943
Posted By Vikram_Tanwar12
Thanks Yoda. Could you please explain it.
Thanks Yoda. Could you please explain it.
943
Posted By Vikram_Tanwar12
Thanks a lot Yoda. What if i want to delete the...
Thanks a lot Yoda. What if i want to delete the highest version of that name from the same list. Iam not able to find out about awk deletion.
943
Posted By Vikram_Tanwar12
How to print out the unique value?
Hello All,

I have a file with below sample values.


Ben_Determination_Appeals_BPEL[1.0]
Ben_Determination_Appeals_BPEL[2.0]
Ben_Determination_Appeals_BPEL[3.0]...
1,812
Posted By Vikram_Tanwar12
This will work in that case awk -F"[ /]+"...
This will work in that case

awk -F"[ /]+" '$2!~/^[3-4]/ {print $4"["$2"]"}' file

This means starting from 3 to 4 it will ignore those values. Similarly you can put any which u want to...
1,812
Posted By Vikram_Tanwar12
Hi Karthikeayan, awk -F"[ /]+" -...
Hi Karthikeayan,


awk -F"[ /]+" - This is for field seperator means removing this slash sign
$2!~/^3/ - This means $2 means second column should not be starting with value 3...
1,812
Posted By Vikram_Tanwar12
Excellent Jotne. Its time for me to learn awk...
Excellent Jotne. Its time for me to learn awk deeply as it is very powerful utility. Thanks again.
1,812
Posted By Vikram_Tanwar12
How to concat columns?
Hello All,

I have a file with following data.


1365787116 3.0 contracts/Procs_Val_Req_forContrct_Amnd_BPEL
1348791394 2.0 contracts/Procs_Val_toTerm_Ret_Contrct_BPEL...
Forum: Red Hat 04-04-2013
1,365
Posted By Vikram_Tanwar12
[SOLVED] How the alias is working?
Iam facing some strange issue with alias. I have an alias file in which i have created lot of aliases as given below.

export BUILD_HOME=/apps/psr/build
export DB_HOME=/apps/psr/database
export...
Showing results 1 to 25 of 167

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