I have a files multiple file path for backup purpose ,now i want to filter it based on ".csv " fromat. I have tried this.
filesall=(/home/abc/allfiles/*)
files=$((${filesall[@]}|grep -F ".csv"))
files=$(${filesall[@]}|grep -oe "*.csv")
but unable to extract .csv files from $filesall . I know i can achieve it like this
files=(/home/abc/allfiles/*.csv)
any suggestion ,how can i get all .csv files from filesall.Thanks.