Can I execute searches via submitting URL (may be with special syntax) rather than typing in words in Google (or other search engine) form?
... in the address bar launches the search in firefox.
The same from bash:
... note the use of
# are special to bash.
%20 is the hex code for a space. Example:
echo "Test text" | od -t x1z - will tell you what the codes are for "Test text" and the appended linefeed.
If you are using Firefox:
You can define a keyword for any search field. Typing the keyword followed by your search terms into the address bar will then execute a search.
Quoting the instructions from my answer on Super User:
Right-click on any input field.
Select "Add a keyword for this search…" (or similar).
Enter the shortcurt (and optionally: edit the generated search URL to include pre-defined search terms).
This will save a bookmark in a folder of your choice. You could manually edit this bookmark to change the keyword or the search URL.
Example: If you right-click into the search field of this site, Ask Ubuntu, and associate the keyword
au, you can enter the following into the address bar to search for "foobar" on Ask Ubuntu: