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)
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)
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)
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)
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)
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)
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
LEARN ABOUT NETBSD
akbd
AKBD(4) BSD Kernel Interfaces Manual AKBD(4)NAME
akbd -- Apple Desktop Bus keyboard driver for wscons
SYNOPSIS
akbd* at obio?
wskbd* at akbd? console ?
options ALTXBUTTONS
options CAPS_IS_CONTROL
options FORCE_FUNCTION_KEYS
DESCRIPTION
This driver provides the wscons(4) driver with support for Apple Desktop Bus keyboards.
To work around the limited number of buttons found on most ADB mice, one can map key sequences to trigger mouse button events. To map
Option+1, Option+2, Option+3 to mouse buttons 1, 2, and 3 respectively, add the following line to your kernel configuration file:
options ALTXBUTTONS
On macppc systems it is possible to tweak the keyboard driver to treat the caps lock key on an ADB keyboard as a control key. This requires
special remapping because of ADB's strange emulation of a mechanically-locked key. To enable this code add the following line to your kernel
configuration file:
options CAPS_IS_CONTROL
On macppc PowerBooks, several function keys double as "hot keys" (brightness, volume, eject) when the Fn modifier is held down. Mac OS X
likes to reprogram the keyboard controller to send hot key events when Fn is not held down and send function key events when it is. To
transform the non-keyboard "button" events back into function key events, place the following line in your kernel configuration file:
options FORCE_FUNCTION_KEYS
SUPPORTED HARDWARE
NetBSD is known to support the following ADB keyboards:
o On-board keyboards on PowerBook models
o Apple Standard Keyboard
o Apple Keyboard II
o Apple Extended Keyboard
o Apple Extended Keyboard II
o Apple Adjustable Keyboard
o Most third-party ADB keyboards are supported
SEE ALSO adb(4), wscons(4), wskbd(4), wsconsctl(8)BUGS
The number pad on extended keyboards does not send out the proper key codes for many applications.
The LEDs on extended keyboards are not functional under NetBSD.
BSD September 21, 2003 BSD