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
geoip(3)							    Version 0.2 							  geoip(3)

NAME
geoip - A Tcl extension for geographic or organisational lookup of IP addresses and hostnames. SYNOPSIS
geoip open [-type TYPE ] [-flags FLAG ] geoip open [-file PATH ] [-flags FLAG ] geoip [COMMAND] geoip [QUERY] arg1 DESCRIPTION
This Tcl extension encapsulates most of GeoIP C API functions into tcl commands. OPEN OPTIONS
open takes either a file path and a set of flags, or a type and a set of flags. Supported types and flags are described below. TYPE Looks under the standard installation share directory, eg /usr/local/share/GeoIP/ for a GeoIP database according to type. PATH Absolute/relative path to GeoIP database. FLAG Flags seperated by ':', eg memory_cache:memory_check COMMAND
Individual singular commands can be one of: close Close the currently open database. db_info Get information about the current database. db_edition Returns edition of opened database. db_avail Test the availability of databases in your system in known locations. e.g db_avail country_edition QUERY
Commands that query the database. All commands return N/A if a result cannot be found. If none already open, a command will attempt to open a suitable database. country commands will open a country_edition database. region commands will open a region_edition_rev1 one. name com- mands will open an org_edition one, and the record_edition will open a city_edition_rev1 database. The commands are: country_code_by_addr Takes an IP address and returns the ISO-3166-1 Alpha-2 code of the country. country_code3_by_addr Takes an IP address and returns the ISO-3166-1 Alpha-3 code the country. country_code_by_name Takes a hostname and returns the ISO-3166-1 Alpha-2 code the country. country_code3_by_name Takes a hostname and returns the ISO-3166-1 Alpha-3 code the country. country_name_by_addr Takes an IP address and returns the country name. country_name_by_name Takes a hostname and returns the country name. name_by_addr Takes an IP address and returns the organisation name (or ISP/ASnum according to the opened database) name_by_name Takes a hostname and returns the organisation name. region_by_addr Takes an IP address and returns these region attributes as in an associative array: country, region region_by_name Takes a hostname and returns the region attributes. record_by_addr Takes an IP address and returns these record attributes as in an associative array: code, code3, region, country, city, postcode, latitude, longitude, dma(dma code), and area (area code) record_by_name Takes a hostname and returns the record attributes. TYPES
Relevant types of databases are: country_edition, org_edition, isp_edition, city_edition_rev1, region_edition_rev1, geoip_asnum_edition. "open -type" will accept their unambiguous abbreviations. FLAGS
Valid flags are: standard, memory_cache, check_cache, index_cache. FILES
./share/GeoIP.dat GeoIP country_edition database. ./share/GeoIPOrg.dat GeoIP org_edition database. ./share/GeoIPCity.dat GeoIP region_city_rev1 database. ./share/GeoIPRegion.dat GeoIP region_edition_rev1 database. ./share/GeoIPASNum.dat GeoIP asnum_edition database. BUGS
Please report to author. AUTHOR
Djihed Afifi <djihed@gmail.com>. SEE ALSO
GeoIP C API documentation <www.maxmind.com> Tcl extension April 2007 geoip(3)
All times are GMT -4. The time now is 06:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy