Search Results

Search: Posts Made By: G.K.K
1,368
Posted By G.K.K
---------- Post updated at 07:37 PM ----------...
---------- Post updated at 07:37 PM ---------- Previous update was at 07:15 PM ----------
1,368
Posted By G.K.K
Search a String between start and end of a block in a file
Hi,

I have a scenario where I want to display the output based on the pattern search between the start and end of a block in a file, we can have multiple start and end blocks in a file.
Example...
8,174
Posted By G.K.K
Thanks I understood. But how to check the...
Thanks I understood.

But how to check the variable value DAT against the last 4 digits of variable value NM using awk command.

---------- Post updated at 11:08 PM ---------- Previous update...
8,174
Posted By G.K.K
Thanks for the REply. But that awk command...
Thanks for the REply.

But that awk command will work where ever the DT variable value exists in the string NM. But i want to check against only last 4 digits in the variable NM. If it matches...
8,174
Posted By G.K.K
Variable value substitution issue with awk command issue
Hi All,

I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command.

The below script sample.ksh should give...
9,199
Posted By G.K.K
Got solution using single line command. Thanks....
Got solution using single line command. Thanks. Problem resolved :)
9,199
Posted By G.K.K
Thanks for reply jgt :), i am allowed to use...
Thanks for reply jgt :), i am allowed to use awk/sed command alone :mad:. can someone give suggestion how exactly i can code it in single command line.
9,199
Posted By G.K.K
Removing duplicate records in a file based on single column
Hi,

I want to remove duplicate records including the first line based on column1. For example

inputfile(filer.txt):
-------------
1,3000,5000
1,4000,6000
2,4000,600
2,5000,700...
3,444
Posted By G.K.K
Sed command gives the expected results.... ...
Sed command gives the expected results....

Thanks very much to every one for the reply....

Thanks
G.K.K
3,444
Posted By G.K.K
Adding New empty line in a file
Hi,

I am new to Sed /awk commands. using that i want to add new empty line after every line in a file by leaving first three lines. So, can any one help me out how to achieve this.

Example:...
18,009
Posted By G.K.K
Thanks for reply... below are the results that i...
Thanks for reply... below are the results that i captured in AIX box for the file inputfile.txt

Post 4 output:
-------------
sed -n l inputfile.txt.txt
1231231231$
asdafsaf$

post 6 output:...
18,009
Posted By G.K.K
I have done the file ftp and place it in AIX box....
I have done the file ftp and place it in AIX box. Now i am surprised with the source file... it is not showing any special character in the file when i opened through vi. but when i have given the...
18,009
Posted By G.K.K
But the sed command not modifying the source...
But the sed command not modifying the source file.. it is displaying the data without ^J character . but not modifying the source file.
18,009
Posted By G.K.K
How to replace ^J in unix file
Hi,

i am facing issue while reading files in unix, which has ^J at end of every line. I want to know how to replace it in the file.

Example: infile.txt has below data
-----------------...
2,515
Posted By G.K.K
How to remove '-' for date fields alone in a file
Hi,
I have a scenario like, I need to replace a hyphens(-) for date field alone in the file.
I have minus(-) sign for other fields it should remain as such, only for date fields hyphens must be...
1,562
Posted By G.K.K
sorry missed the content...
Hi All,i have a file temp_search.txt i want to place this file content in to the original file initial.txt when it found the pattern
1,562
Posted By G.K.K
search and replace the content
Hi All,sorry for inconvience....please find the attachement for my question i am unable to paste the question here....please help me in slving thisthanksk.k
6,055
Posted By G.K.K
hi All, i have a file text_data.prm which...
hi All,

i have a file text_data.prm which contains the below data
-----
[s_m_db2_trn_db2_EVENT_accounting_class]
$$EVENT_START_DATE=2009-07-10 09:08:18 ^M

$$DEFAULT_VALUE=''^M ...
6,055
Posted By G.K.K
reading .prm file
hi All,

i have a file text_data.prm which contains the below data
-----
[s_m_db2_trn_db2_EVENT_accounting_class]
$$EVENT_START_DATE=2009-07-10 09:08:18

$$DEFAULT_VALUE=''
$$DEFAULT=0 ...
30,247
Posted By G.K.K
then how to kill the background process??...
then how to kill the background process?? :confused:
please help...

Thanks in advance
G.K.K
30,247
Posted By G.K.K
How to kill background process
Hi,

I am new to scripting and learning. please share your knowledge with me.

I have a scenario, that i need to trace whether the background script is still running or not? if it was running i...
4,366
Posted By G.K.K
expr error in ksh
Hi ALL,

i am so much confused y the following script is not working in the korn shel which works in bash shell. please solve the error that i am facing.

i want to extract the format of the...
4,118
Posted By G.K.K
please help me in solving this...
please help me in solving this...
4,118
Posted By G.K.K
du command error in ksh
Hi,

i am facing an error in the korn shell by executing the following script, can anyone help me out in solving the error..


Note: /root/kamal is a directory

size_dir=$(du -s...
3,174
Posted By G.K.K
how to round it to near value.... if it is...
how to round it to near value....
if it is 123.999, then how to make it 124 using scripting in ksh
Showing results 1 to 25 of 42

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