how to get file path without the filename itself
how to get file path without the filename itself im trying to find my .csv files then cd into their directory: find Documents/notes -type f -name "*.csv" | head -1 | xsel -b this copies the first file dir into my clipboard and i’d like to then run: cd $(xsel -b) but ofcourse I can’t …