Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

^E2(^A500: not found

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Any ideas what this might mean?

It comes from a part like this:

a=`wc -m /txt.txt | awk '{print$1}'`
if [ "$a" > "500" ]
then
(something)

What does ^E2(^A500 mena?
 
Where do you get this error, what is your OS, what shell are you using.

can you post the full script --
| Mike Nixon
| Unix Admin
| ----------------------------
 
Posting the full script would be a bit too much....

It seems I have messed up vi somehow...or perhaps typed some invisible characters - I don't know.

This is SunOS5.6

If I comment out almost everything, with #'s, I now get

^E3^\\357\377\377\261: not found

which makes me even more confused...
 
NEVER MIND !!! .........

Sorry,

It was the shell complaining that it couldn't find some characters.

I had forgotten to hash out a comment after a function so I had something like this;

Function() Description

changing it to

Function() # Description

solved it. Many thanks for your time and sorry for a silly mistake.

By the way, is it possible to call a function from within another function?
 
yes

function a
{
function b
{
ls -al
}
ls
b
}


--
| Mike Nixon
| Unix Admin
|
----------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top