07-11-2013
Share it please
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
A basic request two files want to combine them but on alternate lines (1 Reply)
Discussion started by: SummitElse
1 Replies
2. Shell Programming and Scripting
Hi,
I'm new to Unix. I want to read the all the lines from a text file and write the alternate lines into another file. Please give me a shell script solution.
file1
-----
one
two
three
four
five
six
seven
newfile(it should contain the alternate lines from the file1)
-------
one... (6 Replies)
Discussion started by: pstanand
6 Replies
3. Shell Programming and Scripting
I have been using grep for removing lines of a particular pattern from a long file in the following way
grep -vf Exclude_Lines File1 > File2
But grep seems to have some problems because sometimes it does the job, sometimes it does not....I have seen AWK is more powerful..
Can the same thing... (5 Replies)
Discussion started by: ananyob
5 Replies
4. Shell Programming and Scripting
hi,
i have 2 files.
file1:
1
2
3
4
5
6
file2:
a
b
c
d
e
f
g
h
i (5 Replies)
Discussion started by: vidyaj
5 Replies
5. Shell Programming and Scripting
Hi,
my xml files looks something like this
<Instance Name="New York">
<Description></Description>
<Instance Name="A">
<Description></Description>
<PropertyValue Key="false" Name="Building A" />
</Instance>
<Instance Name="B">
... (4 Replies)
Discussion started by: tententen
4 Replies
6. Shell Programming and Scripting
Hi All,
In continuation of my previous thread 'Add text at the end of line conditionally', I need to further modfiy the file after adding text at the end of the line. Now, I need to add a fixed charater string at alternate lines starting from first line using awk or sed.My file is now as below:... (10 Replies)
Discussion started by: angshuman
10 Replies
7. Shell Programming and Scripting
Hello,
I have a log file with many lines and I want to grep pcific values from spcific lines, I'm not sure if it is possible or not
Sample
16-11-11 19:54:13:INFO:Connection to device ip 20.10.11.23 took 0
16-11-11 19:54:13:FINE:Sending request.
16-11-11 19:54:13:INFO:Received response from... (3 Replies)
Discussion started by: roby2411
3 Replies
8. Programming
Hi,
I need to join every alternate line in a file
for eg:input file
$ cat abc
abc
def
ghi
jkloutput
abc def
ghi jklcode i wrote for this
$ cat add_line.pl
#!/usr/bin/perl -w
my $count=1;
#my $line=undef;
my @mem_line;
my $i=0;
my $x=0; (2 Replies)
Discussion started by: sam05121988
2 Replies
9. Shell Programming and Scripting
hi..
i have a fasta file with the following format
>sequence1
CCGGTTTTCGATTTGGTTTGACT
>sequence2
AAAGTGCCGCCAGGTTTTGAGTGT
>sequence3
AGTGCCGCAGAGTTTGTAGTGT
Now, i want to read alternate line and add "GGGGGGGGGGG" to end of every sequence
Desired output:
>sequence1... (4 Replies)
Discussion started by: empyrean
4 Replies
10. Shell Programming and Scripting
Hi gents,
Have only a passing familiarity with linux/shell at this point, so please forgive simple question.
I have text files that have lines something like the following:
a
b
c
d
d
d
e
f
e
f
e
f
a
b (6 Replies)
Discussion started by: cabled
6 Replies
PMU(4) BSD Kernel Interfaces Manual PMU(4)
NAME
pmu -- support for Power Management Units found in all Apple laptops and some desktop Power Macintosh computers
SYNOPSIS
pmu* at obio?
nadb* at pmu?
battery* at pmu?
smartbat* at pmu?
DESCRIPTION
The pmu driver provides support for the Power Management Unit found in Apple laptops and some desktop Power Macintosh computers. Functions
controlled by the PMU include the real time clock, ADB, power, batteries, on some laptops like the PowerBook 3400c and similar machines it
also controls hotkeys and display brightness, on others it provides an iic(9) bus and on some it controls CPU speed. On many older machines
it also provides access to some non-volatile memory and thermal sensors. Not all those features are present on all machines, for instance
Power Macintosh G4 and later machines don't have ADB, many more recent laptops have display brightness and backlight control built into the
graphics controller instead of the PMU, only a few older PowerBooks use the PMU for CPU speed control and newer machines use a different way
to access non-volatile memory. However, all known PMUs so far provide a real time clock and power control.
Notes by model
Real time clock and power control are present and supported on all machines that can run NetBSD/macppc, ADB is supported when present.
PowerBook 2400, 3400c, and 3500
Battery status and thermal sensors found on the mainboard and in the battery pack are supported by the battery(4) driver, val-
ues can be read via envsys(4). Hotkeys for brightness control are supported, CPU speed control and parameter RAM are present
but unsupported.
Power Macintosh G4
ADB is not present, iic(9) is present but unsupported.
SEE ALSO
battery(4), cuda(4), nadb(4), nvram(4), obio(4), iic(9)
BUGS
Some features are currently unsupported, like the iic(9) bus, access to parameter RAM and CPU speed control.
BSD
May 14, 2007 BSD