![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl XML:Parser help | vincaStar | Shell Programming and Scripting | 0 | 03-31-2008 01:01 AM |
| learning how to script | llsmr777 | UNIX for Dummies Questions & Answers | 11 | 06-28-2007 01:01 PM |
| learning how to use shell script | bebop1111116 | Shell Programming and Scripting | 3 | 09-18-2006 11:18 AM |
| Learning to script...want a project to work on (making a small MUD) | learningtoscrip | UNIX for Dummies Questions & Answers | 2 | 10-24-2001 01:15 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Script Language Parser for Learning
I'm new to the UNIX world and have to learn scripting for my job. Presented with multiple scripts to learn (and then have to maintain in the future) is there a utility or process to input a script in it's native form and output what each line would look like fully parsed (i.e.: all variable names substituted with their values) WITHOUT executing the script. This way, I can look at the source code script and the end-result post-parsed output and learn by compaing the two.
Any help would be appreciated. Thanks. |
|
||||
|
You mean shell scripts, specifically? Look at sh -n -v -x or some subset of those switches. With -n it won't attempt to figure out the values of variables, either, though. In your typical nontrivial shell script, variable values are assigned highly dynamically so you really in practice do need to execute a script in order to see what's going on in the variables.
|
|
||||
|
Quote:
Sorry if these are simplistic questions... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|