:confused: Hi, 2 questions to get some insight. Thanks
(1) I would like to add a prefix (XX00) in each row of the line in my text file and save a newly generated file another name. How to go about it.
(2) How to insert a blank line into each row in my file. and save the file another name.... (2 Replies)
okay so I just started this unix class and understood all the test questions but this "normal" question threy me through a loop :confused:. The question is Why are UNIX commands noninteractive and why is their output not usually preceededby header information? This question has been driving me... (2 Replies)
Hello Everyone!
changing from Microsoft to Macintosh, I connected my hard disk (nearly full) to the apple computer, which could not recognize it. I was prompt to "initialize it", unfortunately I DECIDED YES!!, but just for 1/100 of a second: now I cannot access the hard disk at all.
Is still... (1 Reply)
how to make cut and awk treat "a b" as a single column rather then two separate columns "a and b"?
how to remove " symbol from "a b" so there is only a b?
Please help
Regards
Karol (14 Replies)
I am trying to use 'cut' to get a line from my file. But it seems that 'cut' recongnizes TAB as default. My file uses space instead. So 'cut' doesn't work.
Anybody can tell me how to change the default from TAB to space ? Or how to transform a space-delimited file into tab-delimited file??... (2 Replies)
I have a file which contains 6 columns.
But I only need the first 3 columns. So I need to remove the last 3 columns. I checked 'cut' but it seems not working.
So is there a command that could remove certain columns from a file? :(
Thanks a lot!! (5 Replies)
Hi, everyone,
I have a matrix, let's say:
1 2 3 4 5 6 ...
4 5 6 7 8 9 ...
7 8 9 1 2 3 ...
3 4 5 6 7 8 ...
.........
(nxm matrix)
Is there a simple command that can take certain specific rows out of the matrix?
e.g., I want to take row 2 (4 5 6 7 8 9 ...) and row 4 (3 4 5 6 7 8... (2 Replies)
Hello everyone,
I have a some doubt about DNS. We have connected to 2 ISPs /ISP#1 and ISP#2/. Our web site's dns zone is located on ISP#1. If connection to ISP#1 is down clients won't find our website. ISP#1 connection went down few times this month.
So we are going to create our website's... (0 Replies)
Hi,
I have a file which has three columns and 200 rows. I would like to print an extra column say "disco" for every 10 th row starting from 4 th row. How is that possible?
Thnx (4 Replies)
TAP::Parser::Result::Plan(3pm) Perl Programmers Reference Guide TAP::Parser::Result::Plan(3pm)NAME
TAP::Parser::Result::Plan - Plan result token.
VERSION
Version 3.26
DESCRIPTION
This is a subclass of TAP::Parser::Result. A token of this class will be returned if a plan line is encountered.
1..1
ok 1 - woo hooo!
1..1 is the plan. Gotta have a plan.
OVERRIDDEN METHODS
Mainly listed here to shut up the pitiful screams of the pod coverage tests. They keep me awake at night.
o "as_string"
o "raw"
Instance Methods
"plan"
if ( $result->is_plan ) {
print $result->plan;
}
This is merely a synonym for "as_string".
"tests_planned"
my $planned = $result->tests_planned;
Returns the number of tests planned. For example, a plan of 1..17 will cause this method to return '17'.
"directive"
my $directive = $plan->directive;
If a SKIP directive is included with the plan, this method will return it.
1..0 # SKIP: why bother?
"has_skip"
if ( $result->has_skip ) { ... }
Returns a boolean value indicating whether or not this test has a SKIP directive.
"explanation"
my $explanation = $plan->explanation;
If a SKIP directive was included with the plan, this method will return the explanation, if any.
"todo_list"
my $todo = $result->todo_list;
for ( @$todo ) {
...
}
perl v5.18.2 2014-01-06 TAP::Parser::Result::Plan(3pm)