Sponsored Content
Top Forums Shell Programming and Scripting Script to pull hashes out of large text file Post 302628375 by chango77747 on Monday 23rd of April 2012 11:09:59 AM
Old 04-23-2012
This worked:

Code:
awk -F: '($2 ~ /\$NT\$/)'filename

 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can a shell script pull the first word (or nth word) off each line of a text file?

Greetings. I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file. I'm struggling to see how each line can be... (5 Replies)
Discussion started by: tricky
5 Replies

2. UNIX for Dummies Questions & Answers

Pull a file from a remote server through a shell script

Hi, I am writing a shell script to pull a file from a remote server (Let say its a windows based remote server). One of my criteria is to pull a file only if it is not empty. We have done a similar script to push a file from our end to a remote server and before pushing it we check for the... (2 Replies)
Discussion started by: sashankkrk
2 Replies

3. Shell Programming and Scripting

Performance issue in UNIX while generating .dat file from large text file

Hello Gurus, We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this . Problem Definition: /Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Discussion started by: KRAMA
19 Replies

4. Shell Programming and Scripting

Help with splitting a large text file into smaller ones

Hi Everyone, I am using a centos 5.2 server as an sflow log collector on my network. Currently I am using inmons free sflowtool to collect the packets sent by my switches. I have a bash script running on an infinate loop to stop and start the log collection at set intervals - currently one... (2 Replies)
Discussion started by: lord_butler
2 Replies

5. Shell Programming and Scripting

Need script to pull multiple field from log file

I am hoping to get some help with a script to pull certain fields from a log file. User update (xx6xxx P) rpt (yy6yyy B) 2010/01/20 21:36:01.298 Remote client forward start streamid 85af 2010/01/20 21:36:01.307 rpt2 (ZZ6ZZZ G) rpt1 (YY6YYY B) urcall (CQCQCQ ) mycall (W1AW) user... (5 Replies)
Discussion started by: TedSD
5 Replies

6. Shell Programming and Scripting

Please do help: Perl Script to pull out rows from a CSV file

I have CSV file that contains data in the format as shown below: ABC, 67, 56, 67, 78, 89, 76, 55 PDR, 85, 83, 83, 72, 82, 89, 83 MPG, 86, 53, 54, 65, 23, 54, 75 .. .. .. .. I want to create a script that will pull out the rows from the above sheet and paste it into another CSV file.... (12 Replies)
Discussion started by: pankajusc
12 Replies

7. Shell Programming and Scripting

Easy way to pull a paragraph from a text file?

I have a collection of text files that comprise a mailing list archive. I grep them to find an email that interests me, then open the file in a text editor to find the surrounding paragraph of text. Is there an easy way to do this from the shell instead? (2 Replies)
Discussion started by: CRGreathouse
2 Replies

8. Shell Programming and Scripting

Creating Hashes of Hashes of Array

Hi folks, I have a structure as mentioned below in a configuration file. <Component> Comp1: { item1:data,someUniqueAttribute; item2:data,someUniqueAttribute, } Comp2: { item3:data,someUniqueAttribute; ... (1 Reply)
Discussion started by: ckv84
1 Replies

9. Shell Programming and Scripting

splitting a large text file into paragraphs

Hello all, newbie here. I've searched the forum and found many "how to split a text file" topics but none that are what I'm looking for. I have a large text file (~15 MB) in size. It contains a variable number of "paragraphs" (for lack of a better word) that are each of variable length. A... (3 Replies)
Discussion started by: lupin..the..3rd
3 Replies
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
All times are GMT -4. The time now is 11:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy