In your input the second field is sometimes "===" and sometimes "====", but you show "====" on all of your output lines. Assuming you want to maintain what is in the input fields and just align the output, the following might work:
but I would be nervous about doing this for "large" input files.
sorry about that. i meant to have all of them to be "===="
but why would u be nervous about doing this for large input files? is there a better solution?
Hi,
I use vi for my text editing. Is there a way to use smart indentation?
that is when adding a '{' or '}' that the editor will jump and advance, or any other thing like that?
thanks (1 Reply)
I know this is not a unix question but I also know that many of you use vim editor every day. So hoping to get some help, here it goes:
How can I change my vim config file so that the indentations while c programming take 4 spaces instead of 8?
I want the change to apply any further uses of... (4 Replies)
Hi,
I'm working on a big project and all the CPP and header files are in mess with respect to indentation. I would like to indent whole file(s) at once (like ctrl-shift-f in eclipse). Is there anybody who knows how to do that in vi/vim?
thanks (2 Replies)
Good morning!!
Im trying to create a script that should get a list of numbers from the user (using STDIN or a list of arguments), and call my library function.
#!use/bin/perl
require 'my-lib.pl';
@userArray = <STDIN>;
while()
{
chomp;
last if ! /\d/;
push(@userArray,&_);
}... (2 Replies)
Hi,
I'm working with gvim, and opened an old file for editing.
the file 'older' indents are diffrent from the current and I wish to set the file to cahnge the whole file to the new indenting setting at once.
How can it be done?
thnx. (0 Replies)
Every now and then I have to indent the lines in my script to 4 space characters.
I generally do it line by line.
Is there an automated command in vi using which I can indent some set of lines to desired number of space characters in one go. (2 Replies)
hi all,
i was wondering if there is an easy and smart way of greping for requestname (in bold below) from xml output from application log file on a solaris 10 system.
The requestName is the actual method name which gets called e.g it could be 'getAccount' or getId or getAddress etc etc
... (1 Reply)
Can anyone tell me if it's possible to write a script that will repeat the same job several times but give the output a slightly different name each time (i.e. change or add a number at the end of the output file)? Here is the script I use to run a single job:
#!/bin/bash
#PBS -N job0
#PBS -l... (1 Reply)
A space, a tab? Just currious what, why, you indent in x way?
Fwiw, I use vi, so kind'a currious how you vi folks approach indentation when writing code (eg python).
Disclosure, I'm just learning python and have never seen a language use indentation so formally (I like it too:) ). I just... (7 Replies)
#!/bin/sh
# This script returns the number of rows updated from a function
echo "The execution is starting ....."
sqlplus -silent $UP <<EOF
set serveroutput on
set echo off
set pagesize 0
VAR no_rows_updated NUMBER;
EXEC :no_rows_updated :=0;
DECLARE
CURSOR c_update is
SELECT * FROM... (4 Replies)
Discussion started by: LoneRanger
4 Replies
LEARN ABOUT DEBIAN
net::gpsd3::return::satellite
Net::GPSD3::Return::Satellite(3pm) User Contributed Perl Documentation Net::GPSD3::Return::Satellite(3pm)NAME
Net::GPSD3::Return::Satellite - Net::GPSD3 Return Satellite Object
SYNOPSIS
use Net::GPSD3 0.13;
my $gpsd = Net::GPSD3->new;
my $poll = $gpsd->poll; #new method in 0.12
my $sky = $poll->sky; #new method in 0.13
printf "Reported: %s, Used: %s
", $sky->reported, $sky->used;
printf "PRN: %s
", join(", ", map {$_->used ? $_->prn : "-".$_->prn} $sky->Satellites);
DESCRIPTION
Provides a Perl object interface to the Satellite data structure returned by the GPSD daemon.
An example JSON string:
{"PRN":15,"el":77,"az":123,"ss":0, "used":false},
METHODS
class
Returns the object class
string
Returns the JSON string
parent
Return the parent Net::GPSD object
PRN, prn
Returns the GPS Satellites Pseudo Random Number Identifier
used
Returns a JSON::XS::Boolean true or false object.
az, azimuth
Returns the azimuth, degrees from true north.
el, elevation
Returns the Elevation in degrees.
ss
Signal strength in dBHz.
Note: C/N0 is dBHz usually, but trimbles can also emit poorly specified Amplitude Measurement Units.
BUGS
Log on RT and Send to gpsd-dev email list
SUPPORT
DavisNetworks.com supports all Perl applications including this package.
Try gpsd-dev email list
AUTHOR
Michael R. Davis
CPAN ID: MRDVT
STOP, LLC
domain=>michaelrdavis,tld=>com,account=>perl
http://www.stopllc.com/
COPYRIGHT
This program is free software licensed under the...
The BSD License
The full text of the license can be found in the LICENSE file included with this module.
SEE ALSO
Net::GPSD3, Net::GPSD3::Return::Unknown
perl v5.14.2 2011-11-09 Net::GPSD3::Return::Satellite(3pm)