"Grepping" in awk for time is just optimization. If it doesn't work - remove it. And if you have other filed separator, "main" and "trigger" regexes, just change them:
===
Remember about optimization - embedding shell variables and changing dynamical regexes to static ones. But they say it's unsafe and if you are going to write a script that will get these parameters from the command line - it's very unsafe. It's possible to embed in a such parameter any shell command and execute it (though you can validate them).
I've got a 2.2 Gig syslog file from our Cisco firewall appliance. The problem is that we've been seeing gaps in the syslog for anywhere from 10 minutes to 2 hours. Currently I've just been using 'less' and paging through the file to see if I can find any noticeable gaps. Obviously this isn't the... (3 Replies)
I have a file with data extracted, and need to insert a header with a constant string, say: H|PayerDataExtract
if i use sed, i have to redirect the output to a seperate file like
sed ' sed commands' ExtractDataFile.dat > ExtractDataFileWithHeader.dat
the same is true for awk
and... (10 Replies)
Looking for a shell script or a simple perl script . I am new to scripting and not very good at it .
I have 2 directories . One of them holds a text file with list of files in it and the second one is a daily log which shows the file completion time. I need to co-relate both and make a report.
... (0 Replies)
Hi,
I have a log file that contains information such as this:
date
id number
command1
command2
command3
command4
data
data
data
date
id number
command1
command2
command3
command4 (4 Replies)
Hi Experts,
I had to edit (a particular value) in header line of a very huge file so for that i wanted to search & replace a particular value on a file which was of 24 GB in Size. I managed to do it but it took long time to complete. Can anyone please tell me how can we do it in a optimised... (7 Replies)
My intention is to log the output to a file as well as it should be displayed on the console > I have used tee ( tee -a ${filename} ) command for this purpose. This is working as expected for first few outputs, after some event loggin nothing is gettting logged in to the file but It is displaying... (3 Replies)
I have a LOG file which looks like this
Import started at: Mon Jul 23 02:13:01 EDT 2012
Initialization completed in 2.146 seconds.
--------------------------------------------------------------------------------
--
Import summary for Import item: PolicyInformation... (8 Replies)
unix : sun
shell : bash
i need to select multiple rows with this format :
<special format>
10 lines
/<special format>
from log file that have lots of info
i thought of getting the number of the first line using
grep -n "special format" file | cut -d: -f1
then pass it to shell... (2 Replies)
Hi
I have a system running uname -a
Linux cmovel-db01 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux
I would like to capture the contents of /var/log/syslog from 11:00AM to 11:30AM and sent to this info via email.
I was thinking in set a cron entry at that... (2 Replies)
Discussion started by: fretagi
2 Replies
LEARN ABOUT DEBIAN
petitboot-nc
petitboot-nc(8) BSD System Manager's Manual petitboot-nc(8)NAME
petitboot-nc -- Petitboot ncurses bootloader UI
SYNOPSIS
petitboot-nc [-d, --start-daemon] [-h, --help] [-l, --log log-file] [-V, --version]
DESCRIPTION
petitboot-nc is an ncurses based interface to the Petitboot bootloader.
Petitboot is a Linux kexec based bootloader that supports loading Linux kernel and initrd images from any device that can be mounted by
Linux. It can also load images from the network using the HTTP, HTTPS, NFS, SFTP, and TFTP protocols.
OPTIONS -d, --start-daemon
Start pb-discover, the petitboot dynamic device discovery daemon, if it has not been started. This option is mainly useful when run-
ning petitboot as a stand-alone application.
-h, --help
Print a help message.
-l, --log log-file
Log messages to the file log-file. The default log is a file /var/log/petitboot-nc.log. New messages are appended to an existing
log file.
-V, --version
Display the program version number.
SEE ALSO petitboot(8), petitboot-twin(8), pb-discover(8), pb-event(8)REPORTING BUGS
Send bug reports to Geoff Levand <geoff @ infradead.org>
BSD June 1, 2019 BSD