In addition to what they said, since you're starting out and already mentioned you're using BASH: Don't use the classic shell builtin '[ expression ]' ; use the shell keyword '[[ expression ]]'. Trust me, it's all-around better, unless you're coding for old busted bourne shell systems.
One benefit: you won't have to worry about putting quotes around your variables, which was part of your problem.
e.g.
File name: File.txt
cat File.txt
Result:
#INBOUND_QUEUE=FAQ1
INBOUND_QUEUE=FAQ2
I want to get the value for one which is not commented out.
Thanks, (3 Replies)
I am trying to practice to create Makefiles. The goal is to create a makefile such that if a change is made to any of the source code files, the project can be rebuilt by typing make at the command line.
I have the following files:
ac.cc: has include ac.h and pg.h
fr.cc: has main... (8 Replies)
Hi all
I am application Programmer.
In my college(2 yrs back) i have learnt Unix i.e commads, shell scripts, Filesystem,I reffered to a book by "Sumitabha Das".
I want to learn Linux.
But i cant understand where should i start from and which book to refer to.
Most of the books these days eg.... (2 Replies)
Prompt please where the error occurred.
text.txt obtained by ls-lah> text.txt
proc file_to_mas {name_file} {
set fileid
seek $fileid 0 start
global mas
set mas(0) 1
for {set i 0} {!} {incr i} {
gets... (2 Replies)
here is a code which sends and receives sms through a serial port. the problem is that its givin segmentation fault. it first sets the file discriptor and the initialises the modem by using AT commands. there are two threads for reading and writing . rest the code is simple you'll get it. user has... (1 Reply)
Need programmer to work on 8-12 month project near Dallas, Texas or can telecommute to make changes to SCO File Pro 32 UNIX software that was converted to DOS.....Can't find anything as good as what we had in any other OS. Brent Davis brentd@texasspecialty.com (0 Replies)