Search Results

Search: Posts Made By: grvk101
1,330
Posted By grvk101
Dear RudiC, The pattern is being searched in...
Dear RudiC,

The pattern is being searched in directory where in all the files are compressed hence the command gzgrep.

I will try a different approach to my script to obtain better result for...
1,330
Posted By grvk101
Dear RudiC, The command used is in a single...
Dear RudiC,

The command used is in a single line continuation and not in new line.


ls -lrt `gzgrep -il "1234566789" 2018-05-07*ship*` >> $HOME/fileback/var2.txt


When I search for...
1,330
Posted By grvk101
Dear Don, Thanks for you precious time. ...
Dear Don,

Thanks for you precious time.
The command is perfectly running and I am getting exact file details if the pattern being searched is matched. The script gives me the correct file...
1,330
Posted By grvk101
File exists or not
Dear All,

I am facing a small issue in my code where in I am searching for a file in a directory and if found it sends me a message along with the time and filename.

However if a file is not...
1,613
Posted By grvk101
Dear RUDIC, Thnx for the edit. @DON, ...
Dear RUDIC,

Thnx for the edit.

@DON,

I made changes and the script is executing. But the output which I am getting is not a single in but in iterations.
The input file has 3 lines and...
1,613
Posted By grvk101
Dear Don, Thnx a lot for your quick...
Dear Don,

Thnx a lot for your quick response.

Below is the set -x otput I am getting for the code.


filedate=$(date '+%d%m%Y')awk '/H\|/ { pn[substr($0, 9, 18)]}END
{ print "select *...
1,613
Posted By grvk101
Connect to database with shell output
Dear All,

I am trying to write a script which will generate output to a file based on input files on basis of a pattern which I am able to do so. But, I am stuck as I am trying to connect this to...
1,683
Posted By grvk101
Dear Don, Found out where the issue was....
Dear Don,

Found out where the issue was. Thnx for your prompt.
There was duplicate data in 2 different file for the same number with Header as Add as well as Modify, so modify from 1 file was...
1,683
Posted By grvk101
Dear Don, I was going through my output and...
Dear Don,

I was going through my output and found out that the lines having Header with M (modify) lines were also included and were converted to A (Add).

But I want the lines with Headers M...
1,683
Posted By grvk101
Dear Don, Thnx for your effort. The command...
Dear Don,

Thnx for your effort. The command provided by you worked perfectly fine and I was able to select all the records with Add headers and subsequent result.:b:

Dear Ravinder,

Thnx for...
1,683
Posted By grvk101
Hello Ravinder, Getting error as below. ...
Hello Ravinder,

Getting error as below.

$ awk !/ORDER\|Header\|Add\|32\|32\|161[68]/ && !/ORDER\|Details/ && !/ORDER\|T/{flag=""} /ORDER\|Header\|Add\|32|\32\|161[68]/{flag=1} flag...
1,683
Posted By grvk101
Copy data to new file based on input pattern
Hi All,

I want to create a new file based on certain conditions and copy only those conditioned data to new file.

Input Data is as it looks below.

ORDER|Header|Add|32|32|1616...
Showing results 1 to 12 of 12

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