381 reputation
222
bio website
location
age
visits member for 1 year, 7 months
seen Jul 20 at 19:50

Jul
10
answered How to extract bookmarks from a pdf file
Jul
2
awarded  Curious
Jun
29
answered Discovering metadata about a PDF
Jun
24
comment Concatenate in a PDF the first page of several odt files alphabetically
One downside to pdftk is that it doesn't preserve bookmarks and metadata. You can create a dump of all metadata but importing it has never worked properly for me. If preserving this data is important to you, you can always use an alternative like sejda or cpdf.
Jun
18
answered Openbox 3 theme: How to set color for menu background and scroll bars
Jun
16
awarded  Constituent
Jun
9
awarded  Caucus
Jun
1
awarded  Critic
May
31
awarded  Citizen Patrol
May
27
answered Copy only Specific text of a file to another
May
25
awarded  Popular Question
May
10
accepted How do I capture the exit code / handle errors correctly when using process substitution?
May
10
comment How do I capture the exit code / handle errors correctly when using process substitution?
Thank you for this answer. The methods you described work fine but I must admit that they are slightly more complicated than I had anticipated. In my case I settled for a loop before the one shown in the question that iterates through all arguments and prints an error if one of them isn't a file or folder. While this doesn't handle other types of errors that could occur in the substituted process it's good enough for this specific case. If I ever need a more sophisticated error handling method in situations like this I'll certainly come back to your answer.
May
8
awarded  Informed
May
8
asked How do I capture the exit code / handle errors correctly when using process substitution?
Apr
30
awarded  Nice Question
Apr
30
awarded  Popular Question
Apr
29
awarded  Yearling
Apr
29
revised How can I print the longest number in a string?
typo
Apr
29
comment How can I print the longest number in a string?
@Floris No negative numbers in my specific use case as it's an ID. Dashes and other special characters could be part of the string but they wouldn't count towards the length of the number sequence.