04-22-2004
Zeta_Acosta, I answered this question in
this post. You will continue to have problems until you follow my advice.
Bart, to reproduce this error you must do two things. If you use our quote function on the first post in this thread, you will see the white space characters that get deleted since Zeta_Acosta did not use code tags. Notice that the line "EOD_USAGE" has some leading white space. So type some spaces or tabs in front of the capital E. And switch to the old bourne shell which cannot tolerate this situation. Now the script will fail for you too.
Zeta_Acosta, one more time, all you need to do is make the capital E be the very first character on the line. No leading spaces or tabs. No trailing spaces or tabs. Nothing at all on the line except EOD_USAGE. Give it a try.
And if you will not try this, do not open a third thread to post the same question again. Instead, post the question again in one of your pre-existing threads. That will save some time.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm getting an error - symbol referencing errors. No output written to, etc
Can anybody tell me why this is? (2 Replies)
Discussion started by: Dan Rooney
2 Replies
2. Solaris
Both of these messages are filling up the /var/adm/messages files on these two Sun boxes, goober and gomer. The print server is called gold.
Jul 31 03:15:40 gold bsd-gw: request to ma28084.Solaris (unknown printer) from goober
Jul 31 03:16:39 gold bsd-gw: request to ma28084.Solaris (unknown... (1 Reply)
Discussion started by: antalexi
1 Replies
3. UNIX for Advanced & Expert Users
I get this error message as soon as i log in
-bash: /usr/local/software/.../vni/CTT6.0/ctt/bin/lopt64.sh: No such file or directory
I looked into the etc/profile but there are no lines sourcing this file.
And there is no lopt64.sh in the directory vni/.../bin
I couldn't fogure out what... (4 Replies)
Discussion started by: dsmv
4 Replies
4. UNIX for Dummies Questions & Answers
Question for unix programmers - what function I need to used to get the exact error message when the library failed to load?
Thanks (1 Reply)
Discussion started by: tttttt
1 Replies
5. Shell Programming and Scripting
I am new to scripting.
I am using the following script . BART.dat contains the string 'Y' .
#!/bin/ksh
cd /work/TCI/data_out
file=`cat BART.dat`
echo "$file"
if ; then
echo "true"
fi
When i am executing the above script i am getting the following error
./s.ksh: : not found
... (2 Replies)
Discussion started by: ammu
2 Replies
6. UNIX for Dummies Questions & Answers
I keep getting an error message in a script im writing, this line is allways pointed out.
if
and this is the message i keep getting.
line 32: [: 8: unary operator expected
Whats wrong with it?
Please Help. (5 Replies)
Discussion started by: chapmana
5 Replies
7. UNIX for Dummies Questions & Answers
Hi I found the following error message in my logs:
warning: /etc/hosts.deny, line 6: can't verify hostname: getaddrinfo(localhost) didn't return ::ffff:222.255.28.33
What is the error message trying to indicate? That there is a problem with line 6 (2 Replies)
Discussion started by: mojoman
2 Replies
8. UNIX for Dummies Questions & Answers
I am getting a error message when I try to assign this? Can someone help I am new to unix?
$ First-name=james
ksh:First-Name=james not found (1 Reply)
Discussion started by: vthokiefan
1 Replies
9. Shell Programming and Scripting
#!/usr/bin/perl
$FL="ch.txt";
$CFL="mytext.txt";
print "This script will rename textfiles.";
mv $FL $CFL;
print "Done.";
perl file.pl
Error:
Can't locate object method "mv" via package "ch.txt" (perhaps you forgot to load "ch.txt"?) at file.pl line 7. (5 Replies)
Discussion started by: cola
5 Replies
10. Emergency UNIX and Linux Support
hi im new for unix, when i try to rename the file im getting error
$ mv -9file.jpg 9file.jpg
error is
mv: invalid option --"9"
Try 'mv --help' for more information. (10 Replies)
Discussion started by: gwgreen1
10 Replies
LEARN ABOUT OSX
text::tabs
Text::Tabs(3pm) Perl Programmers Reference Guide Text::Tabs(3pm)
NAME
Text::Tabs -- expand and unexpand tabs per the unix expand(1) and unexpand(1)
SYNOPSIS
use Text::Tabs;
$tabstop = 4; # default = 8
@lines_without_tabs = expand(@lines_with_tabs);
@lines_with_tabs = unexpand(@lines_without_tabs);
DESCRIPTION
Text::Tabs does about what the unix utilities expand(1) and unexpand(1) do. Given a line with tabs in it, expand will replace the tabs
with the appropriate number of spaces. Given a line with or without tabs in it, unexpand will add tabs when it can save bytes by doing so
(just like "unexpand -a"). Invisible compression with plain ASCII!
EXAMPLE
#!perl
# unexpand -a
use Text::Tabs;
while (<>) {
print unexpand $_;
}
Instead of the "expand" comand, use:
perl -MText::Tabs -n -e 'print expand $_'
Instead of the "unexpand -a" command, use:
perl -MText::Tabs -n -e 'print unexpand $_'
LICENSE
Copyright (C) 1996-2002,2005,2006 David Muir Sharnoff. Copyright (C) 2005 Aristotle Pagaltzis This module may be modified, used, copied,
and redistributed at your own risk. Publicly redistributed modified versions must use a different name.
perl v5.16.2 2012-10-25 Text::Tabs(3pm)