Hello,
I am new in perl and in regular exprecion; so I am looking for help (or an experienced advise.)
The target is a triming spaces from a string: i.e., remove spases from begining and from end of a string.
One of main point of a searched solution is performance: for current task it is... (2 Replies)
Hi,
I am trying to write a regular expression in perl to check if the string end's with "numbers-numbers" or "-numbers".
I experimented something like m/\d*-\d*$/ , but this is not solving my problem.
Can anyone help me in writing this expression?
Well spelled titles and proper use of code... (2 Replies)
Hi all,
I need to do scrip for printing starting and ending numbers along with count in given file.:wall:
Input: a.txt
10000030
10000029
10000028
10000027
10000026
10000024
10000023
10000021
10000018
10000018
10000017
10000016
10000015
10000014 (2 Replies)
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Hello,
Here is my text data excerpted from the webpage:
input
My target is to get:
What i tried is:
sed 's/.*\(connector\)/1/' input > output
but all characters coming before the word "connector" are deleted which is not good for me.
My question: (9 Replies)
Hello,
I need help on finding with an if statement or with a command a file that exist in lets suppose /folder with the name ABC* but i need to get the last file generated with that name and fi the file exist then do an echo and if not do another echo
Please help (7 Replies)
Hello,
I'm new of this forum and have very very old and rusty memories of shell scripting (my latest script dates back to about 20 years ago !).
My need is following:
I'm testing a software that make a backup, but at now is not implemented the email report (the sw is in beta).
I'm trying to... (1 Reply)
im trying to search for a WORD in a file which
begins with a number
followed by a hypen
follwed multiple words
and end with a dot "."
and pront the entire line which matches the above.
Please note that there is a space at the begining of each line
i/p file
19458 00000-CONTROL-PARA.... (5 Replies)
I have several line in a text file. for example
I like apple;
I like apple
I like orange;
Output: I like apple
I try to useif grep -q "!\;$"; then (Not work)
Please use CODE tags when displaying sample input, sample output, and code segments (as required by forum rules). (1 Reply)
Discussion started by: cmdcmd
1 Replies
LEARN ABOUT MOJAVE
ethcheck
ETHCHECK(8) BSD System Manager's Manual ETHCHECK(8)NAME
ethcheck -- check the integrity of Broadcom Ethernet devices' firmware.
SYNOPSIS
ethcheck --integrity-check [-b filename]
ethcheck --show-hashes [-b filename]
ethcheck --save -b filename
ethcheck --cleanup -b filename
ethcheck --version
ethcheck --help
DESCRIPTION
Ethcheck is an application-layer tool to check the integrity of Broadcom Ethernet devices' firmware.
The following commands can be used with ethcheck:
--integrity-check attempt to automatically determine which firmware you are running, integrity check against the appropriate file, and report
the check result. It requires root privileges.
--integrity-check -b filename integrity check the firmware image, and report the check result.
--show-hashes print the hashes for the current system's Ethernet devices' firmware to stdout. It requires root privileges.
--show-hashes -b filename print the hashes for the given firmware image to stdout.
--save -b filename save this Ethernet device(s)'s firmware in file. It requires root privileges. File name(s) will begin with specificed
filename and be selected according to device ID(s), machine model name, and firmware's version(s). E.g. filename-eth0-0x14e4-0x1686.nvram.bin
--cleanup -b filename zero any privacy-sensitive data (such as MAC address), enabling the file to be shared for analysis.
--version print out ethcheck version number.
--help display a short help.
May 25, 2017