07-30-2009
Is it possible that you have a blank line at the end of your file?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file which has some lines starting with a particular word. I would like to delete 5 lines before each such line containing that particular word.
eg:
line1
line2
line3
line4
line5
line6
"particular word"...
I would like to delete line2-line6 and all such occurences in that... (4 Replies)
Discussion started by: ramu_1980
4 Replies
2. UNIX for Dummies Questions & Answers
I'm looking to show specific lines (eg. 20 through 40) of a series of files in the directory. How do I do this? (2 Replies)
Discussion started by: hedgehog001
2 Replies
3. UNIX for Dummies Questions & Answers
I'm trying to figure out how to display a certain line in a text file. I keep getting references to Tail and Head, and I know how these work, but i'm lost on how to find say the third out of the five lines and display only that.
I thought maybe grep could help, but that doesn't seem likely.
... (3 Replies)
Discussion started by: MaestroRage
3 Replies
4. UNIX for Dummies Questions & Answers
are there any basic commands that can display lines 99 - 101 of the /etc/passwd file?
I'm thinking use of head and tail, but I forget what numbers to use and where to put /etc/passwd in the command. (2 Replies)
Discussion started by: raidkridley
2 Replies
5. Shell Programming and Scripting
Hello All,
I am new to this forum. I am currently facing a problem in manipulating files.
I have two files called old-matter and new-matter
# cat old-matter
abc: this, is a, sample, entry
byi: white board, is white in color
rtz: black, board is black
qty: i tried, a lot
asd: no... (1 Reply)
Discussion started by: rahmathulla
1 Replies
6. Shell Programming and Scripting
Hi
this script adds text in the correct place on one line only, in a script.
awk 'BEGIN{
printf "Enter residue and chain information: "
getline var < "-"
split(var,a)
}
/-s rec:/{$7=a; }
{print}' FLXDOCK
but I need the same info added at position 7 on line 34 and... (1 Reply)
Discussion started by: gav2251
1 Replies
7. Solaris
Hi,
I have a small piece of Makefile script which throw's error on Sun Sparc machine, but works fine with Sun Optron, Linux, AIX machines.
FOO=Naveen
test1:FOO=Dhilip
test1:
@echo FOO is ${FOO}
test2:
@echo Me is ${FOO}
Output on Sun Sparc -
ukhml-v890new-~/test: make test1... (5 Replies)
Discussion started by: nsriram
5 Replies
8. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
9. UNIX for Dummies Questions & Answers
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Discussion started by: aku
4 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be... (3 Replies)
Discussion started by: gus74
3 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