03-06-2012
Thanks, Corona. As I said, I'm relatively new to Unix, and I'm still learning what can and can't be done, and the best way to do things. I'm still reading up on awk, and learning how to use it, but as a programming language in itself, it's a lot to take in.
I'm trying your solution now, and I'll reply the status when it's done. The script takes a bit of time to run.
---------- Post updated at 02:30 PM ---------- Previous update was at 12:57 PM ----------
Thanks again, Corona. I reworked my script using just awk, and removing the while loop, and it worked as I'd hoped.
I appreciate the help.
This User Gave Thanks to compguy74 For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
i'm new to shell scripting, so i'm not sure how to work this. Is it possible to read in the contents of a variable and add it to a command? for example:
------------------------
#!/bin/sh
set example = -dfr
rm ${example}
------------------------
when i run the script, i want... (2 Replies)
Discussion started by: gammarays
2 Replies
2. UNIX for Dummies Questions & Answers
I want to save the contents of a variable to a file. How can that be achieved?
I have tried with:
echo $varname > textfile.txt
but for some reason it does not print anything. (1 Reply)
Discussion started by: carl_vieyra
1 Replies
3. Shell Programming and Scripting
Hi ,
I have
#echo $var1
#hdisk2 hdisk3 hdisk0 hdisk2
Now I need to remove duplicate entries from this . ie. after sorting it should only have
hdisk2 hdisk3 hdisk0 .
I can have these values in a array as well . I understand we can use sort -u to remove the duplicates in a... (2 Replies)
Discussion started by: praveenbvarrier
2 Replies
4. Shell Programming and Scripting
There is a file named file.txt whose contents are:
+-----------------------------------+-----------+
| Variable_name | Value |
+-----------------------------------+-----------+
| Aborted_clients | 0 |
| Aborted_connects | 25683... (6 Replies)
Discussion started by: proactiveaditya
6 Replies
5. Shell Programming and Scripting
Hello All,
I've written a script to collect all audit logs files; now i want to see only the files from it which contains certain x tablenames. I've stored all the tablenames in a log file and using it through variable in a script (ex:below)
$ more tablenames.log (this is just a samle... (2 Replies)
Discussion started by: suri.tyson
2 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I have to read the contents of each field of a file creating user accounts.
The file will be of format :
... (6 Replies)
Discussion started by: dude_me5
6 Replies
7. Shell Programming and Scripting
A question to the awk pundits:
I was thinking about composing a regex in a variable and then use its contents like $0 ~ var instead of $0 ~ /r/. Sort of indirection. Did someone run into this? Is it possible at all? (3 Replies)
Discussion started by: RudiC
3 Replies
8. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I was trying a shell script. I was unable to store file contents to a variable in the script. I have tried the below but unable to do it.
Input = `cat /path/op.diary`
Input = $(<op.diary)
I am using ksh shell. I want to store the 'op.diary' file contents to the variable 'Input'... (12 Replies)
Discussion started by: am24
12 Replies
10. Shell Programming and Scripting
i want to reduce the OPTIONS variable which is a list of email addresses to just the unique entries. The following works, but, i would like to accomplish it without using the temporary file (dest.txt)
$echo $OPTIONS
a b c A B D ... (5 Replies)
Discussion started by: jgt
5 Replies
gvrng(1) gvrng(1)
NAME
gvrng - An interactive, introductory programming language.
SYNTAX
gvrng [world file | program file]
DESCRIPTION
Guido van Robot is a project developed by advanced high school students for use by their peers as a learning tool and precursor to the fur-
ther study of programming with Python. It is a minimalistic programming language providing just enough syntax to help students learn the
concepts of sequencing, conditional branching, looping and procedural abstraction. It's biggest strength is that it permits this learning
in an environment that combines the thrill of problem-solving with instant visual feedback. In short, it is an interactive, introductory
programming language that is excellent for learning the basic concepts of programming, applicable in any high-level language. Best of all,
it's a whole lot of fun, too!
At this point, you are probably asking yourself, "What is GvRng, specifically?" The gist of it is that it is a robot represented by a tri-
angle on the screen that moves around in a world made up of streets and avenues, walls and "beepers", which Guido can collect or set. His
actions are completely guided by a program written by the user.
FILES
/usr/bin/gvrng
/usr/lib/gvrng
/usr/share/doc/gvrng
AUTHORS
Stas Zytkiewicz - stasz@linux.isbeter.nl
Waseem Daher - wdaher@mit.edu
Steve Howell - showell@zipcon.net
SEE ALSO
http://gvrng.sourceforge.net
Stas Zytkiewicz 1.0 09/13/2004 gvrng(1)