10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to make a awk code that will take 2 files, a txt file like this :
1 1 88 c(1:38, 42, 102)
2 2 128 c(39:41, 43:101, 103:105, 153, 155:189, 292, 344:369)
3 3 84 c(190:249, 603, 606:607, 609:629)
4 4 12 ... (8 Replies)
Discussion started by: nastaziales
2. Shell Programming and Scripting
I have a data like this in a file.
I want replace the date(1st column) of all records.
Ex: 05/08/2017 to 04/02/2017
Please use CODE tags when displaying sample input, sample output,... (1 Reply)
Discussion started by: Artlk
3. Shell Programming and Scripting
I want to keep the name of the songs with their respective extensions only.
03 Choti choti gaiya choti choti gaval.mp3
03 PAYALIYA .mp3
04 - Isq Risk .mp3
08 - A2 - Aasan Nahin Yahan .mp3
AE... (3 Replies)
Discussion started by: Pramod_009
4. Shell Programming and Scripting
Can anyone help me?
I need to replace the letters (A, B, C..) of the second column in this file by a number i.e. 1.
0123456 0A123 0003355 Marion
1234567 0B117 0003388 Anthony
1112333 0C345 0459877 Ann
0123456 01123 0003355 Marion
1234567 ... (3 Replies)
Discussion started by: Lilu_CK
5. Shell Programming and Scripting
How would I do this? How could i use <> symbols for numbers in the find/replace code below?
perl -pi -e 's/test/tst/'
OR is there a better way?
100 5000 2 432 4 2 33 4 5 6 65 300 301
needs to be:
100 300 2 300 4 2 33 4 5 6 65 300 300
also it might not always need spaces... i... (12 Replies)
Discussion started by: herot
6. Shell Programming and Scripting
can you help me in this problem, assume We have two txt file (file_1 and file_3) one is file_1 contains the data:
and I need to count the lines with the matching data (a,b,..) and print in new file called file_2 such as the... (4 Replies)
Discussion started by: GoldenFalcon10
7. Shell Programming and Scripting
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Discussion started by: raghav525
8. Shell Programming and Scripting
I have file contains the following information.
chem00s4.mis.amat.com ] Critical 3/21
chem00s4.mis.amat.com ] Normal 3/22
chem00s4.mis.amat.com ] Normal 3/23
chem00s4.mis.amat.com ] Normal 3/24
chem00s4.mis.amat.com ] Critical 3/25... (2 Replies)
Discussion started by: ntgobinath
How to replace many numbers with one number in a file.
Many numbers like 444565,454678,443298,etc. i want to replace these with one number (300).Please halp me out. (2 Replies)
Discussion started by: vpandey
10. Shell Programming and Scripting
I want to replace a character in every line in the file
say the file looks like this
SOBO20060830094122140014541834 WENP0414541835 ]
I want to replace the blue 00 by TS. (6 Replies)
Discussion started by: preethgideon
URI::Heuristic(3) User Contributed Perl Documentation URI::Heuristic(3)
URI::Heuristic - Expand URI using heuristics
use URI::Heuristic qw(uf_uristr);
$u = uf_uristr("perl"); # http://www.perl.com
$u = uf_uristr("www.sol.no/sol"); # http://www.sol.no/sol
$u = uf_uristr("aas"); # http://www.aas.no
$u = uf_uristr("ftp.funet.fi"); # ftp://ftp.funet.fi
$u = uf_uristr("/etc/passwd"); # file:/etc/passwd
This module provides functions that expand strings into real absolute URIs using some built-in heuristics. Strings that already represent
absolute URIs (i.e. that start with a "scheme:" part) are never modified and are returned unchanged. The main use of these functions is to
allow abbreviated URIs similar to what many web browsers allow for URIs typed in by the user.
The following functions are provided:
Tries to make the argument string into a proper absolute URI string. The "uf_" prefix stands for "User Friendly". Under MacOS, it
assumes that any string with a common URL scheme (http, ftp, etc.) is a URL rather than a local path. So don't name your volumes after
common URL schemes and expect uf_uristr() to construct valid file: URL's on those volumes for you, because it won't.
Works the same way as uf_uristr() but returns a "URI" object.
If the hostname portion of a URI does not contain any dots, then certain qualified guesses are made. These guesses are governed by the
following environment variables:
COUNTRY The two-letter country code (ISO 3166) for your location. If the domain name of your host ends with two letters, then it is
taken to be the default country. See also Locale::Country.
HTTP_ACCEPT_LANGUAGE, LC_ALL, LANG
If COUNTRY is not set, these standard environment variables are examined and country (not language) information possibly found in
them is used as the default country.
Contains a space-separated list of URL patterns to try. The string "ACME" is for some reason used as a placeholder for the host
name in the URL provided. Example:
URL_GUESS_PATTERN="www.ACME.no www.ACME.se www.ACME.com"
Specifying URL_GUESS_PATTERN disables any guessing rules based on country. An empty URL_GUESS_PATTERN disables any guessing that
involves host name lookups.
Copyright 1997-1998, Gisle Aas
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.18.2 2012-02-11 URI::Heuristic(3)