0

Simple task probably buy I can not seem to find the command on http://faculty.plattsburgh.edu/jan.plaza/computing/help/commands.html

Basically I have a string of text that I know and have set in a variable on my bash file.

I then need to save this text as a file called Foo.conf in desired directory.

Here is what I have so far:

#!/bin/bash
stringForFile='port=6000 Username=USER Password=PASSWORD'
mkdir '~/.Foo'
# need to save file as Foo.conf to .Foo directory 

many thanks in advance

1 Answer 1

1

Why not use echo $stringForFile > ~/.Foo/Foo.conf after mkdir command?

Sign up to request clarification or add additional context in comments.

1 Comment

No problem. It happens sometime ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.