02-18-2009
both worked according to plan, thanks gentlemen
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
how can i output the number 2641569270623 from a text file called checkpoint.txt that is a one line file (generated by a maths sieving program) that looks like:
pmin=2641569270623,factor_count=8,cpu_secs=1705.793,frac_done=0.002592,elapsed_secs=1710.844
i tried sed -n "/pmin=/,/,factor/ p"... (8 Replies)
Discussion started by: raffi
8 Replies
2. Shell Programming and Scripting
I am basically a scripting noob, I have some programming logic, and I wouldn't post here if my 3 hours of searching actually found something.
So far this is what I have:
"
#! /bin/ksh
List=./pinglist1.txt
cat $List | while read ip
do
Pingable=""
ping $ip -n 2 | awk '/100%/ {print... (11 Replies)
Discussion started by: Lasthitlarry
11 Replies
3. UNIX for Dummies Questions & Answers
I found some ascii art that is animated (vt100) and would like to view it properly. However, when I try using 'cat', the file is done almost the instant I press enter. How can I view the file in a slower fashion (similar to the days of 2400baud, for example)? (2 Replies)
Discussion started by: Fangs McWolf
2 Replies
4. Shell Programming and Scripting
Hello.
I have this..
$ echo '2+2' | bc
4
But I want to output it as
4 MB
So, can I achieve that through one single command line?
Thank you. (7 Replies)
Discussion started by: aimy
7 Replies
5. Shell Programming and Scripting
Hi,
I have two files , one file with data file with attributes that need to be sent to another file to generate a predefined format.
Example:
File.txt
AP|{SSHA}VEEg42CNCghUnGhCVg==
APVG3|{SSHA}XK|"password"
AP3|{SSHA}XK|"This is test"
....
etc
---------
test.sh has... (1 Reply)
Discussion started by: hudson03051nh
1 Replies
6. Shell Programming and Scripting
I have a function to center output in a terminal. However It only works for variables. I would like to center the output of the command 'cal' or 'cal -3' in a terminal.
I have tried:
center `cal`
CAL=`cal`; center $CAL
cal > cal.txt; center `cat cal.txt`
center "`exec cal`"
To no avail,... (10 Replies)
Discussion started by: AlphaLexman
10 Replies
7. Shell Programming and Scripting
Hi,
i wrote a script which prints me the results of a galton board, everything's fine and it works, but now i want to center the output on the screen and i don't know how to do it.:confused:
for i in $(eval echo {1..$SLOT})
do # print all... (3 Replies)
Discussion started by: Don_Bilbo
3 Replies
8. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
9. Shell Programming and Scripting
Hello,
i've got a script based on queries which generates this output into a file
cat cron_S-PostGres-ncc_license_Simpel_ActSub_per_Product
201502-b31s31i10 | MVNO | 114751 | 2017-07-19
201502-b31s31i10R60-60 | MVNO | 62115 | 2017-07-19
201511-b31s31i15 ... (5 Replies)
Discussion started by: nms
5 Replies
10. Web Development
I want to show a page with an image between 2 any paragraphs.
I tried the following script.
But the image is not centered.
SUSE Paste
<!DOCTYPE html>
<html>
<head>
<style>
center.center_1 {
margin: auto;
width: 60%;
... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT OSX
tap::parser::result::plan
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.23
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.16.2 2012-10-25 TAP::Parser::Result::Plan(3pm)