give shard number by argv. file_name can be relative.