TransWikia.com

script file command not found

Ask Ubuntu Asked by mohsen_m on November 6, 2021

I have a simple script file first.sh as shown below:

#!/bin/bash
echo "hello";
a = "test";
echo "$a"

when I execute it, it occurs an error as written below:

./first.sh: line 3: a: command not found

One Answer

Remove spaces in a = "test"; to be a="test";

Answered by Pilot6 on November 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP