01-03-2008
Two files processing
I have the following two files:
1st File:
1:1:100
2:101:400
3:401:450
4:451:600
5:601:980
6:981:1500
7:1501:1600
8:1601:1800
9:1801:2000
2nd File:
30
50
80
700
1500
900
600
1900
I want to make a perl script to make process on the two files to get the ouput as follow:
1
1
1
5
6
5
4
9
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
How to create a shell script which takes in to account all the files present within a directory DIR one by one
e.g.
suppose i have a directory named DIR where there are files with the extension .ABC
i want to create shell script which processes all these files one by one.
... (1 Reply)
Discussion started by: skyineyes
1 Replies
2. UNIX for Advanced & Expert Users
I want to do the following thing and I am newbie to Unix:
1) FTP files and save them in a folder
2) Pick the oldest file and also its name among the above FTPed files
3) Copy it to another folder X and also move the file to folder Y
I know how to do the first task i.e., FTP the files and... (1 Reply)
Discussion started by: harish409
1 Replies
3. Shell Programming and Scripting
Hi
I have the folowing input file, the file looks like below
sftp>
.
..
archive
x001_ameint*.zip
x001_ameint_1.zip
x001_ameint_2.zip
x001_REPORTS*.zip
x001_REPORTS_1.zip
sftp>
I want my output to look like this
x001_ameint*.zip
x001_ameint_1.zip
x001_ameint_2.zip (1 Reply)
Discussion started by: ramky79
1 Replies
4. Shell Programming and Scripting
Hello Everyone,
I am new to scripting and confused with how to do this efficiently. I am trying to use AWK to do this.
I have a lot of files in a folder which has the data of my throughput measurements in two columns i.e. Serial # and Throughput. like this
177.994 847.9
178.996 ... (1 Reply)
Discussion started by: hakim
1 Replies
5. Shell Programming and Scripting
Hi All,
I have a directory in which there will be several files. i want to get all the files and pass it to a piece of code for processing on the files.
This is the piece of code which does the processing.
tr "\n" "|" < (log file name) | tr "$" "\n" > output
echo ' ' >>output
while... (1 Reply)
Discussion started by: suresh_kb211
1 Replies
6. UNIX and Linux Applications
Hi
I would like to run my script to process as many as 50 files at a time.
Currently my script is being called like so:
./import.sh -f filename
so I want to call my script in this way and it must execute every file in the directory
/var/local/dsx/import (1 Reply)
Discussion started by: ladyAnne
1 Replies
7. Shell Programming and Scripting
Hi
I have files in our UNIX directory like the below
-rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_1_0_FK.idx0
-rw-r--r-- 1 devinfo devsupp 872 Sep 14 02:09 IMGBTREE27309_12272_11_0_0_PK.idx0
-rw-r--r-- 1 devinfo devsupp 432 Sep 14... (7 Replies)
Discussion started by: rbmuruga
7 Replies
8. Shell Programming and Scripting
Hi All,
I have a log file which is attached here:
ACCTXN.ALLOC, ACCTXN.IDX, ACCTXN.UDX, AE_COMS, AGENCY are different file names present in my input file (it could be 000s files and all names are starting with ).
Now, I am interested in getting the files which are having " Predicted... (1 Reply)
Discussion started by: rishav
1 Replies
9. Shell Programming and Scripting
Hello
I have a program cfxfrwb which is designed to remove headers from reports files.
The cfxfrwb is located in the following directory /u01/efin/v40/live/bin
I run the program against a single report file in the temp directory and it does it's job../cfxfrwb... (2 Replies)
Discussion started by: captainrhodes
2 Replies
10. Shell Programming and Scripting
Hi,
I have typical logs file something of these formats -
fn2013.12.13.log
fn2013.12.13_a.log
fn2013.12.13_b.log
suffix part is after the underscore ( ie a.log or b.log )
I need to process the files in ascending date order, but descending suffix order, and check if the file exist and... (12 Replies)
Discussion started by: scott_apc
12 Replies
EST(4) BSD Kernel Interfaces Manual EST(4)
NAME
est -- Enhanced Speedstep Technology
SYNOPSIS
To compile this capability into your kernel place the following line in your kernel configuration file:
device cpufreq
DESCRIPTION
The est interface provides support for the Intel Enhanced Speedstep Technology.
Note that est capabilities are automatically loaded by the cpufreq(4) driver.
LOADER TUNABLES
The est interface is intended to allow cpufreq(4) to access and implement Intel Enhanced SpeedStep Technology via acpi(4) and the acpi_perf
interface accessors. If the default settings are not optimal, the following sysctls can be used to modify or monitor est behavior.
hw.est.msr_info
Attempt to infer information from direct probing of the msr. Should only be used in diagnostic cases. (default 0)
hw.est.strict
Validate frequency requested is accepted by the cpu when set. It appears that this will only work on single core cpus. (default 0)
SYSCTL VARIABLES
The following sysctl(8) values are available
dev.est.%d.desc
Description of support, almost always Enhanced SpeedStep Frequency Control.
dev.est.0.%desc: Enhanced SpeedStep Frequency Control
dev.est.%d.driver
Driver in use, always est.
dev.est.0.%driver: est
dev.est.%d.parent
dev.est.0.%parent: cpu0
The cpu that is exposing these frequencies. For example cpu0.
dev.est.%d.freq_settings.
The valid frequencies that are allowed by this CPU and their step values.
dev.est.0.freq_settings: 2201/45000 2200/45000 2000/39581 1900/37387
1800/34806 1700/32703 1600/30227 1500/28212 1400/25828 1300/23900 1200/21613 1100/19775 1000/17582 900/15437 800/13723
DIAGNOSTICS
est%d: <Enhanced SpeedStep Frequency Control> on cpu%d
Indicates normal startup of this interface.
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor GenuineIntel, msr 471c471c0600471c
device_attach: est%d attach returned 6
Indicates all attempts to attach to this interface have failed. This usually indicates an improper BIOS setting restricting O/S control of
the CPU speeds. Consult your BIOS documentation for more details.
COMPATIBILITY
est is only found on supported Intel CPUs.
SEE ALSO
cpufreq(4)
Intel 64 and IA-32 Architectures Software Developer Manuals, http://www.intel.com/content/www/us/en/processors/architectures-software-
developer-manuals.html.
AUTHORS
This manual page was written by Sean Bruno <sbruno@FreeBSD.org>.
BSD
October 18, 2012 BSD