Search code examples
linuxbashpingnslookup

Need help for simle bash script


Can someone help me with the syntax for a simple bash script that trying to write:

echo ping -c 1
echo nslookup

Basically I want to receive output of one line from the ping and the nslookup information for a domain that I'm checking. Unfortunately I'm unable to get this correctly.

P.s. this is basically the first thing that I'm trying to accomplish in bash.

Thank you in advance!


Solution

  • hi after writing and saving script and giving permission to the script just go the folder and ./

    of else you just can use sh