Can any programmer do this task in shell script...
input file's one set header is this,
the out put file's header will look like,
Needed columns
Cast_No
CC
Cruise
Latitude
Longitude
YYYY
MM
DD
Time
Cast
#Levels
z
z_quality
z_quality1
1 ---------------------z value (here its 0,10 and 20)
1_quality ---------its (1),(2) and (3)
1_quality_1 ------its [00], [00], and [00]
2
2_quality
2_quality_1
As you see here, 3 is an additional column, which exists for some datasets and is missing for others. So this
header has to be constructed only once. i.e. at the beginning point. In order to keep track whether the header is constructed at least once, we need to make use of flag "_onceFlag" which is set to false initially. When header is constrcuted first time, and is written in the output file, _onceFlag is set to true and next time it won't write header information in the output file.
Time being I am using C++ program to do this task, problem is I need to enter file name every time...
So if any one can help to do this task, it will be helpful...
Hi
I have a file consists of the following similar lines (10 mb file)
2008-05-15 02:15:38,268 RMSConnectionFactory - Setting session state for connection.
2008-05-15 02:15:38,277 RMSConnectionFactory - Returning WS connection.
My task is to find out any missing second lines for... (14 Replies)
I have a file contains
TASK gsnmpproxy {
CommandLine = $SMCHOME/bin/gsnmpProxy.exe
}
TASK gsnmpdbgui {
CommandLine = $SMCHOME/bin/gsnmpdbgui.exe
I would like to comment and than uncomment specific task eg TASK gsnmpproxy
Pls suggest how to do in shell script (9 Replies)
Hi
I am looking for some one who is Brainbench Certified Shell Programmer, who can share his/her experience.
Actually I am planning to give exam, but before that wuld lik some1 to throw light on this..also if dumps are availble pls mail me @
niceboykunal123@gmail.com
Thanks & Regards,... (1 Reply)
Hi all,
I am new to shell scripting. And I have a task to do, I tried all possible ways to solve this, but didn't. Iwas wondering maybe someone could help me.
So I have a random file something like this
Andrew John Mike
Alfa Omega Beta
And I need to create scrip witch would filter any... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi all,
I am new to shell scripting. And I have a task to do, I tried all possible ways to solve this, but... (8 Replies)
ksh $CODE/dis/scripts/IS_BTEQ_LZ_TABLE_AUDIT.sh
DIS_BTEQ LZ_DIS_LOAD_LOG_KEY > $CODE/dis/logs/lz_table_audit_`date '+%Y%m%d_%H%M%S'`.log 2>&1
Can some one tell me what the above script is doing?
As per my understanding we are executing the script and sending the output to a log file. The... (4 Replies)
In following attached 748phy.xls file, fifth column is ST_Date, which contains time and dates in this format
22-11-2012 7:54:54 PM in single column
I want it to split in this format either 1st column 22/11/2012 and in second column 7:54:54 PM
Or like this in separate... (13 Replies)
Hi,
I need help in creating script for "User password reset in database" by logging into database from linux server and resetting the user password.
Could you please provide the script for this task?
Steps are given below.
1. Login into database from server
sqlplus... (5 Replies)