How to remove metacharacter while using wget command


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to remove metacharacter while using wget command
# 1  
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
# 2  
Old 10-31-2011
From your description, I am not sure about if this long string is the one to cut out or if there is anything inside it to be removed, or if it is always the same, nor do I see how your file looks like so to locate the unwanted stuff.

Also the combination of many cat, cut, egrep, awk and sed are things you could most probably do with 1 of them instead of all 5 commands.

Hint:
Show an input example line and the expected output, thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question