Search Results

Search: Posts Made By: vinus
1,507
Posted By vinus
We can use awk or sed command.
We can use awk or sed command.
1,507
Posted By vinus
Sorry, that was typo error. It is...
Sorry, that was typo error. It is "Line".
1,507
Posted By vinus
Insert values into template
I have 2 files.


Template file:
SELECT


NAME = ""
DEATILS


Input file:
SERVER1 06/05/2016 10:00:00 06/05/2016 05:08:59
SERVER2 06/04/2016 09:50:00 06/05/2016 01:03:59
SERVER3...
1,277
Posted By vinus
Rudic, Thanks a lot for your help ! I tried...
Rudic, Thanks a lot for your help !

I tried epoch time logic and my code is working fine.
1,277
Posted By vinus
Update time stamp and replace values
Can anyone please assist?

I need to grab each line between the lines "HEADER" and "TRAILER"

Each line contains two timestamps(Timestamp1) and (Timestamp2). I need to create two variables...
2,681
Posted By vinus
Scrutinizer, Thanks a lot for your help ! ...
Scrutinizer,

Thanks a lot for your help !

I tried the below line and it worked .
echo "$LINE" | awk '{print $0}' | grep "[\*]*.Message Completed*" >>$TestFile


I spent many hours and...
2,681
Posted By vinus
The code is not working inside the script. If...
The code is not working inside the script.
If i try grep "[\*]*.Message Completed*" $Logfile in the command line its printing the correct line. But if i try the below line inside the script its...
2,681
Posted By vinus
Search file pattern using grep command
I 'm writing a script to search particular strings from log files. The log file contains lines start with *. The file may contain many other lines start with *. I need to search a particular line...
1,174
Posted By vinus
My code is working fine . I have modified my case...
My code is working fine . I have modified my case statement and its working as expected. Thanks

---------- Post updated at 03:17 PM ---------- Previous update was at 03:10 PM ----------

Don,
...
1,174
Posted By vinus
Rudic, Search strings and log files are...
Rudic,

Search strings and log files are different. The other log file is small. I tried with cat command and it worked, but i can't use cat command, have to use tail command. Is my code OK? Any...
1,174
Posted By vinus
Log script issue
I'm writing a script that will monitor in real time the log file for some messages and then kill the monitor script if it find a particular message. I have written similar type of script and its...
9,051
Posted By vinus
Thanks Rudic ! Yes, the SQL does accept one...
Thanks Rudic !

Yes, the SQL does accept one line UPDATE statements. I tried your code with few columns and its working as expected. I think the sql will work even if we have one line update...
9,051
Posted By vinus
Thank you so much Rudic ! Its working as...
Thank you so much Rudic ! Its working as expected. I'm testing the code with more files and let you know if i find any issues.

Thanks for ur help!

---------- Post updated 02-02-16 at 01:43 PM...
9,051
Posted By vinus
Thanks for ur help! Yes, the input file may...
Thanks for ur help!

Yes, the input file may contain more columns. Ex: if inputfile1(contain column names) has 7 columns, then the data file (inputfile2) will also contain the same number of...
9,051
Posted By vinus
Thanks for your help! I have to create the...
Thanks for your help!

I have to create the update statements for the uncommented columns from inputfile1. Also the file may contain n number of columns, so dynamically need to build the query. I...
9,051
Posted By vinus
Can anyone please assist? I need to write the...
Can anyone please assist? I need to write the code in ksh.
9,051
Posted By vinus
Shell scripting - - need help
Can anyone please assist me?
I have attached 2 input files and one output file. I need to generate the sql update statements using the above 2 input files. if input_file2 has 5 rows, then we should...
9,051
Posted By vinus
Generate sql statement using shell scripting
Can anyone please assist me?
I have attached 2 input files and one output file. I need to generate the sql update statements using the above 2 input files. if inputfile2 has 5 rows, then we should...
1,206
Posted By vinus
The field numbers are always equal. ...
The field numbers are always equal.

---------- Post updated at 03:12 PM ---------- Previous update was at 03:10 PM ----------



I'm not sure whether this logic will work because ^F509 can...
1,206
Posted By vinus
Pattern search and modify the values
I have one file and the file may contain 500 to 15,000 records. I need to search pattern ^F509= and then increment the corresponding value by one and print the entire line.
Please note that Its not...
1,168
Posted By vinus
UNIX shell scripting - help needed
Can anyone please help me to create the output file based on the attached input files using ksh script.

I have 2 input files
1) inputfile1.txt
2) inputfile2.txt

The script should accept 2...
2,848
Posted By vinus
Thank u so much ! Its working fine.
Thank u so much ! Its working fine.
2,848
Posted By vinus
Thank u so much for your help! I have used nawk...
Thank u so much for your help! I have used nawk and the code is working, but one minor issue. The last K record is not inrementing. Can u please assist?
ex: current Output


00123T10
00123T11...
2,848
Posted By vinus
I tried with -B option and getting -B: bad...
I tried with -B option and getting -B: bad option(s).
KSH version
Version M-11/16/88i
2,848
Posted By vinus
I have tried your code and the output is not...
I have tried your code and the output is not correct. the output should be like this. Please help !

00123T10
00123T11
00123T12
00123T14
.......
00123T20
00123K00
...
00123K04
06754T10...
Showing results 1 to 25 of 52

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