Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 179685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:27:03+00:00 2026-05-11T14:27:03+00:00

The problem is related to my answer here . I cannot get the following

  • 0

The problem is related to my answer here.

I cannot get the following code to work

#!/bin/bash  wget http://www.google.com/coop/cse?cx=017685108214920485934%3Aizx6pzojwka -O CSE-spanien awk '/^searches [1-9]* sites, including:/ { print $2 }' CSE-spanien 

Example of the Error message [edited]

$./code --2009-04-14 19:01:32--  http://www.google.com/coop/cse?cx=017685108214920485934%3Aizx6pzojwka Resolving www.google.com... 74.125.79.103, 74.125.79.99, 74.125.79.147, ... Connecting to www.google.com|74.125.79.103|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `cse?cx=017685108214920485934:izx6pzojwka.6'      [ <=>                                                                                                               ] 8,096       --.-K/s   in 0s        2009-04-14 19:01:33 (78.0 MB/s) - `cse?cx=017685108214920485934:izx6pzojwka.6' saved [8096]  ./code: line 3: -O: command not found awk(57264) malloc: *** error for object 0x4eee0: Non-aligned pointer being freed (2) *** set a breakpoint in malloc_error_break to debug awk: cmd. line:1: fatal: cannot open file `/Users/Masi/Documents/test/CSE-spanien' for reading (No such file or directory) 

How can you run AWK in a Bash script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T14:27:03+00:00Added an answer on May 11, 2026 at 2:27 pm

    You’re missing -O CSE-spanien at the end of your wget line. As a result, CSE-spanien doesn’t exist – wget is saving it the HTML with the filename cse?cx=017685108214920485934:izx6pzojwka.2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I hardly see any pointer on the following problem related to Hibernate. This pertains
I have run into a rather weird little problem. In the following code I
I've read all related remote debug entries here and couldn't find an answer to
UPDATE: Problem Solved. Darin Dimitrov's answer contains a link to another, related question. One
I have a problem related to graph. I am not a computer science grad
I have a problem related to the subset sum problem and am wondering if
I have a performance problem related to string comparison (in Java). I'm working on
I am facing a problem related to the scope of the variables used .
This seems to be a problem related to Safari only. I've tried 4 on
I'm narrowing in on an underlying problem related to two prior questions. Basically, I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.