I have a file with one of the following lines, when opened with vi
33560010686GPT£120600GBPGBP10082007DS
In the above line, I want to get rid of the junk character before the £ (pound sysmbol).
When I tried copying £ from windows and copy in unix vi, it prints as £ and I tried pattern replace... (2 Replies)
Hi All,
I have been trying to FTP some data files from Windows directory to a UNIX server. The txt file in the windows contails the following data:
"111~XYZ~1~Contact person’s phone number~COMMENTS~~~~"
but the same line is appearing as
"111~XYZ~1~Contact person^Òs phone number~COMMENTS~~~~"... (8 Replies)
Hi
set filename "./GopiRun.sh"
if } err] {
writeLog "error in exec "
writeLog $a
} else {
writeLog $a
}
The above code will execute a file GopiRun.sh,and will log the output of the exec to a file.
The problem is the file has lot of junk character in it,how to avoid it.
The... (2 Replies)
Hi Team,
I have a file having size greater than 1 GB. What i want to do is to check if it contains any JUNK character (ie any special charater thats not on the key board stroke). This file has 532 column & seperated with ^~^.
I have found some solution from the file, but it is for a... (4 Replies)
Hi All
I have a rather unusual problem, which i have not faced till now. I have a script which exports some paths to a text file. The script runs fine but when i check the output file i can see some junk characters ^M appended at end of lines and random places. I am not able to figure... (4 Replies)
Hello,
I have two .sql files which I transferred from Windows to Unix (Linux Enterprise Linux Server release 5.3).I want to ensure that these two files have no junk characters in them.How do I do it in the simplest possible way?
Many thanks
DJ (1 Reply)
Dear ALL,
How to remove junk charecter ^M from unix file i am using sun solaris unix.
I already tried few commands
:%s/^M//g
:%s/r//g
but it didnt helped me.
Any help appriciated.
Thanks
Ripudaman
Please view this code tag video for how to use code tags when posting code... (5 Replies)
Hi
I want to know how to see junk character in a file.
i am not able to see junk character using vi or cat command.
below is the junk char . which i see in host file
10.178.14.67▒▒▒ ac01sp02-vip
actually it should be like this
10.178.14.67 ac01sp02-vip
i am using secure CRT... (11 Replies)
Hello,
Im downloading the file from windows server through FTP, the downloaded file is containing some junk character at very start of the file as below and causing my whole script is to fail,
how to download without junk or how to remove these before processing it?
▒▒"nmdbfnmdsfsdf"
... (19 Replies)
Discussion started by: Riverstone
19 Replies
LEARN ABOUT DEBIAN
lwp-dump
LWP-DUMP(1p) User Contributed Perl Documentation LWP-DUMP(1p)NAME
lwp-dump - See what headers and content is returned for a URL
SYNOPSIS
lwp-dump [ options ] URL
DESCRIPTION
The lwp-dump program will get the resource indentified by the URL and then dump the response object to STDOUT. This will display the
headers returned and the initial part of the content, escaped so that it's safe to display even binary content. The escapes syntax used is
the same as for Perl's double quoted strings. If there is no content the string "(no content)" is shown in its place.
The following options are recognized:
--agent str
Override the user agent string passed to the server.
--keep-client-headers
LWP internally generate various "Client-*" headers that are stripped by lwp-dump in order to show the headers exactly as the server
provided them. This option will suppress this.
--max-length n
How much of the content to show. The default is 512. Set this to 0 for unlimited.
If the content is longer then the string is chopped at the limit and the string "...
(### more bytes not shown)" appended.
--method str
Use the given method for the request instead of the default "GET".
--parse-head
By default lwp-dump will not try to initialize headers by looking at the head section of HTML documents. This option enables this.
This corresponds to "parse_head" in LWP::UserAgent.
--request
Also dump the request sent.
SEE ALSO
lwp-request, LWP, "dump" in HTTP::Message
perl v5.14.2 2012-01-14 LWP-DUMP(1p)