10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am having this problem:
a) I am uploading a txt file from windows (notepad) with some Gaussian 09 command lines;
b) Gaussian needs in certain command files, that those files have a blank line at the end of the file!
c) I open the command file with vi and no blank line at the of... (2 Replies)
Discussion started by: luismga
2. UNIX for Dummies Questions & Answers
I want ot print a header with new line in the end. I am using echo
like echo "this is header"
I want output like
This is header
I tried -e also but it's not working. echo - e
Can anyone help please? (6 Replies)
Discussion started by: dsa
3. Shell Programming and Scripting
Am totally confused with sed and translate command command.. My problem is
I have a file like
# vi test.csv
IYO_HYTR_FGT_L3_BGT_ICT... (5 Replies)
Discussion started by: Priya Amaresh
4. Shell Programming and Scripting
I have following file contents
I would like to comment line line=eeeeee and insert a new line... (19 Replies)
Discussion started by: manishdivs
5. Shell Programming and Scripting
I am new to this forum. I have a question in Unix shell scripting. Here is my requirement
I have 1000 files and I need to insert a header with one line at the top of
each of the 1000 files. Please let me know if you have any solution for this
Thanks in advance.
Raj (4 Replies)
Discussion started by: trajashekar
6. Shell Programming and Scripting
I have a large file and i need to insert a line after every line.I am actually unaware how to do it.Any help appreciated.
control station *ATM* , qread $OSS.Jul13A.FI01 interval 1 intcount 1
control station *ATM* , qread $OSS.Jul13A.FI02 interval 1 intcount... (4 Replies)
Discussion started by: appu2176
7. UNIX for Dummies Questions & Answers
I can use the following command to insert a ' at the beginning of each line
sed "s/^/'/g" test.txt > test1.txt
However, I'm unable to use the following to insert a ' at the end of each line in this way
sed "s/$/'/g" test.txt > test1.txt
Any... (3 Replies)
Discussion started by: karthiknaidu
8. UNIX for Dummies Questions & Answers
How to add control characters at the end of each line in a file?
Can anyone help me with this?
Shobana (2 Replies)
Discussion started by: Shobana_s
9. UNIX for Advanced & Expert Users
Is there any command where we can insert a line "2|||" before every line starting with "3|"
my input is as follows
2|EN_GB||Electrogalvanize 0.5 m2 ( Renault )
desired output... (10 Replies)
Discussion started by: laxmi131
10. Shell Programming and Scripting
I have a file where each line starts with a "update" statement. I want to insert a new line, after each line, with the words "go" in the new line. Can someone help me out with this? (1 Reply)
Discussion started by: ssmallya
URI::URL(3) User Contributed Perl Documentation URI::URL(3)
URI::URL - Uniform Resource Locators
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to
be distributed with the libwww-perl library.
The following differences exist compared to the "URI" class interface:
o The URI::URL module exports the url() function as an alternate constructor interface.
o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase".
o The URI::URL->newlocal class method is the same as URI::file->new_abs.
o $url->print_on method
o $url->crack method
o $url->full_path: same as ($uri->abs_path || "/")
o $url->netloc: same as $uri->authority
o $url->epath, $url->equery: same as $uri->path, $uri->query
o $url->path and $url->query pass unescaped strings.
o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters)
o $url->params and $url->eparams methods
o $url->base method. See URI::WithBase.
o $url->abs and $url->rel have an optional $base argument. See URI::WithBase.
o $url->frag: same as $uri->fragment
o $url->keywords: same as $uri->query_keywords
o $url->localpath and friends map to $uri->file.
o $url->address and $url->encoded822addr: same as $uri->to for mailto URI
o $url->groupart method for news URI
o $url->article: same as $uri->message
Copyright 1998-2000 Gisle Aas.
perl v5.12.5 2011-08-13 URI::URL(3)