very very new to Linux as a whole and doing some relatively simple exercises in bash. I cannot for the life of me figure out how to take multiple outputs from the wildcard character (*) and copy them into separate lines.
For example, I have 4 home files in my directory, file1 file2 File1 File2.
I wanted to try to redirect f* into a new file called test1 so I wrote,
echo f* > $HOME/test1,
when I ran
cat $HOME/test1,
I get
file1 file2,
on the same line. Does anyone know how to separate the lines without using nano?