Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to check or remove IP address from a hashed known_hosts file?which Post 302901315 by SriniShoo on Tuesday 13th of May 2014 08:40:38 AM
Old 05-13-2014
Change the ip in ip='186.192.10.122' in the below code to check if the IP is available
Code:
 
awk '$0 ~ ip {print ip " exists in " FILENAME}' ip='186.192.10.122' known_hosts

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to remove a logical ip address?

hi, i "accidentedly" added some logical ip address to my solaris 8 machine. now i want to remove them. i already man ifconfig but some how i just keep getting the wrong syntax. this is the command i used to add ifconfig hme0 addif 192.168.100.10 netmask 255.255.2550.0 up so, now... (2 Replies)
Discussion started by: champion
2 Replies

2. Programming

parsing a string to check if it's an IP address

Hello everybody! I woul quickly need a function bool ParseIPString(char*) that parses a string to check if it's in IP format. thanks in advance for any help! best regards, nadiamihu (1 Reply)
Discussion started by: nadiamihu
1 Replies

3. Shell Programming and Scripting

check if argument is an ip address in bash/sh

Hi all, Can you please suggest a few lines of if statement to check if a variable is an ip address purely in bash/sh? Thanks, Marc (3 Replies)
Discussion started by: marcpascual
3 Replies

4. Shell Programming and Scripting

Check file size and remove files

Hi, Here we have a situation where we have to check the file size and if the file size is greater than 0 bytes then remove the files from the directory. 1)EdwTrxn 2)EdwPost 3)EdwTndr 4)EdwSls 5)EdwSlsRej 6)EdwTndrRej Files will be created in the directory in the following manner. ... (5 Replies)
Discussion started by: srivsn
5 Replies

5. Shell Programming and Scripting

Need to remove lines that start with an IP address

Hi, I keep having to remove lines have an IP address as the second field from my awstats logs, as it makes the processing fail. Rather than do it individually each time (once or twice a week) it fails, I'd like to remove any lines from the file that have 3 digits and then a dot as the start... (1 Reply)
Discussion started by: sfisk
1 Replies

6. UNIX for Dummies Questions & Answers

hashed commands

How to display hashed commands for your current shell session? Thanks. (1 Reply)
Discussion started by: zhshqzyc
1 Replies

7. AIX

known_hosts passwordless access

Dears i have one primary server and 4 secondary server i need to access all my secondary servers from the primary server without using the password how do i configure the known_hosts to do this . (1 Reply)
Discussion started by: thecobra151
1 Replies

8. UNIX for Dummies Questions & Answers

Solaris and known_hosts

Hello, I have a file known_hosts where i want to remove a key, but i don't how to do remove a client on it ? Can you help me please ? Thanks very much (1 Reply)
Discussion started by: jose2204
1 Replies

9. Shell Programming and Scripting

To check the file and remove header before copying

Hi Guys, I have below directory where there are certain files. Something like below country_dir aus_01.txt nz_01.txt aus_02.txt bd.txt property.txt aus nz bd I need to remove the header of the file which ends with _01.txt while copying from country directory to another... (15 Replies)
Discussion started by: rohit_shinez
15 Replies

10. UNIX for Beginners Questions & Answers

Deleted known_hosts file on private server, how do I get it back?

In my ignorance I deleted the known_hosts file on private server. I am not sure what the file type is supposed to be. In general, I have been having problems with ssh and passwords. For some reason, despite having generated a private/public key pair and successfully saving the .pub file onto the... (2 Replies)
Discussion started by: Circuits
2 Replies
Locale::Codes::LangFam(3pm)				 Perl Programmers Reference Guide			       Locale::Codes::LangFam(3pm)

NAME
Locale::Codes::LangFam - standard codes for language extension identification SYNOPSIS
use Locale::Codes::LangFam; $lext = code2langfam('apa'); # $lext gets 'Apache languages' $code = langfam2code('Apache languages'); # $code gets 'apa' @codes = all_langfam_codes(); @names = all_langfam_names(); DESCRIPTION
The "Locale::Codes::LangFam" module provides access to standard codes used for identifying language families, such as those as defined in ISO 639-5. Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default ISO 639-5 language family codes will be used. SUPPORTED CODE SETS
There are several different code sets you can use for identifying language families. A code set may be specified using either a name, or a constant that is automatically exported by this module. For example, the two are equivalent: $lext = code2langfam('apa','alpha'); $lext = code2langfam('apa',LOCALE_LANGFAM_ALPHA); The codesets currently supported are: alpha This is the set of three-letter (lowercase) codes from ISO 639-5 such as 'apa' for Apache languages. This is the default code set. ROUTINES
code2langfam ( CODE [,CODESET] ) langfam2code ( NAME [,CODESET] ) langfam_code2code ( CODE ,CODESET ,CODESET2 ) all_langfam_codes ( [CODESET] ) all_langfam_names ( [CODESET] ) Locale::Codes::LangFam::rename_langfam ( CODE ,NEW_NAME [,CODESET] ) Locale::Codes::LangFam::add_langfam ( CODE ,NAME [,CODESET] ) Locale::Codes::LangFam::delete_langfam ( CODE [,CODESET] ) Locale::Codes::LangFam::add_langfam_alias ( NAME ,NEW_NAME ) Locale::Codes::LangFam::delete_langfam_alias ( NAME ) Locale::Codes::LangFam::rename_langfam_code ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangFam::add_langfam_code_alias ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangFam::delete_langfam_code_alias ( CODE [,CODESET] ) These routines are all documented in the Locale::Codes::API man page. SEE ALSO
Locale::Codes The Locale-Codes distribution. Locale::Codes::API The list of functions supported by this module. http://www.loc.gov/standards/iso639-5/id.php ISO 639-5 . AUTHOR
See Locale::Codes for full author history. Currently maintained by Sullivan Beck (sbeck@cpan.org). COPYRIGHT
Copyright (c) 2011-2012 Sullivan Beck This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.2 2012-10-11 Locale::Codes::LangFam(3pm)
All times are GMT -4. The time now is 02:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy