Sponsored Content
Top Forums Web Development Stripping of Non-Printable Chars in the Who Is Online Page Post 303027372 by Neo on Friday 14th of December 2018 11:30:28 AM
Old 12-14-2018
TODO:

Do the same for the "who is currently online" bits on the home page.
Stripping of Non-Printable Chars in the Who Is Online Page-screen-shot-2018-12-14-112858-pmpng
This User Gave Thanks to Neo For This Post:
 

6 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Usefull HP-UX Man Page Online

Usefull HP-UX Man Page Online Link LINK: HP-UX Man Page http://www.doc.ic.ac.uk/~mac/manuals/hpux-manual-pages/hpux.man1.html (0 Replies)
Discussion started by: killerserv
0 Replies

2. News, Links, Events and Announcements

Linux Man Page Online Link

Linux Man Page Online Link LINK: Linux Man Page Man Page for ( Section ) - The UNIX and Linux Forums (0 Replies)
Discussion started by: killerserv
0 Replies

3. Shell Programming and Scripting

How to convert C source from 8bit chars to 16bit chars?

I was using the following bash command inside the emacs compile command to search C++ source code: grep -inr --include='*.h' --include='*.cpp' '"' * | sed "/include/d" | sed "/_T/d" | sed '/^ *\/\//d' | sed '/extern/d' Emacs will then position me in the correct file and at the correct line... (0 Replies)
Discussion started by: siegfried
0 Replies

4. Shell Programming and Scripting

find 4 chars on 2nd line, 44 chars over

I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :( I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
Discussion started by: unclecameron
4 Replies

5. Shell Programming and Scripting

removing non-printable chars from multiple files

How do I remove non-printable characters from all txt files and output the results to one file? I've tried the following: tr -cd '\n' < *.txt > out.txt and it gives ambiguous redirect error. How can I get it to operate on all txt files in the current directory and append the output to... (1 Reply)
Discussion started by: revax
1 Replies

6. UNIX for Beginners Questions & Answers

Shell script to split data with a delimiter having chars and special chars

Hi Team, I have a file a1.txt with data as follows. dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><! The delimiter string: <SelectStatement modified='1' type='string'><! dlm="<SelectStatement modified='1' type='string'><! The above command is... (7 Replies)
Discussion started by: kmanivan82
7 Replies
IP::Country::MaxMind(3) 				User Contributed Perl Documentation				   IP::Country::MaxMind(3)

NAME
IP::Country::MaxMind - Look up country by IP Address SYNOPSIS
use IP::Country::MaxMind; my $gi = IP::Country::MaxMind->new(GEOIP_STANDARD); # look up IP address '65.15.30.247' # returns undef if country is unallocated, or not defined in our database my $cc1 = $gi->inet_atocc('65.15.30.247'); my $cc2 = $gi->inet_atocc('yahoo.com'); DESCRIPTION
This module adapts the Geo::IP module to use the same interface as the IP::Country modules; thus allowing users to easily switch between using the two underlying databases. DATABASE UPDATES
Free monthly updates to the database are available from http://www.maxmind.com/download/geoip/database/ If you require greater accuracy, MaxMind offers a Premium database on a paid subscription basis. The author of this module is in no way associated with MaxMind. CLASS METHODS
$gi = IP::Country::MaxMind->new( $flags ); Constructs a new IP::Country::MaxMind object with the default database located inside your system's datadir, typically /usr/local/share/GeoIP/GeoIP.dat. Flags can be set to either GEOIP_STANDARD, or for faster performance (at a cost of using more memory), GEOIP_MEMORY_CACHE. When using memory cache you can force a reload if the file is updated by setting GEOIP_CHECK_CACHE. $gi = IP::Country::MaxMind->open( $database_filename, $flags ); Constructs a new Geo::IP object with the database located at $database_filename. OBJECT METHODS
All object methods are designed to be used in an object-oriented fashion. $result = $object->foo_method($bar,$baz); Using the module in a procedural fashion (without the arrow syntax) won't work. $cc = $gi->inet_atocc(HOSTNAME) Takes a string giving the name of a host, and translates that to an two-letter country code. Takes arguments of both the 'rtfm.mit.edu' type and '18.181.0.24'. If the host name cannot be resolved, returns undef. If the resolved IP address is not contained within the database, returns undef. $cc = $gi->inet_ntocc(IP_ADDRESS) Takes a string (an opaque string as returned by Socket::inet_aton()) and translates it into a two-letter country code. If the IP address is not contained within the database, returns undef. $cc = $gi->db_time() Returns zero. For compatibility only. COPYRIGHT
Copyright (C) 2002,2003 Nigel Wetters Gourlay. All Rights Reserved. NO WARRANTY. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2006-04-06 IP::Country::MaxMind(3)
All times are GMT -4. The time now is 05:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy