1- as Perderabo pointed out you need a numerical sort,
2- you need to decide how many significant integers you need after the decimal point. This will be decisive for your output, see below:
i have two rules in my pf.conf file, "pass in all" and "pass out all"
i was having issues with getting pf working to begin with, so i went with
starting from nothing and working on up.
i have an ultrasparc ultra1 200e, with an added 4-port fast ethernet sbus
card, running "3.4 GENERIC#85... (4 Replies)
Hi Everyone ,
I am facing a strange problem
i have made the follwing script to watch a appending log file (abc.log) but its not moving after the line tail -f ,
any suggestions
=====================================
#!/bin/bash
while true
do
tail -f abc.log | grep "exceptions"
echo hi... (12 Replies)
Hi All,
I am not much strong in shell scripting...
I am using sed command in my script to find and replace a string.......
This is how script looks :
#############
#!/usr/bin/ksh
CONFIG_FILE=iom_test.txt
FIND=`echo "NIS_FTP_SERVER1=123.456.iom.com"`
REPLACE=`echo... (2 Replies)
Hello everybody,
I've gotten a script together that is designed to open a .bin file and read it 32 bits at a time and then add it to the checksum. However, the only issue that I have is that it will not print anything at the end. Can anyone help me? Also, is the & symbol used for restraining... (2 Replies)
Hi, this is my script:
#!/bin/bash
trabajo=$1
numero=`jobs | grep -n $trabajo | cut -d':' -f1`
echo $trabajo
echo $numero
kill %$numero
wait
For some reason,
numero=`jobs | grep -n $trabajo | cut -d':' -f1`
that line wont save in numero the number I am looking for BUT if I write it... (7 Replies)
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
I am facing this weird issue where the script is working fine from the command line but when I am executing it from cron though it is working fine but the "if" loop is processing else part though I know that the if part of the logic is true and ideally the loop should execute the if portion.
... (3 Replies)
#!/bin/bash -i
SAVEIFS=$IFS
IFS=$"\n\b"
picc=$*
if ; then
echo $TDATE
if ; then
touch dummy
touch -t "tdate" dummy
touch -r "dummy" "$picc"
else
echo -e "No mod date value to apply. If there is one in your shell,\ninvoke \eStarted asking advice on this (on Linuxquestions.org).... (9 Replies)
"SQLPLUS -S " is not working in one environment where same code is working in another
getting below error
===================================
SQL*Plus: Release 11.2.0.3.0 Production
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Use SQL*Plus to execute SQL, PL/SQL and SQL*Plus... (1 Reply)
Discussion started by: yogendra.barode
1 Replies
LEARN ABOUT CENTOS
papi_hw_info_t
PAPI_hw_info_t(3) PAPI PAPI_hw_info_t(3)NAME
PAPI_hw_info_t -
Hardware info structure.
SYNOPSIS
Data Fields
int ncpu
int threads
int cores
int sockets
int nnodes
int totalcpus
int vendor
char vendor_string [128]
int model
char model_string [128]
float revision
int cpuid_family
int cpuid_model
int cpuid_stepping
int cpu_max_mhz
int cpu_min_mhz
PAPI_mh_info_t mem_hierarchy
int virtualized
char virtual_vendor_string [128]
char virtual_vendor_version [128]
float mhz
int clock_mhz
int reserved [8]
Field Documentation
int PAPI_hw_info_t::clock_mhz
Deprecated
int PAPI_hw_info_t::cores
Number of cores per socket
int PAPI_hw_info_t::cpu_max_mhz
Maximum supported CPU speed
int PAPI_hw_info_t::cpu_min_mhz
Minimum supported CPU speed
int PAPI_hw_info_t::cpuid_family
cpuid family
int PAPI_hw_info_t::cpuid_model
cpuid model
int PAPI_hw_info_t::cpuid_stepping
cpuid stepping
PAPI_mh_info_t PAPI_hw_info_t::mem_hierarchy
PAPI memory heirarchy description
float PAPI_hw_info_t::mhz
Deprecated
int PAPI_hw_info_t::model
Model number of CPU
char PAPI_hw_info_t::model_string[128]
Model string of CPU
int PAPI_hw_info_t::ncpu
Number of CPUs per NUMA Node
int PAPI_hw_info_t::nnodes
Total Number of NUMA Nodes
float PAPI_hw_info_t::revision
Revision of CPU
int PAPI_hw_info_t::sockets
Number of sockets
int PAPI_hw_info_t::threads
Number of hdw threads per core
int PAPI_hw_info_t::totalcpus
Total number of CPUs in the entire system
int PAPI_hw_info_t::vendor
Vendor number of CPU
char PAPI_hw_info_t::vendor_string[128]
Vendor string of CPU
char PAPI_hw_info_t::virtual_vendor_string[128]
Vendor for virtual machine
char PAPI_hw_info_t::virtual_vendor_version[128]
Version of virtual machine
int PAPI_hw_info_t::virtualized
Running in virtual machine
Author
Generated automatically by Doxygen for PAPI from the source code.
Version 5.2.0.0 Tue Jun 17 2014 PAPI_hw_info_t(3)