4 comments
  1. pvanb said:

    Works like a charm, nice

  2. I think the first line can be
    for f in *.shp; do
    which will work even if the user has aliased ls to something odd.

  3. In addition to Ian’s comment, rather than having two extensions (“prefix.shp.csv”), you can rename it to have only one (“prefix.csv”):

    replace: $f.csv
    with: `basename $f .shp`.csv

    • underdark said:

      Thanks for the tips! I’m new to Shell scripting.

Follow

Get every new post delivered to your Inbox.

Join 3,856 other followers

%d bloggers like this: