Pdftk: Difference between revisions
No edit summary |
No edit summary |
||
| Line 31: | Line 31: | ||
# then rename the whole batch to something more intelligent | # then rename the whole batch to something more intelligent | ||
rename 's/E-Statement_/2014_ifs_/' E-Statement* | rename 's/E-Statement_/2014_ifs_/' E-Statement* | ||
ll 2014_ifs_??.pdf | ll 2014_ifs_??.pdf | ||
# use pdftk to combine them | # use pdftk to combine them | ||
| Line 41: | Line 38: | ||
# and delete the monthly statement clutter | # and delete the monthly statement clutter | ||
rm 2014_ifs_??.pdf | rm 2014_ifs_??.pdf | ||
</source> | |||
You don't need to use extended globbing <ref>http://mywiki.wooledge.org/glob </ref>, but if you did, you'd be able to use patterns like | |||
<source lang="bash"> | |||
# turn on extended globbing | |||
shopt -s extglob | |||
# everything but the condensed pdf | |||
ll 2014_ifs_!(condensed).pdf | |||
# unset | # unset | ||
shopt -u extglob | shopt -u extglob | ||
</source> | |||
{{References}} | |||
[[Category:Tools]] | [[Category:Tools]] | ||