Search Results

Search: Posts Made By: ghosh_tanmoy
1,533
Posted By ghosh_tanmoy
Date / Time difference in shell script
================================================================================
Request ID GMDCOM TIME GMDRRS TIME COM-RRS...
2,442
Posted By ghosh_tanmoy
Sample Script
Below is the code. Its the 1st line of a file.

[123 web int 1 09:30:45 2013]How can I remove the bracket and display like below.

123 web int 1 09:30:45 2013

I dont want to use AWK or SED or...
2,365
Posted By ghosh_tanmoy
Date time
I dont want to use SED for this. I want to use the date and cut command to display it.
2,365
Posted By ghosh_tanmoy
Date time
Can you please explain it.
2,365
Posted By ghosh_tanmoy
Extract date / time
[Tue Oct 1 13:32:40 2013]

How do i display in the below format without the brackets using shell script.

Tue Oct 1 13:32:40 2013
Please use CODE tags not only for all code segments, input...
2,267
Posted By ghosh_tanmoy
Sample script
LineNo=0
echo "========================================================================================================================================="
echo "Request ID GMDCOM TIME ...
2,267
Posted By ghosh_tanmoy
Requirement changed a bit.
I want it using simple BASH shell script.
2,267
Posted By ghosh_tanmoy
Date / Time difference in shell script
Request ID GMDCOMTM GMDRRSTIME GMDRESTIME


<36812986> [Tue Oct 1 13:37:53 2013]: [Tue Oct 1 20:29:29 2013]: [Tue Oct 1 13:43:24 2013]:I want to...
2,955
Posted By ghosh_tanmoy
Shell to display portion of a line
Hi Ravinder,

I have understood the awk portion of the code. But please can you explain the SED portion.
2,955
Posted By ghosh_tanmoy
Shell to display portion of a line
Please help me by explaining the code.
2,955
Posted By ghosh_tanmoy
Shell to display portion of a line
Not giving the desired output.
2,955
Posted By ghosh_tanmoy
Shell for displaying specific records from a line.
Input file.

GMDCOM.27936 [Tue Oct 1 13:32:40 2013]: Process Request <36812974>
GMDCOM.27936 [Tue Oct 1 13:37:38 2013]: Process Request <36812985>
GMDCOM.27936 [Tue Oct 1 13:37:53 2013]:...
1,831
Posted By ghosh_tanmoy
Shell to display portion of a line
Sample Input File


Code:
GMDCOM.27936 [Tue Oct 1 13:32:40 2013]: Process Request <36812974> GMDCOM.27936 [Tue Oct 1 13:37:38 2013]: Process Request <36812985> GMDCOM.27936 [Tue Oct 1...
1,831
Posted By ghosh_tanmoy
Requirement changed a bit.
The output requirement changed a bit, hence requested for the change in formatting.
1,831
Posted By ghosh_tanmoy
Shell to display portion of a line
Sample Input File

[Tue Oct 1 13:28:23 2013]: file reopened from GMDCOM with PID <27936>.
[Tue Oct 1 13:28:23 2013]: GMDCOM: Process <27936> created a running file.
GMDCOM [Tue Oct 1 13:28:24...
1,831
Posted By ghosh_tanmoy
Shell to display portion of a line
1st I am trying to display all the lines from GMDCOM.27936.log.txt in the below format.

[36812974 [Tue Oct 1 13:32:40 2013]]How do i display all the records from the file GMDCOM.27936.log.txt...
1,831
Posted By ghosh_tanmoy
Shell to display portion of a line
Thanks a lot for the code and the explanation.

Now my final requirement.

I have uploaded 3 files as attachment. Please open the files in Editplus or any other text editor which keeps the...
3,562
Posted By ghosh_tanmoy
Shell to display portion of a line
Please help me in understanding the below code.

awk '/Process Request/{$1="";print}' file
3,562
Posted By ghosh_tanmoy
Shell to display portion of a line
I guess I am not clear with the requirement. Below is the sample file.
[Tue Oct 1 13:28:23 2013]: file reopened from GMDCOM with PID <27936>.
[Tue Oct 1 13:28:23 2013]: GMDCOM: Process <27936>...
3,562
Posted By ghosh_tanmoy
Shell to display portion of a line
After displaying the below line.

[Tue Oct 1 13:32:40 2013]: Process Request <36812974>

How to I display the rest of the lines using a while loop.
Below are the lines,,,

[Tue Oct 1...
3,562
Posted By ghosh_tanmoy
3,562
Posted By ghosh_tanmoy
Shell to display portion of a line
Thanks a lot Ravinder. Its working. Can you help me please in explaining the code since i am new to shell script.
3,562
Posted By ghosh_tanmoy
Shell to display portion of a line
It is displaying the 3rd line but I want to display the all the lines from 4th line.
3,562
Posted By ghosh_tanmoy
Input file lets say abc.log contains the below...
Input file lets say abc.log contains the below lines.

[Tue Oct 1 13:28:23 2013]: file reopened from GMDCOM with PID <27936>.
[Tue Oct 1 13:28:23 2013]: GMDCOM: Process <27936> created a running...
3,562
Posted By ghosh_tanmoy
Tanmoy
[Tue Oct 1 13:32:40 2013]: Process Request <36812974>

This above one should be the first line.

Any line before this line not to be displayed and skipped. totally. But there are 3 more than...
Showing results 1 to 25 of 27

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