What is the meaning of "tab" in script ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting What is the meaning of "tab" in script ?
# 1  
Old 07-09-2006
What is the meaning of "tab" in script ?

Hi,
GOD bless you every body

I have some script to compile a COBOL program - listed bellow -
I have many questions about the syntax of this script:

1- There is many "tab" in the script, what does it means?
Note: the tab is invisible, so I have colored it into red.

2- The "rm" command is executed only in case of successful compilation,
How does it happen according to the syntax?

3- There is some words, which written as a label name such as "build:" ,
"build_static:", "$(Prog):"
What does it mean?

The script :
---------------------------------------------------------------------
COB=cob

LIBDIR=lib

build: $(COBS)
$(COB) $(COBFLAGS) $(COBS) -U $(LDPATHFLAG)$(LIBHOME) (COBSQLINTF) $(COBOL_PROLDLIBS) -C ECHOALL

build_static: $(COBS)
tab $(COB) $(COBFLAGS) $(COBS) -U $(LDPATHFLAG)$(LIBHOME) $(COBSQLINTF) $
(COBOL_STATICPROLDLIBS) -C ECHOALL

$(Prog):
tab $(PROCOB) $(PCCFLAGS) DBMS=V7 MODE=ORACLE unsafe_null=yes iname=$(Prog).pco >$(Prog).err 2>&1
tab $(MAKE) -f $(MAKEFILE) build COBS=$(Prog).cob >> $(Prog).err 2>&1
tab rm $(Prog).err
# These macro definitions fill in some details or override some defaults
MAKEFILE=/export/home0/appl/cslib/com-int.mk
PCCPLSFLAGS=sqlcheck=full userid=$(USERID) picx=varchar2

------------------------------------


I appreciate your help
Thank

Last edited by so_friendly; 07-09-2006 at 04:11 AM..
# 2  
Old 07-09-2006
Quote:
Originally Posted by so_friendly
Hi,
GOD bless you every body

I have some script to compile a COBOL program - listed bellow -
I have many questions about the syntax of this script:

1- There is many "tab" in the script, what does it means?
Note: the tab is invisible, so I have colored it into red.


2- The "rm" command is executed only in case of successful compilation,
How does it happen according to the syntax?


3- There is some words, which written as a label name such as "build:" ,
"build_static:", "$(Prog):"
What does it mean?
1-It's part of makefile syntax. It marks the start of a command


2 -rm - deletes intermediate files (not used except by make )created when the compile

3 -Those are labels. When you say make -f makefile.mk progamname
$PROG becomes programename
# 3  
Old 07-09-2006
# 4  
Old 07-10-2006
Thanks alot

A great Thanks to jim mcnamara and Hitori
Your reply is helping me.
Now I understand
Thanks again
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

2. UNIX for Dummies Questions & Answers

What is the meaning of "-s" option in "if" statement?

Hi Guys, I'm sorry but I can't find answer for this, what is the meaning of -s option in "if" statement on unix scipting. Please see sample below: opath=/home/output for i in N1 N2 N3 N4 do echo $i if then grep $i $opath/N5_CRAI > $opath/N5_$i.crai chmod 777 $opath/N5_$i.crai ... (7 Replies)
Discussion started by: rymnd_12345
7 Replies

3. UNIX for Dummies Questions & Answers

Variable "##*", "% *" meaning

Hi, What means "##*", "% *" in a variable?? I have this in the script that i'm reading: ... read line echo $line echo ${line#* } echo ${line##* } echo ${line% * } ... The first print: DN: RCROOT ONRM_ROOT_MO SNW ONRM_ROOT_MO BSC BSCCC2 BTS ALTOHATILLONOR The second print:... (2 Replies)
Discussion started by: darocham
2 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

Meaning of "b" modifier in "sort" command

I need to sort the following file by the rhdiskpower devices in the last column: Total_MB Free_MB OS_MB Name Failgroup Library Label UDID Product Redund Path 1024 851 1024 OCRVOT1_0000 OCRVOT1_0000 System UNKNOWN ... (3 Replies)
Discussion started by: wjssj
3 Replies

6. UNIX for Dummies Questions & Answers

the meaning of "!:*" in "alias foo 'command\!:*' filename"

Hi: How can I remove my own post? Thanks. (2 Replies)
Discussion started by: phil518
2 Replies

7. Shell Programming and Scripting

Meaning of "> /dev/null 2>&1"

Hi, I am new into UNIX shell scripting and I am wondering what is the meaning of the below text which appears at the end of each line in the ".sh" file: > /dev/null 2>&1 For example, the line below: sh $HOME/stats/Rep777/Act_777.sh omc omc > /dev/null 2>&1 I know for sure what "sh... (10 Replies)
Discussion started by: salanalani
10 Replies

8. UNIX for Dummies Questions & Answers

Meaning of $var->{"@$row[0]"}=" "; ???

while (my $row = $sth->fetchrow_arrayref) { $var->{"@$row"}=" "; } Can anyone help me understanding above mentioned. i) As per my knowledge $row is taking ARRAY Refernce from the database ii) @$row is containing the value of 0th index of the array, testted the same. but I am not able... (0 Replies)
Discussion started by: jaigs_27
0 Replies

9. Shell Programming and Scripting

simple script to find the number of "tab"s...but,...

------------------------------ $x=" hi"; $tabspace=0; while ($x =~ /\t/g ) { $tabspace++; } print $tabspace; --------------------------------- 1.)when i tried it without "g" ($x = ~/\t/ )... when i run the script it utilizes around 95% cpu and system hangs and i did "End process"... (0 Replies)
Discussion started by: sekar sundaram
0 Replies
Login or Register to Ask a Question