Skip to content

Commit

Permalink
add more cases to extarrange script....solving iiitl#7
Browse files Browse the repository at this point in the history
  • Loading branch information
aryamagarwal authored Mar 15, 2024
1 parent b2363aa commit b354de6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/extarrange
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ require egrep

declare -A special_cases=(
['^*.(tar.*|tbz)$']='tar'
['^*.(rar|rev|r00|r01)$']='rar'
['^*.(doc.*|odt|pages|rtf|wpd|wps)$']='doc'
['^*.(img|jpg|png)$']='img'
['^*.(mp3|wav)$']='mp3'
# TODO: Add your own pattern here for similar file types appropriately
# Refer https://regex101.com/ & https://github.com/ziishaned/learn-regex/ for explaination and writing patterns
# These (regex) are same as ones used in sed command
Expand Down

0 comments on commit b354de6

Please sign in to comment.