Hi,
I need to extract the start time value (bold, red font) under the '<LogEvent ID="Timer Start">' tag (black bold) from a file with the following pattern. There are other LogEventIDs listed in the file as well, making it harder for me to extract out the specific start time that I need.
.
.... (7 Replies)
Hi , I am having a script which will start a process and appends the process related logs to a log file. The log file writes logs with every line starting with date in the format of: date +"%Y %b %d %H:%M:%S".
So, in the script, before I start the process, I am storing the date as DATE=`date +"%Y... (5 Replies)
:confused: I have a tab delimited file that I need to extract data from and into a file with specific field specs. Each field has to be a certain amount of characters. So, the name field (from delimited file) might have only 15 characters but needs to be 25 (in new file) so I need to insert spaces... (5 Replies)
My input:
Data name: ABC001
Data length: 1000
Detail info
Data Direction Start_time End_time Length
1 forward 10 100 90
1 forward 15 200 185
2 reverse 50 500 450
Data name: XFG110
Data length: 100
Detail info
Data Direction Start_time End_time Length
1 forward 50 100 50 ... (11 Replies)
Input file:
#abc_1
SAASFASFGGDSGDSGDSGSDGSDGSDGSDGSDGSDGSDGDS
Output file:
FASFGGDSGDS
I just want to print out the read from position 5 until position 15 from the data.
Below is the code that I just try but it is failed to get my desired output:
grep -v '#' input_file | awk... (5 Replies)
I have a huge file (about 2 millions records) contains data separated by “,” (comma). As part of the requirement, I can't change the format. The objective is to remove some of the records with the following condition. If the 23rd field on each line start with 302 , I need to remove that from the... (4 Replies)
Bash scripting beginner here...
I have many folders, each folder representing one subject. Not all subjects have all the required files, so I need to somehow cycle through all the data and then extract the data only from subjects who have no files missing. I tried to output the ls command, but... (4 Replies)
data.txt has several information like the below..
<SERVER>:WEB:MYDOM01:/tmp/cong/MYDOM01,/tmp/app/MYDOM01
<WEBER>:CANES:https-web01,https-web02:/web/apps/https-web01/config
<SERVER>:WEB:MYDOM07:/tmp/cong/MYDOM07,/tmp/app/MYDOM07... (7 Replies)
Discussion started by: mohtashims
7 Replies
LEARN ABOUT HPUX
lastcomm
lastcomm(1) General Commands Manual lastcomm(1)NAME
lastcomm - show last commands executed in reverse order
SYNOPSIS
[commandname] ... [username] ... [terminalname] ...
DESCRIPTION
gives information on previously executed commands. If no arguments are specified, prints information about all the commands recorded in
the accounting file, during the current accounting file's lifetime. If called with arguments, only accounting entries with a matching com-
mand name, user name, or terminal name are printed. For example, to produce a listing of all executions of commands named by user on ter-
minal use:
For each process entry, the following are printed.
o Name of the user who ran the process.
o Flags, as accumulated by the accounting facilities in the system.
o Command name under which the process was called.
o Amount of cpu time used by the process (in seconds).
o What time the process started.
Flags are encoded as follows:
Command was executed by a user who has appropriate privileges.
Command ran after a fork, but without a following
exec.
Command terminated with the generation of a
file.
Command was terminated with the signal
SIGTERM.
AUTHOR
was developed by the University of California, Berkeley.
FILES
current file for per-process accounting
SEE ALSO last(1), acct(4), acctsh(1M), core(4).
lastcomm(1)