This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Bash script "no such file or directory"

I am trying to run a bash script using the sed replace command, and it keeps outputting that there is "No such file or directory" for every command.

I have set data path as current directory: DATA_PATH= "."

And still the script is not outputting the files. When I try to run a single command outside of the script however, it does work!

Anyone have any insight?

line command script bash

I am trying to run a bash script using the sed replace command

show us the content of this script and how it was invoked.

I have set data path as current directory: DATA_PATH= "."

nobody knows what is DATA_PATH unless we see the content of the script.

This is how the script was initiated:

> #!/bin/bash

>$DATA_PATH="."

> $sed '1 s/A/G/' input.file > output.file

1 answer

remove those '$' a the beginning of the lines....

Wow, thank you I am very new to command line and writing bash scripts!!!

Log in to answer this question.