Search Results

Search: Posts Made By: shalua
7,758
Posted By shalua
I am looking for an answer to my question. Any...
I am looking for an answer to my question. Any pointers or answers will be appreciated.

Thanks
7,758
Posted By shalua
How to check if a file exists
I need to check following three things:

a) a file exists but is zero byte
b) a file exists with non-zero bytes
c) a file doesn't exist at all

What switches do we use? Is it -f, -s, -z. Please...
Forum: Solaris 04-28-2008
15,464
Posted By shalua
how to get server statistics
Hello

What commands can give following type of information about the server:

Time: 20080331.12:10:39
Current CPU: 97.0%
Current Memory: 3.7%
Current Disk Space: 76%
The resources on server...
4,241
Posted By shalua
Hi Rubin Thanks for getting back!! My...
Hi Rubin

Thanks for getting back!! My requirements is still the same. Since the grep logic didn't work for me, I started trying the sed logic and I thought I can check if the count returned is 3....
4,241
Posted By shalua
sed -n -e '/BBB/p' -e '/AAA/p' emp.dat | sed -n...
sed -n -e '/BBB/p' -e '/AAA/p' emp.dat | sed -n '$='

works for me on the command line and gives me the count of lines matching either of these two patterns. But when I put it in the shell script,...
4,241
Posted By shalua
also my script is a ksh script.
also my script is a ksh script.
4,241
Posted By shalua
neither worked!! In both cases it hangs,...
neither worked!!

In both cases it hangs, looks like some syntax issue. any further suggestions!!
4,241
Posted By shalua
Just want to make my question more clear. I want...
Just want to make my question more clear. I want to check if all 3 lines exist or not, meaning an AND condition.

Thanks!!
4,241
Posted By shalua
search for lines in a file
Hello

I need to check if following three files exist in a file, how to do that in shell script:
1. ALL MACHING RECORD COLUMNS MATCHED (Baseline and Regression File)
2. Total Mismatched Records...
1,706
Posted By shalua
How to get rid of last line
I have to process a data file in Ab Initio. This data file is pipe delimited. BUt the file may have a Disclaimer line at the end. So before picking it for processing, I need to check if this line is...
4,833
Posted By shalua
Thanks much for all help. I am new to shell...
Thanks much for all help. I am new to shell scripting, could you please point me to a good shell scripting tutorial.
4,833
Posted By shalua
Basically the header of the file is tab delimited.
Basically the header of the file is tab delimited.
4,833
Posted By shalua
And this is the output of head -1...
And this is the output of head -1 /home/z1uals/src/pdsa/mydat/textDMR.txt:
DMR_RUN_ID RMA_SERVER_ID INSTRUMENT_ID PORTFOLIO_ID OAS PRICE
4,833
Posted By shalua
Dmr_run_id,rma_server_id,instrument_id,portfolio_i...
Dmr_run_id,rma_server_id,instrument_id,portfolio_id,oas,price
4,833
Posted By shalua
This returns a value, but it is not in the...
This returns a value, but it is not in the correct format as we are expecting.
4,833
Posted By shalua
Basically this delimited string is the header of...
Basically this delimited string is the header of a file, and it is tab delimited not comma. So if I tweak your code like following, I believe I am doing something wrong, because I don't get anything...
4,833
Posted By shalua
Thanks!! This will be a good learning for me....
Thanks!! This will be a good learning for me. There are three things:

1. empno was a typo, so what you did is correct.
2. I don't want comma after the last line.
3. also if any attribute in the...
4,833
Posted By shalua
building a SET clause in shell script
Hi,

I have a comma delimited string, e.g. empno, ename, sal.

Using Korn Shell Script I want to build the SET clause for an UPDATE statement, and set clause should look like this:
...
Showing results 1 to 18 of 18

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