Hi Alister, that looks ingenious . I presume you mean tail -n 50000 and wc -m? Could you elaborate why the file needs be redirected read/write on stdout?
I tried it on Linux with tail -n 5 and this works fine,
But on OSX 10.9 (bash 3 and bash 4) I got:
and the file ended up consisting of the last 5 lines an empty line and the last 5 lines again.
On Solaris (bash 3 and using XPG4 utilities):
On HPUX (bash 4)
And the file became 0 length
On AIX:
Last edited by Scrutinizer; 10-26-2013 at 06:43 PM..
This User Gave Thanks to Scrutinizer For This Post:
Hi,
There seems to some hack attempts in my site. I have attached the index page of my site and I need to remove the below lines from the index page. The below lines are at the center of the file.
-->
</style>
<script>E V A L( unescape(... (5 Replies)
All,
I have a text file with several entries like below:
personname
personname.domain.com
I know there is a way to use vi to remove only the personname.domain.com line. Can someone help? I believe that it involves /s/g/ something...I just can't remember the exact syntax.
Thanks (2 Replies)
Hi gurus,
i'm trying to remove a number of lines from a large file using the following command:
sed '1,5000d' oldfile > newfile
Somehow the lines in the old file are not deleted...
Am I doing this wrongly? Any suggestions? :confused:
Thanks! :)
wee (10 Replies)
A small question
I have a test.txt file
I have contents as:
a:google
b:yahoo
:
c:facebook
:
d:hotmail
How do I remove the line with :
my output should be
a:google
b:yahoo
c:facebook
d:hotmail (5 Replies)
Hi,
I'm not a expert in shell programming, so i've come here to take help from u gurus.
I'm trying to tailor a csv file that i got to make it work for the LOAD FROM command.
I've a datatable csv of the below format -
--in file format
xx,xx,xx ,xx , , , , ,,xx,
xxxx,, ,, xxx,... (11 Replies)
Hey Gang-
I have a list of servers. I want to exclude servers that begin with and end with certain characters. Is there an easy command to do this?
Example
wvm1234dev
wvm1234pro
uvm1122dev
uvm1122bku
uvm1344dev
I want to exclude any lines that start with "wvm" OR "uvm" AND end... (7 Replies)
I have two files, a keepout.txt and a database.csv. They're unsorted, but could be sorted.
keepout:
user1
buser3
anuser19
notheruser27
database:
user1,2343,"information about",field,blah,34
user2,4231,"mo info",etc,stuff,43
notheruser27,4344,"hiya",thing,more thing,423... (4 Replies)
Hello everyone,
Although it seems easy, I've been stuck with this problem for a moment now and I can't figure out a way to get it done.
My problem is the following:
I have a file where each line is a sequence of IP addresses, example :
10.0.0.1 10.0.0.2
10.0.0.5 10.0.0.1 10.0.0.2... (5 Replies)
I have been searching and trying to come up with an awk that will perform the following on a
converted text file (original is a pdf).
1. Since the first two lines are (begin with) text they are removed
2. if $1 is a number then all text is merged (combined) into one line until the next... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
ost_number
ost::Number(3) Library Functions Manual ost::Number(3)NAME
ost::Number -
A number manipulation class.
SYNOPSIS
#include <numbers.h>
Inherited by ost::DateNumber, and ost::ZNumber.
Public Member Functions
Number (char *buffer, unsigned size)
Create an instance of a number.
void setValue (long value)
const char * getBuffer () const
long getValue () const
long operator() ()
operator long ()
operator char * ()
long operator= (const long value)
long operator+= (const long value)
long operator-= (const long value)
long operator-- ()
long operator++ ()
int operator== (const Number &num)
int operator!= (const Number &num)
int operator< (const Number &num)
int operator<= (const Number &num)
int operator> (const Number &num)
int operator>= (const Number &num)
Protected Attributes
char * buffer
unsigned size
Friends
long operator+ (const Number &num, const long val)
long operator+ (const long val, const Number &num)
long operator- (const Number &num, long val)
long operator- (const long val, const Number &num)
Detailed Description
A number manipulation class.
This is used to extract, convert, and manage simple numbers that are represented in C ascii strings in a very quick and optimal way.
Author:
David Sugar dyfet@ostel.com number manipulation.
Constructor & Destructor Documentation
ost::Number::Number (char *buffer, unsignedsize)
Create an instance of a number. Parameters:
buffer or NULL if created internally.
size use - values for zero filled.
Member Function Documentation
const char* ost::Number::getBuffer () const [inline]
long ost::Number::getValue () const
ost::Number::operator char * () [inline]
ost::Number::operator long () [inline]
int ost::Number::operator!= (const Number &num)
long ost::Number::operator() () [inline]
long ost::Number::operator++ ()
long ost::Number::operator+= (const longvalue)
long ost::Number::operator-- ()
long ost::Number::operator-= (const longvalue)
int ost::Number::operator< (const Number &num)
int ost::Number::operator<= (const Number &num)
long ost::Number::operator= (const longvalue)
Reimplemented in ost::ZNumber.
int ost::Number::operator== (const Number &num)
int ost::Number::operator> (const Number &num)
int ost::Number::operator>= (const Number &num)
void ost::Number::setValue (longvalue)
Reimplemented in ost::ZNumber.
Friends And Related Function Documentation
long operator+ (const Number &num, const longval) [friend]
long operator+ (const longval, const Number &num) [friend]
long operator- (const Number &num, longval) [friend]
long operator- (const longval, const Number &num) [friend]
Member Data Documentation
char* ost::Number::buffer [protected]
unsigned ost::Number::size [protected]
Author
Generated automatically by Doxygen for GNU CommonC++ from the source code.
GNU CommonC++ Sat Jun 23 2012 ost::Number(3)