Does anyone know how to use grep/egrep to find a string that contains a null character?
i.e.: the string looks like this: null0001nullN
well I want to be able to : grep '0001N'
is there a wildcard character or something that I can put in the grep to include the nulls? (3 Replies)
Hi,
I face some problem with handling of nulls. I declare a variable - say i - and intialise to 0. Later I read it from console, wherein if I dont give any variable and press return key, I get this error:
"0403-004 Specify a parameter with this command"
Is there anyway to handle this error?
... (3 Replies)
I'm testing out some ESMTP AUTH stuff, and it requires that the username and password be on the same line separated by a null character. Does anyone know how to echo the ASCII null character?
Thanks,
Alex (3 Replies)
Hi,
I would like to use grep to find files which contain NULL characters. I'm not sure how to represent the null character in the grep statement.
Could anyone help please?
Thanks!
Helen :confused: (5 Replies)
Ok, so when a user inputs nothing, simply pressing enter when prompted for a phone number, I get a "./addrbkfct.sh: test: argument expected" error message. I have the following function:
addNumber(){
echo "Phone number: \c";
read number;
echo $number;
if ;... (2 Replies)
Hi ,
I have a script where i will remove header and trailer record and ftp to another server.
I'm using the code:
latestfilename=`ls filename_* | tail -1`
echo "Latest filename = $latestfilename"
sed '1d;$d' $latestfilename > a.ftpedfile
I have an issue if input data is having null... (1 Reply)
Hi Experts,
When i am trying to read a csv file ,i could find some invisible character in it.
I tried to see those characters by following code
od -c filename
It is displaying 240 for those invisible character.
can some one elobrate on this and provide solution remove those character from... (4 Replies)
I have a huge file with record length around 5000 characters.
There is an ETL tool datastage which is writing this data to the file(AIX server). At position 4095 i have seen NULL Character(^@).
when i am using this command "head -1 file_nm | sed 's/\000//g'" --- the output is displaying... (3 Replies)
I kind of found out the hard way that I am not able to manipulate the null value, the long silence that happens when there is no value returned.
I am looking for PIDs, and when there is no PID return, I wanted to handle this special scenario.
Here is my script.
#!/bin/bash
LAN_VARIABLE=... (7 Replies)
We have a flat file with below data :
^@^@^@^@00000305^@^@^@^@^@^@430^@430^@^@^@^@^@^@^@^@^@09079989530As we can see ^@ is Null character in this file
I want to remove only the first few null characters before string 00000305
How can we do that, any idea. I want a new file without first few... (5 Replies)
Discussion started by: simpltyansh
5 Replies
LEARN ABOUT DEBIAN
cache::null
Cache::Null(3pm) User Contributed Perl Documentation Cache::Null(3pm)NAME
Cache::Null - Null implementation of the Cache interface
SYNOPSIS
use Cache::Null;
my $cache = Cache::Null->new();
See Cache for the usage synopsis.
DESCRIPTION
The Cache::Null class implements the Cache interface, but does not actually persist data. This is useful when developing and debugging a
system and you wish to easily turn off caching. As a result, all calls return results indicating that there is no data stored.
CONSTRUCTOR
my $cache = Cache::Null->new( %options )
The constructor takes cache properties as named arguments, for example:
my $cache = Cache::Null->new( default_expires => '600 sec' );
See 'PROPERTIES' below and in the Cache documentation for a list of all available properties that can be set. However it should be noted
that all the existing properties, such as default_expires, have no effect in a Null cache.
METHODS
See 'Cache' for the API documentation.
SEE ALSO
Cache
AUTHOR
Chris Leishman <chris@leishman.org>
Based on work by DeWitt Clinton <dewitt@unto.net>
COPYRIGHT
Copyright (C) 2003-2006 Chris Leishman. All Rights Reserved.
This module is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either expressed or implied. This program is free software;
you can redistribute or modify it under the same terms as Perl itself.
$Id: Null.pm,v 1.4 2006/01/31 15:23:58 caleishm Exp $
perl v5.12.4 2011-08-05 Cache::Null(3pm)