Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-30-2012
pandeesh's Avatar
Registered User
 
Join Date: Jul 2011
Posts: 311
Thanks: 75
Thanked 12 Times in 12 Posts
quine in bash script

Hi,
Is it possible to write a quine program in bash shell script?

Thanks
Sponsored Links
    #2  
Old 06-30-2012
spacebar's Avatar
Registered User
 
Join Date: Oct 2009
Location: spaceBAR Central
Posts: 294
Thanks: 0
Thanked 58 Times in 58 Posts
Not really for a shell script, but here is an old one:

Code:
z=\' a='z=\\$z a=$z$a$z\; eval echo \$a'; eval echo $a


Also, Check out the info here:
Quine Program
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bash Script: modify bash LibRid Shell Programming and Scripting 9 10-25-2010 06:17 PM
Bash script: issue changing directories in script Breakology Shell Programming and Scripting 5 05-26-2009 08:47 AM
how to make your bash script run on a machine with csh and bash npatwardhan Shell Programming and Scripting 3 11-19-2008 03:17 AM
passing variable from bash to perl from bash script arsidh Shell Programming and Scripting 10 06-04-2008 12:25 PM
Why generate "ash and bash" different output for same bash script? s. murat Shell Programming and Scripting 0 05-26-2008 07:19 AM



All times are GMT -4. The time now is 02:08 PM.