I am trying to create a shell that asks the user to enter their name, and compare it to my own by saying we have the same name or saying my name and that they have a nice name too. Here is my script...
When I execute the script, I get...
Enter your name.
Adam
Part4: line 5: [name: command not found
My name is Adam; You have a nice name too
Any help would be greatly appreciated.
Last edited by Scott; 01-10-2010 at 05:00 PM..
Reason: Replaced QUOTE tags with CODE tags
I'm trying to write a simple script that takes all the .tar.gz files in a directory and verifies them by using the gzip -tv command:
for zip in *.tar.gz
do
gzip -tv $zip
if ; then #Check return code from tar
echo "File ${zip} verified OK."
exit... (4 Replies)
Hello All,
I have installed Cygwin on Windows XP and working with some Shell scripting work, I have needed to schedule my script using the cornetab and whatever commands such as "cron", "cron-config" are not working in my cygwin shell,
I re-installed the Cygwin but the same problem is with... (2 Replies)
i am having a weird error on mac os x running some shell scripts. i am a complete newbie at this and this question concerns 2 scripts. one of which a friend of mine wrote (videochecker.sh) a couple weeks ago and it's been running fine on another machine.
then last week i wrote capture.sh and it... (2 Replies)
Hi All,
Linux lxs3er06 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
Issue:
While executing shell scripts in bash shell, following error messages are thrown:
rm:command not found
On doing little investigation, I added '/bin' to $PATH and on doing echo... (9 Replies)
Hi all
I am relatively new to linux (specifically red hat). I have installed Fedora 13 on my machine and started playing with the terminal when i found a very strange behavior when typing a command that is not found:
the terminal does not prompt me back. In other words, i am logged as root (or... (4 Replies)
I downloaded and installed "Cygwin yesterday onto my PC running Windows XP. When I tried to type "vi" in Cygwin's window, I got the following message bash: vi: Command not found
What shud i do inorder to get into vi editor
Thanks (10 Replies)
In the bash below, if the answer is "y" then goto function remove. If the answer is "n" then goto the id variable line (where the date is inputted). However, I am getting command remove not found, but remove is a function not an command. I must have the syntax incorrect? Thank you :).
... (3 Replies)
Hello Experts,
I have been trying to send a test mail in our linux server with sendmail command.But I am getting command not found error message.
-->when I tried whether sendmail installed or not with the command
rpm -qa sendmail* I got the below,
sendmail-cf-8.14.4-8.el6.noarch... (26 Replies)
I am sharing a code snippet.
for (( i=0; i<=$(( $count -1 )); i++ ))
do
first=${barr2}
search=${barr1}
echo $first
echo "loop begins"
for (( j=0; j<=5000; j++ ))
do
if } == $search ]]; then
echo $j
break;
fi
done
second=${harr2}
echo $second (2 Replies)
Discussion started by: ngabrani
2 Replies
LEARN ABOUT CENTOS
tap::parser::yamlish::reader
TAP::Parser::YAMLish::Reader(3) User Contributed Perl Documentation TAP::Parser::YAMLish::Reader(3)NAME
TAP::Parser::YAMLish::Reader - Read YAMLish data from iterator
VERSION
Version 3.28
SYNOPSIS DESCRIPTION
Note that parts of this code were derived from YAML::Tiny with the permission of Adam Kennedy.
METHODS
Class Methods
"new"
The constructor "new" creates and returns an empty "TAP::Parser::YAMLish::Reader" object.
my $reader = TAP::Parser::YAMLish::Reader->new;
Instance Methods
"read"
my $got = $reader->read($iterator);
Read YAMLish from a TAP::Parser::Iterator and return the data structure it represents.
"get_raw"
my $source = $reader->get_source;
Return the raw YAMLish source from the most recent "read".
AUTHOR
Andy Armstrong, <andy@hexten.net>
Adam Kennedy wrote YAML::Tiny which provided the template and many of the YAML matching regular expressions for this module.
SEE ALSO
YAML::Tiny, YAML, YAML::Syck, Config::Tiny, CSS::Tiny, <http://use.perl.org/~Alias/journal/29427>
COPYRIGHT
Copyright 2007-2011 Andy Armstrong.
Portions copyright 2006-2008 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl v5.16.3 2013-05-02 TAP::Parser::YAMLish::Reader(3)