Reputation
780
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 17
Newest
 Enlightened
Impact
~87k people reached

Jul
3
revised How do I check if a file is a symbolic link to a directory?
Remove unnecessary notice re: removal of unnecessary use of `readlink`.
Jul
3
awarded  Enlightened
Jul
3
awarded  Nice Answer
May
30
comment How do I check if a file is a symbolic link to a directory?
@Lennart OP's example code uses [[, and I took that as the logical starting point. A discussion of the merits of [ vs [[ is out of scope for this answer (but available here).
Apr
21
awarded  Vox Populi
Apr
20
awarded  Suffrage
Nov
14
awarded  Yearling
Sep
30
awarded  Explainer
Jun
16
awarded  Constituent
Jun
9
awarded  Caucus
Nov
14
awarded  Yearling
Oct
21
revised How do I check if a file is a symbolic link to a directory?
Remove unnecessary use of readlink
Oct
21
answered How do I check if a file is a symbolic link to a directory?
Aug
24
answered Filtering the result of the find command, so that it returns only directories
Aug
12
awarded  Commentator
Aug
12
comment Bash script to rename files from a text file source
That suggests a problem with your input data; sed isn't going to just randomly ignore some filenames and not others.
Aug
9
comment Bash script to rename files from a text file source
What do you get if you don't do the process substitution? That is to say, just run sed -r 's/^\s*(.*)\s+([0-9\.]+)\s+([0-9A-Z]{8}\.dat)\s*$/mv -iv \3 "\2 \1"/' files without the sh <(...) part.
Aug
8
revised Bash script to rename files from a text file source
Remove thankyou text.
Aug
8
suggested approved edit on Bash script to rename files from a text file source
Aug
8
revised Bash script to rename files from a text file source
Add usage example.