Search Results

Search: Posts Made By: Veera_V
2,152
Posted By Veera_V
I strongly agree that using awk work can be made...
I strongly agree that using awk work can be made easier.

1. shell used: /bin/ksh

2. only basic functions using awk can be allowed eg; awk -F\t '{print $0 }' .
(as per coding standards.
...
2,152
Posted By Veera_V
below idea I have to go with (without using awk...
below idea I have to go with (without using awk ). I am trying make script short and give exact results.


cat -n header > file1

cat file1

1:15:SCHEMA.TABLE1
2:25:SCHEMA.TABLE2...
2,152
Posted By Veera_V
OS : 5.10 Sun solaris. This is not homework ...
OS : 5.10 Sun solaris.

This is not homework

You always seems to be commenting guy rather than proving ideas.

You aren't a teacher and I am not school Kid.

Veera.
2,152
Posted By Veera_V
Grep content between specific lines
cat file1

*FileHeader* Partition 0
Total Data Bytes 1416
Avg Bytes/Record 1416
Others 1
...
6,911
Posted By Veera_V
Hi Rudi, Your code results if value is null then...
Hi Rudi, Your code results if value is null then count is 0.

I also need if static word exist in file,place the value.


Based on your code, below came in my mind.


while read line

do ...
6,911
Posted By Veera_V
Is it possible without awk and sed. as its needs...
Is it possible without awk and sed. as its needs to run with commands (not advanced like awk) in environment.
6,911
Posted By Veera_V
Static words to grep: Insert update ...
Static words to grep:

Insert
update
delete
fieldcomp
lob
After Images

File content:


SCOTT.TEMP_TBL Partition 4
Total Data Bytes 26084...
6,911
Posted By Veera_V
If grep value is null then assign 0 to variable
DELETE=`cat $logfile1 | egrep -i "Delete" | sed 's/ */ /g' | cut -d" " -f2`

INSERT=`cat $logfile1 | egrep -i "Insert" | sed 's/ */ /g' | cut -d" " -f2`

UPDATE=`cat $logfile1 | egrep -i...
1,965
Posted By Veera_V
Any other way we can do it without using awk?
Any other way we can do it without using awk?
1,965
Posted By Veera_V
Grep start and end line of each segments in a file
Cat file1

--------
----------
SCHEMA.TABLE1
insert-------
update-----
-------------
----------
SCHEMA.TABLE2
insert-------
update-----
-----------
------------
SCHEMA.TABLE3...
21,968
Posted By Veera_V
Expected: Col1 col2 Col3 1 2 3 ...
Expected:
Col1 col2 Col3
1 2 3

current results:

Col1 col2 col3
1 2 3

(this is happens when I send the output to email and viewing it through outlook as its convert to calibri...
21,968
Posted By Veera_V
Thanks R.Singh, Code works fine, But still...
Thanks R.Singh,

Code works fine, But still you have assigned everything as a row , hence the when I look at the output same issue persists.

sample:

12:00:01 AM CPU %user %nice ...
21,968
Posted By Veera_V
Convert text file to HTML tabular format.
Please provide script/commands to convert text file to HTML tabular format.

No need of styles and colours, just output and a heading in table is required.

Output file will be send via email and...
2,787
Posted By Veera_V
Shell script to capture Current day ORA errors from Alert Log
Please provide Shell script to capture ORA errors from Alert Log for a given date or Current date.

-Veera
Showing results 1 to 14 of 14

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