Hello everybody.
How can i get "ls" from shell scripting?
I tried this but it doesn't work, i saved it in a file:

#!/bin/bash
$ls

I know the second line is not correct, so what should i type?
Getting "ls" is just an example, i infact want to import this line to the shell:

sqlite3 test.db

to create a database.

A shell script is simply a sequence of commands issued to the shell in bulk for convenience. You place commands into a shell script exactly as you would type them on the command line. For example, to execute ls you do:

#!/bin/bash

ls

Simple as that.

Yes,thank you @L7Sqr.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.