Skip to content

Commit

Permalink
Use 'find' instead of 'ls' to create the list of all REMIND reporting…
Browse files Browse the repository at this point in the history
…s available in the results archive.

Explanation https://www.baeldung.com/linux/argument-list-too-long-error
  • Loading branch information
dklein-pik committed Jul 4, 2024
1 parent d7f064f commit 05361db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/output/single/rds_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ if(file.exists(runstatistics) & dir.exists(resultsarchive)) {
saveRDS(q,file=paste0(resultsarchive,"/",stats$id,".rds"))
cwd <- getwd()
setwd(resultsarchive)
system("ls 1*.rds > files")
system("find -type f -name '1*.rds' -printf '%f\n' | sort > files")
setwd(cwd)
}

0 comments on commit 05361db

Please sign in to comment.