Hi,
I am trying to write shell script for below requirement
File has below values
I am writing shell script to achive if 1st column @mqm and 2,3rd columns are conditions then 4th columns values should check. If 4th columns values is less than above mentioned value then it should change to above mentioned value. If 4th column value is greater than above mention value then it should leave it.
When i run the script it should do above checks.
For example. let us ake First row
1st columns (@mqm) should check 2nd column (soft) then 3rd column(npproc) if it is pattern then it should check for 4th column value(75000). As 4th column value is Equal to 75000 then it should leave the value as it is if less than 75000 then it should change to 75000, if it is greater than 75000 (assume 80000) then it should leave as it is to 85000
Can you help me in achiveing or writing this script
I'm trying to read a bunch of log files and output the lines that contain particular strings.
To accomplish this, I've been running the following from the command line:
find . -name "*" | xargs grep " " | grep " " > output.txt
Two grep statements are needed in case I'm looking for a... (3 Replies)
Hi All,
I have some data like below.
Step1,Param1,Param2,Param3
1,2,3,4
2,3,4,5
2,4,5,6
3,0,1,2
3,0,0,0
3,2,1,3
........
so on
Where I need to find the median(arithmetic) of each column from Param1...to..Param3 for each set of Step1 values.
(Sort each specific column, if the... (5 Replies)
Hi All,
I need the modification for the below mentioned code (found in one more post https://www.unix.com/shell-programming-scripting/27161-script-generate-average-values.html) to find the average values for all the columns(but for a specific rows) and print the averages side by side.
I have... (4 Replies)
Hello All,
I have a .CSV file where I expect all numeric data in all the columns other than column headers.
But sometimes I get the files (result of statistics computation by other persons) like below( sample data)
SNO,Data1,Data2,Data3
1,2,3,4
2,3,4,SOME STRING
3,4,Inf,5
4,5,4,4
I... (9 Replies)
I have a flatfile A.txt
date|products|notes|location
121117|a108|this is a test|florida
121118|b111|just test it|tampa
How do i write an awk to create a file name as location.txt and have products:notes
awk -F'|' '{ print $2 ":" $3 }' A.txt > $4.txt
I am sure it cannot write to... (5 Replies)
So I have a space delimited file that I'd like to split into multiple files based on multiple column values.
This is what my data looks like
1bc9A02 1 10 1000 FTDLNLVQALRQFLWSFRLPGEAQKIDRMMEAFAQRYCQCNNGVFQSTDTCYVLSFAIIMLNTSLHNPNVKDKPTVERFIAMNRGINDGGDLPEELLRNLYESIKNEPFKIPELEHHHHHH
1ku1A02 1 10... (9 Replies)
Hi there,
Am tasked with writing a script to give a similar output like this every 5 minutes:
Total_PDP WEB_PDP BB_PDP WEB_AVAI_IP BB_AVAIL_IP
Oct 9 15:06 2014 2000 1000 1000 200 400
Any idea on how to go about this, I have not done something like this... (1 Reply)
Hi,
I need to write a statement which will read a data from a specific line based on condition and then read related lines to delete.
For example:
|T20150322
100930290
208940000
598000080
700000000
930000202
100000000
.T56789
|T20150322
0100000000
0200000000
0500000000
9000000000... (1 Reply)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Dear Unix gurus,
We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)