Bash script problems with "&"
So, I try to create a simple script (first time experience at bash scripts) which blocks some banners in few sites, but i've encountered a little problem:
Code:
#!/bin/bash Can anyone please tell me where and what is wrong with the scriptie? Also would be very nice of you If someone could give some useful links to bash script manuals... :) Thanks in advance! edit Ah, found out that I actually don't need that &adspace= line... Was just trying to reproduce the idea from one other similiar file and I guess that this line was mean't as a blockable thingie.. Anyway, just for the future knowledge - If I someday need to add such line to script, how should it look like? |
The www.tldp.org (The Linux Documentation Project) has an excellent document (Advanced Bash Scripting Guide). (abs-Guide.pdf)
This book consists almost entirely of examples, with explanations in the comments. For your type of program, HERE documents are normally used: Code:
#!/bin/bash Also look at the info bash manual. You may find it easier to read it from the konqueror browser. Try info:bashref in the address bar. You may need to install a "bash-doc" package to do this. |
Thanx for your help :)
|
I like giving links to helpful sites. jschiwal already gave you the tlpd site so here are two others:
http://www.panix.com/~elflord/unix/bash-tute.html and http://www.telematica.polito.it/mell...in20pages.html Also, you'll find a ton of great tutorials by Googling "bash tutorials" or "bash scripting". -AM |
All times are GMT -5. The time now is 02:49 AM. |