![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NEC2 graphic post-processor 1.4 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-22-2008 09:10 PM |
| LPAR processor/virtual processor settings | guttew | AIX | 1 | 02-01-2007 01:52 PM |
| How to get Processor Id | atul.saxena | Shell Programming and Scripting | 1 | 04-06-2006 10:37 AM |
| CPU Processor ID | UXNI | AIX | 9 | 09-04-2005 09:13 AM |
| Processor | jwbrown | UNIX for Dummies Questions & Answers | 5 | 06-13-2001 09:28 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need help with a post-processor
So here is a snippet from an analysis of test runs conducted in a robot experiment in the form of a table:
----------------------------- | TN | TE | PA | PB | ----------------------------- | Y | N | - | B | | N | Y | A | B | TN = Is the target north? TE = Is the target east? PA = Is there a passage ahead? PB = Is there a passage behind? How would I go about in writing a BASH script that accepts from the standard input for example: Code:
echo "| Y | N | - | B |" | ./test And give the output "Target is north, passage behind" for that particular example? This script must take into condition all possible scenarios when conducting the test. Another example would be: Code:
echo "| N | Y | A | B |" | ./test |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|