Help Needed with Shell Script

I need help writing a Unix shell script that does the following:

1) Searches all of the files in a given directory that have the .acl file extension

2) Redirects the output of the search to a column in a .xls or .cvs file
(Note: The column name in the spreadsheet file needs to be named after the .acl file that the output is coming from)

This is almost as easy as

(
  printf "%s\t" *.acl
  echo
  paste *.acl ) | sed 's/\t/,/g;s/$/\r/' > file.csv
1 Like

Let's remove that extra closing `)'

1 Like