Bash List Of Ignore Patterns Link to heading
# Define ignore patterns in an array
ignore=(
'README.md'
'todo.md'
'books.md'
'movies.md'
'done.md'
)
# Join patterns with '|' separator
ignore_pattern=$(
IFS="|"
echo "${ignore[*]}"
)
Celso Benedetti
# Define ignore patterns in an array
ignore=(
'README.md'
'todo.md'
'books.md'
'movies.md'
'done.md'
)
# Join patterns with '|' separator
ignore_pattern=$(
IFS="|"
echo "${ignore[*]}"
)