Sponsored Content
Top Forums Shell Programming and Scripting How to remove metacharacter while using wget command Post 302569396 by anuragpgtgerman on Monday 31st of October 2011 07:07:46 AM
Old 10-31-2011
How to remove metacharacter while using wget command

Hi All,

While using below command I am getting some unusual character in Release.txt file.How could I remove or stop them to go into Release.txt file

Code:
wget -q http://m0010v.prod.wspan.com/nggfmonatl/Default.aspx
cat Default.aspx|egrep -in "EFS|HOTFIX" | awk -F/ '{print $(NF-1)}'|cut -d ">" -f3|cut -d "<" -f1|cut -d "_" -f1 |sed 's/[ \t]*$//'| uniq > /efare1/home/qabuild/rohit/Release.txt




Characters in Release.txt file
Code:
zNWGbYV4+0qwmc15ZGO7EWI9qdY0AcfT37+vv2YPH0BxC3o9MDS166QrOts2TnnQf450FT0RlNtzAyAlIb6huIQFQ6owTR8U16R1fyaeUYPwOPbYb"

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Null metacharacter?

Ok, here's what I'm trying to do: I'm trying to formulate an <expression> that will match any of the following: *.jpeg *.jpg *.JPEG *.JPG for a 'find <directory> -name <expression> ' command. I'd like to do *., but don't know what the null character is, or even if it exists. Any... (6 Replies)
Discussion started by: kidcharles
6 Replies

2. Shell Programming and Scripting

wget command

hi I was run thix command(wget) it was runing in some severs but in some servers it wasn't run ?? ...... how to it run in that server ? thx :( (1 Reply)
Discussion started by: XPS
1 Replies

3. Shell Programming and Scripting

read metacharacter [ and ]

i have command sed sed '/^*$/ d' which don't recognize the how can i solve it? (2 Replies)
Discussion started by: kamel.seg
2 Replies

4. Shell Programming and Scripting

how to use scp with metacharacter

hi i have a file name : file^name that i need to scp to different machine without changing the name scp file^name user@machine/file^name its throwing the error cant use ^name(Something like this) any solution i already tried differnt combinations like "user@machine/file^name"... (2 Replies)
Discussion started by: narang.mohit
2 Replies

5. UNIX for Dummies Questions & Answers

Binding command in wget.

I was recently reading a manual of wget and there was command as "binding-address" and I read about tcp/ip binding but i don't understand one thing is...what is the use of binding address in wget.. Can anyone help me with this. (6 Replies)
Discussion started by: jFreak619
6 Replies

6. Homework & Coursework Questions

metacharacter

how to list all filenames consisting of two lower case letters using metacharacters? (1 Reply)
Discussion started by: rathankumar
1 Replies

7. UNIX for Dummies Questions & Answers

best way of using wget command?

Dear all, I would like to use the wget command to download on my laptop some free e-books for then being able to read them when I am off the internet. could you please let me know, what is the best of doing that? Let's say, I want download the bible that can be found here: The Project... (3 Replies)
Discussion started by: freddie50
3 Replies

8. Shell Programming and Scripting

How to remove. (dot) if found in the beginning of file name while doing wget (download)?

Dear All, How to remove. (dot) if found in the beginning of file name while doing wget (download)? I am facing problem while re-sizing the image by using ImageMagick. Two dots in the file name are causing problem. ImageMagick is skipping such image with a dot . in the beginning, like ... (1 Reply)
Discussion started by: Praveen Pandit
1 Replies

9. Shell Programming and Scripting

Wget command help

hi, i need help for downloading excel file from internet and convert it to text file wget http://spreadsheetpage.com/downloads/xl/wordfrequency.xls (4 Replies)
Discussion started by: raghur77
4 Replies

10. UNIX for Beginners Questions & Answers

Find command with Metacharacter (*) Should match exact filename

Hi, Below is list of files in my directory. -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:58 12345_kms_report.csv -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12346_kms_report.csv -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59 12347_kms_report.csv -rw-rw-r--. 1 Roots Roots 0 Dec 26 06:59... (2 Replies)
Discussion started by: Balraj
2 Replies
dos2unix(1)						      General Commands Manual						       dos2unix(1)

NAME
dos2unix - DOS/MAC to UNIX text file format converter SYNOPSYS
dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...] Options: [-hkqV] [--help] [--keepdate] [--quiet] [--version] DESCRIPTION
This manual page documents dos2unix, the program that converts plain text files in DOS/MAC format to UNIX format. OPTIONS
The following options are available: -h --help Print online help. -k --keepdate Keep the date stamp of output file same as input file. -q --quiet Quiet mode. Suppress all warning and messages. -V --version Prints version information. -c --convmode convmode Sets conversion mode. Simulates dos2unix under SunOS. -o --oldfile file ... Old file mode. Convert the file and write output to it. The program default to run in this mode. Wildcard names may be used. -n --newfile infile outfile ... New file mode. Convert the infile and write output to outfile. File names must be given in pairs and wildcard names should NOT be used or you WILL lost your files. EXAMPLES
Get input from stdin and write output to stdout. dos2unix Convert and replace a.txt. Convert and replace b.txt. dos2unix a.txt b.txt dos2unix -o a.txt b.txt Convert and replace a.txt in ASCII conversion mode. Convert and replace b.txt in ISO conversion mode. Convert c.txt from Mac to Unix ascii format. dos2unix a.txt -c iso b.txt dos2unix -c ascii a.txt -c iso b.txt dos2unix -c mac a.txt b.txt Convert and replace a.txt while keeping original date stamp. dos2unix -k a.txt dos2unix -k -o a.txt Convert a.txt and write to e.txt. dos2unix -n a.txt e.txt Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt. dos2unix -k -n a.txt e.txt Convert and replace a.txt. Convert b.txt and write to e.txt. dos2unix a.txt -n b.txt e.txt dos2unix -o a.txt -n b.txt e.txt Convert c.txt and write to e.txt. Convert and replace a.txt. Convert and replace b.txt. Convert d.txt and write to f.txt. dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt DIAGNOSTICS
BUGS
The program does not work properly under MSDOS in stdio processing mode. If you know why is that so, please tell me. AUTHORS
Benjamin Lin - <blin@socs.uts.edu.au> Bernd Johannes Wuebben (mac2unix mode) <wuebben@kde.org> MISCELLANY
Tested environment: Linux 1.2.0 with GNU C 2.5.8 SunOS 4.1.3 with GNU C 2.6.3 MS-DOS 6.20 with Borland C++ 4.02 Suggestions and bug reports are welcome. SEE ALSO
unix2dos(1) mac2unix(1) 1995.03.31 dos2unix v3.0 dos2unix(1)
All times are GMT -4. The time now is 10:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy