Absolute and Relative Paths

I seem to be having trouble producing these two paths. I get the folder names with the text files in them, but i need to produce paths that just reveal all the text files within the two folders without being seperated. Anything would be helpful thanks.

Absolute Path:
ls -1 ~/UnixCourse/fileAsst/TweedleDee ~/UnixCourse/fileAsst/TweedleDum

Relative Path:
ls -1 ../fileAsst/TweedleDee ../fileAsst/TweedleDum

One very long way to do this is to write a script to grep out the directories for which you are searching (I'll just show you the absolute path example):

1
2
3
4
5
6
7
8
#!/bin/ksh

Dir1=~/UnixCourse/fileAsst/TweedleDee

Dir2=~/UnixCOurse/fileAsst/TweedleDum

ls -1 ${Dir1} ${Dir2} | grep -v ${Dir1} | grep -v ${Dir2}
Topic archived. No new replies allowed.