Somebody HELP!
I have a huge log file (TEXT) 76298035 bytes.
It's a logfile of IMEIs and IMSIS that I get from my EIR node.
Here is how the contents of the file look like:
000000,
1 33016382000913 652020100423994
1 33016382002353 652020100430743
1 33017035101003 652020100441736... (4 Replies)
need a script to determine daily how many times does the below repeated sequence exist in a log file, and if it shows failure to connect in the same file
200 PORT Command successful.
150 Opening BINARY mode data connection for rgr016.daily.0305.
226 Transfer complete.
local: rgr016.daily.0306... (3 Replies)
Hi,
I need the total of how many times the pattern is being repeated in a particular file.
I tried with grep as below, but no go.
grep -c best sample
Contents of Sample file:
-----------------------
This is the best site I have never come across. The best one indeed.
Very best... (8 Replies)
Hi
I am new to the forum and would like to ask:
i have a file in form with thousands of column
id.1 A01 A01 A68 A68
id.2 A5 A5 A3 A3
1001 0 0 0.136 0.136
1002 0 0 0.262 0.183
1003 0 0 0.662 0.662
1004 0 0 ... (9 Replies)
Please can you help in providing the most repeated entry in the 2nd column and give its count
Here is an input file
1, This , is a forum
2, This , is a forum
1, There , is a forum
2, This , is not right
Here the most repeated entry is "This" and count is 3
So output... (4 Replies)
Hi all,
I want to remove the remove bracket sign ( ) and put in the separate column I also want to remove the repeated entry like in first row in below input (PA156) is repeated
ESR1 (PA156) leflunomide (PA450192) (PA156) leflunomide (PA450192)
CHST3 (PA26503) docetaxel... (2 Replies)
1. The problem statement, all variables and given/known data:
Develop a shell script that accepts a phrase and counts the number of times that it is repeated in a specific website.
Note: Im not sure if it's the whole website, or just a specific page but im guessing its thewhole website.
... (2 Replies)
Hi folks,
Iam working on a bash script, i need to print how many times column 2 repeated at the end of each line.
Input.txt
COL1 COL2 COL3 COL4
1 XX 45 N
2 YY 34 y
3 ZZ 44 N
4 XX 89 Y
5 XX 45 N
6 YY 84 D
7 ZZ 22 S
Output.txt
COL1 COL2 COL3 COL4 COL5
1 XX 45 N 3
2 YY 34... (6 Replies)
Remove duplicate lines which has been repeated 4 times attached test.txt
below command tried and not getting expect output.
for i in `cat test.txt | uniq`
do
num=`cat test.txt | grep $i | wc -l`
echo $i $num
done
test.txt
... (17 Replies)
Discussion started by: Kalia
17 Replies
LEARN ABOUT NETBSD
zzz
APM(8) BSD System Manager's Manual APM(8)NAME
apm, zzz -- Advanced Power Management control program
SYNOPSIS
apm [-abdlmsSvz] [-f sockname]
zzz [-Sz] [-f sockname]
DESCRIPTION
The apm program communicates with the Advanced Power Management (APM) daemon, apmd(8), making requests of the current power status or placing
the system either into suspend or stand-by state. The apm tool is only installed on supported platforms.
With no flags, apm displays the current power management state in verbose form.
Available command-line flags are:
-z Put the system into suspend (deep sleep) mode.
-S Put the system into stand-by (light sleep) mode.
-l Display the estimated battery lifetime in percent.
-m Display the estimated battery lifetime in minutes.
-b Display the battery status: 0 means high, 1 means low, 2 means critical, 3 means charging, 4 means absent, and 255 means
unknown.
-a Display the external charger (A/C status): 0 means disconnected, 1 means connected, 2 means backup power source, and 255 means
unknown.
-s Display if power management is enabled.
-v Request more verbose description of the displayed states.
-f sockname Set the name of the socket via which to contact apmd(8) to sockname.
-d Do not communicate with the APM daemon; attempt instead to manipulate the APM control device directly.
The zzz variant of this command is an alternative for suspending the system. With no arguments, zzz places the system into suspend mode.
The command line flags serve the same purpose as for the apm variant of this command.
This command does not wait for positive confirmation that the requested mode has been entered; to do so would mean the command does not
return until the system resumes from its sleep state.
FILES
/var/run/apmdev is the default UNIX-domain socket used for communication with apmd(8). The -f flag may be used to specify an alternate
socket name. The protection modes on this socket govern which users may access the APM functions.
/dev/apmctl is the control device which is used when the -d flag is specified; it must be writable for the -d flag to work successfully.
/dev/apm is the status device used when the socket is not accessible; it must be readable to provide current APM status.
SEE ALSO acpi(4), apm(4), apmd(8)
Intel Corporation and Microsoft Corporation, Advanced Power Management (APM) BIOS Interface Specification, Revision 1.2, February 1996.
HISTORY
The apm command appeared in NetBSD 1.3.
The APM specification first appeared in 1992. The last update to the standard was made in 1996 - the same year when it was superceded by the
ACPI 1.0 standard. Thereafter power management on IBM-compatible personal computers has relied on ACPI, implemented in NetBSD by the acpi(4)
subsystem. The acpi(4) provides an emulation layer for the legacy apm.
BSD March 20, 2010 BSD