Hi,
for example in this script I want both of these files to be listed with my "ls" command but it won't work, is there a way to do it like this I've tried &, ||, |, etc.
This seems so simple but I can't figure it out.
I thought with "&&" it would work but I was wrong!
I think I didn't make myself perfectly clear.
I start again with a better example
#!/usr/bash
touch report.txt booby.doc report.doc
ls txt report
You see if I use you command(I've tried this before) I will have 3 outputs when I only want 2.
Because there should only be 2 outputs -
But report.txt gets printed out twice I need it to only print out once.
I still didn't make it as clear as I should of:
How about this!
#!/usr/bash
touch report.txt booby.doc report.doc run.txt report.cpp
ls txt report
See this will ls 4 report files when in fact there is only three! I don't want any files duplicated!
I need this for my dir with many files not just these listed - if that helps.