Here is my effort to translate using input
Lines of input are enumerated to for easier grasp and are not in actual file / input the program is processing.
Hopefully that is correct.
Regards
Peasant.
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 2 files and i want to compare
i currently cat the files and awk print $1, $2 and doing if file1=file2 then fail, else exit 0
what i want to do is compare values, with column 1 being a reference i want to compare line by line and then still be able to do if then statement to see if worked... (1 Reply)
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,
Please help me with this problem if you have a solution.
I have two files:
<file1> : In each line, first word is an Id and then other words that belong to this Id
piMN-1 abc pqr xyz py12
niLM y12 FY4 pqs
fiRLym F12 kite red
<file2> : same as file1, but can have extra lds... (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)
Total UNIX Rookie, but I'm learning. I have columns of integer data separated by spaces, and I'm using a Mac terminal.
What I want to do:
1. Compare "line 1 column 2" (x) to "line 2 column 2" (y); is y-x>=100?
2. If yes, display difference and y's line number
3. If no, increment x and y by... (9 Replies)
Hi,
I have a file like
2011|ACC|.*
2013|ACC|.*
2011|ACCC|.*
2013|ACCC|.*
2013|ACCV|.*
2011|ADB|.*
2013|ADB|.*
2011|ADBC|.*
2013|ADBC|.*
2011|AIA|.*
2013|AXJ|.*
2013|NNN|.*
.* represnts any alphanumeric characters after this part of the string
I need a code to return only the... (3 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)
Discussion started by: empyrean
4 Replies
LEARN ABOUT DEBIAN
sentinella
SENTINELLA(1) User Commands SENTINELLA(1)NAME
sentinella - System monitor that can react to user chosen conditions
SYNOPSIS
sentinella [Qt-options] [KDE-options] [options]
DESCRIPTION
Action launcher based on system activity
Generic options:
--help Show help about options
--help-qt
Show Qt specific options
--help-kde
Show KDE specific options
--help-all
Show all options
--author
Show author information
-v, --version
Show version information
--license
Show license information
-- End of options
OPTIONS -s, --start
The condition will be run immediately.
Condition options:
--cpu <percentage>
CPU load measurement. Use in combination with --during, --lower or --higher.
--memory <megabytes>
Memory usage in megabytes. Use in combination with --during, --lower or --higher.
--network <kb>
Network traffic in kilobytes/second. Use in combination with --interface, --during and --lower or --higher.
--date-time <value>
Current date and time condition. The format should be: YYYY-MM-DDTHH:MM:SS
--program-dies <pid>
The condition will be met when the process of id <pid> dies.
-h, --higher
The condition will be met if the system's activity is higher than your chosen value.
-l, --lower
The condition will be met if the system's activity is lower than your chosen value.
-d, --during <time>
The time during the condition must be met to throw the action. Format: MM:SS.
-i, --interface <name>
Sets the name of the network interface to monitor when using the --network parameter.
Action options:
--shutdown <force>
Shutdown the computer when the condition is met. <force> values are 'yes' or 'no'.
--reboot <force>
Reboot the computer when the condition is met. Possible values for <force> are 'yes' or 'no'.
--sleep <mode>
Place computer in sleep mode when the condition is met. Possible values for <mode> are 'Standby', 'Suspend' or 'Hibernate'.
--execute-command
The command will be read from stdin.
--terminate-program <pid> It will try to terminate the program specified by <pid>.
sentinella 0.9.0-3 November 2011 SENTINELLA(1)