Skip to content
Discussion options

You must be logged in to vote

I ported the above script back into ShellCommands, and now it works, I think:

gnome-terminal -- bash -c "cd {{folder_path:absolute}};  if [ {{file_name}} != 2* ] && grep -qE '(Medium: Book|Medium: Audiobook|Medium: Podcast|Medium: eBook|Medium: GraphicNovel)' {{file_name}}; then mv {{file_name}} /home/Documents/Obsidian/Books\ and\ Movies/Book\ Log/{{date:YYYY}}/{{date:MM}}/{{date:YYYY-MM-DD}}\ {{file_name}}; elif [ {{file_name}} != 2* ] && grep -qE '(Medium: Movie|Medium: TV|Medium: Game)' {{file_name}}; then mv {{file_name}} /home/Documents/Obsidian/Books\ and\ Movies/Movies\ and\ Games/{{date:YYYY}}/{{date:MM}}/{{date:YYYY-MM-DD}}\ {{file_name}}; fi; if [ {{file_name}} = 2* ] && grep -…

Replies: 5 comments 8 replies

Comment options

You must be logged in to vote
1 reply
@Taitava
Comment options

Comment options

You must be logged in to vote
2 replies
@ReaderGuy42
Comment options

@Taitava
Comment options

Comment options

You must be logged in to vote
1 reply
@Taitava
Comment options

Comment options

You must be logged in to vote
1 reply
@Taitava
Comment options

Answer selected by ReaderGuy42
Comment options

You must be logged in to vote
3 replies
@Taitava
Comment options

@ReaderGuy42
Comment options

@Taitava
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants