Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
3 Added syntax coloring
source | link

Bash

#
# some comments to fill some lines...
#
echo "Hello World, from line $LINENO!"
#
# some comments to fill some lines...
#
echo "Hello World, from line $LINENO!"

Output

Hello World, from line 4!

Bash

#
# some comments to fill some lines...
#
echo "Hello World, from line $LINENO!"

Output

Hello World, from line 4!

Bash

#
# some comments to fill some lines...
#
echo "Hello World, from line $LINENO!"

Output

Hello World, from line 4!
2 deleted 54 characters in body
source | link

BASHBash

$ cat -n hwfl.bash 
     1  #
     2  # some comments to fill some lines...
     3  #
     4  echo "Hello World, from line $LINENO!"
$ bash hwfl.bash 

Output

Hello World, from line 4!

BASH

$ cat -n hwfl.bash 
     1  #
     2  # some comments to fill some lines...
     3  #
     4  echo "Hello World, from line $LINENO!"
$ bash hwfl.bash 
Hello World, from line 4!

Bash

#
# some comments to fill some lines...
#
echo "Hello World, from line $LINENO!"

Output

Hello World, from line 4!
1
source | link

BASH

$ cat -n hwfl.bash 
     1  #
     2  # some comments to fill some lines...
     3  #
     4  echo "Hello World, from line $LINENO!"
$ bash hwfl.bash 
Hello World, from line 4!