I have a problem in searching a specific pattern in c files.
My requirement:
I have to find all the division operator in all cfiles.
The problem is, the multi line comments and single line comments will also have forward slash in it.
Even after avoiding these comments also, if both... (6 Replies)
Hi All,
Please can someone assist in the script I have made that searches a pattern in a file and delete the whole line containing the pattern.
#!bin/sh
# The pattern that user want to add to the files
echo "Enter the pattern of the redirect"
read value
# check if the user has... (1 Reply)
Hi Experts,
Need help on printing of numbers, which are missing in the range.
Pls find the details below
Input
1000000002
1000000007
1234007940
1234007946
Output
1000000003
1000000004
1000000005
1000000006
1234007941 (2 Replies)
Hi...
I am working on script to search some records in a file based on certain fields and each record is a ASCII fixed size. I was using awk to search based on certain condition. But the length of the record is too much that awk is giving
syntax error near unexpected token `('
Request... (5 Replies)
Hi there,
Looking forward to your advice for the below:
I have a file which contains 2 paragraphs related to a particular pattern. I have to search for those paragraphs from a log file and then print a particular line from those paragraphs.
Sample:
I have one file with the fixed... (3 Replies)
Hi All,
i have an output of command vmstat as below :
$ vmstat
System configuration: lcpu=4 mem=5376MB ent=1.00
kthr memory page faults cpu
----- ----------- ------------------------ ------------ -----------------------
r b avm fre re pi... (10 Replies)
i m searching a zone file my domain name is abcd.com
my zone file looks like this.
abcd.com. IN SOA ns1.abcd.com. root.abcd.com. (
abcd.com. 400 IN A 15.1.1.1
Then i am searching that abcd.com have if below ip... (14 Replies)
'Hi
I'm using the following code to extract the lines(and redirect them to a txt file) after the pattern match. But the output is inclusive of the line with pattern match.
Which option is to be used to exclude the line containing the pattern?
sed -n '/Conn.*User/,$p' > consumers.txt (11 Replies)
Hi All,
I 'm matching two files based on the first 2 columns and then populate other fields along with subtraction of few fields.
I have managed to get the output. However, is there a easier way in formatting the output as shown below instead of using additional printf for getting fixed width... (4 Replies)
This is the file which contains only neccessary values from the output of curl command i.e TEMP_FILE
Proxy Hostname
server0123.domain.com
Proxy IP address
XXX.XXX.XX.XX port 0000
Proxy Version
SGOS X.X.X.X
Proxy Serial #
... (5 Replies)
Discussion started by: ramprabhum
5 Replies
LEARN ABOUT MOJAVE
hostinfo
hostinfo(8) BSD System Manager's Manual hostinfo(8)NAME
hostinfo -- host information
SYNOPSIS
hostinfo
DESCRIPTION
The hostinfo command displays information about the host system on which the command is executing. The output includes a kernel version
description, processor configuration data, available physical memory, and various scheduling statistics.
OPTIONS
There are no options.
DISPLAY
Mach kernel version:
The version string compiled into the kernel executing on the host system.
Processor Configuration:
The maximum possible processors for which the kernel is configured, followed by the number of physical and logical processors avail-
able.
Note: on Intel architectures, physical processors are referred to as cores, and logical processors are referred to as hardware threads;
there may be multiple logical processors per core and multiple cores per processor package. This command does not report the number of
processor packages.
Processor type:
The host's processor type and subtype.
Processor active:
A list of active processors on the host system. Active processors are members of a processor set and are ready to dispatch threads.
On a single processor system, the active processor, is processor 0.
Primary memory available:
The amount of physical memory that is configured for use on the host system.
Default processor set:
Displays the number of tasks currently assigned to the host processor set, the number of threads currently assigned to the host proces-
sor set, and the number of processors included in the host processor set.
Load average:
Measures the average number of threads in the run queue.
Mach factor:
A variant of the load average which measures the processing resources available to a new thread. Mach factor is based on the number of
CPUs divided by (1 + the number of runnablethreads) or the number of CPUs minus the number of runnable threads when the number of
runnable threads is less than the number of CPUs. The closer the Mach factor value is to zero, the higher the load. On an idle system
with a fixed number of active processors, the mach factor will be equal to the number of CPUs.
SEE ALSO sysctl(8)Mac OS X October 30, 2003 Mac OS X