Hello
I have a list of a whole bunch of c files, and their directories
for ex.
C/program/test.cpp
C/program/test1.h
C/personal/math.h
C/personal/iterate.cpp
Now I would like to use ${var%/*} to remove the names of the files and the last /, but i dont know how. I need to do this, so I can use sort and uniq, which would result in
C/program
C/personal
as being the directories that contain cpp files
Thanks



LinkBack URL
About LinkBacks


