15
submitted 1 day ago by Jack_Burton@lemmy.ca to c/linux@lemmy.ml

Before I fully make the switch to Linux I'm looking for options to replace an old Windows program called SCRU. You set a folder to watch, and an output folder and it automatically copies specified extensions or extracts rar into the output folder.

I'm trying to figure out if there's a way to do this in terminal and haven't dug into scripts yet, just want to know of it's possible.

top 15 comments
sorted by: hot top controversial new old
[-] winety@lemmy.zip 6 points 1 day ago
[-] Jack_Burton@lemmy.ca 1 points 1 day ago

Interesting, i saw that earlier and I'll look into it some more. I've never done a bash script so I was hesitant. Thanks

[-] nocteb@feddit.org 1 points 1 day ago

You can throw stuff like that into perplexity.ai as a starting point (it's free):

https://www.perplexity.ai/search/before-i-fully-make-the-switch-OTEQ6b5xTIiOL1J5avEKyQ#0

You can then continue to ask about stuff you want to understand. It's a great learning tool.

[-] Jack_Burton@lemmy.ca 1 points 16 hours ago

Not an ai guy but appreciate you taking the time!

[-] winety@lemmy.zip 2 points 1 day ago

It shouldn't be that hard. Use Shellcheck to check for mistakes. Good luck!

[-] Jack_Burton@lemmy.ca 1 points 1 day ago

Appreciate it!

[-] rodsthencones@startrek.website 4 points 1 day ago

Sounds like a nifty program. Is this something you use a lot? What's the use case? While I know extracting files is not difficult in Linux, there are a lot of different compressed file types. Most have some Linux alternative. Linux is different from windows, in that most things that require a separate program to be installed, are usually default operations. Most file managers offer to compress or extract in the right click menu. Try a live distro for a few days. It will blow your mind.

[-] Jack_Burton@lemmy.ca 1 points 1 day ago

Server. It's great for automation. SCRU is great because you can set the files by extension and will also auto extract rars. Set it and forget it.

[-] rodsthencones@startrek.website 4 points 1 day ago

So that would be just a script in Linux. Bash, the shell for the command line, allows for scripting. Its like a simple program that you can set to run at times. Might take a few tries to get it right, but a little reading and a few tries anyone could get something like that working.

[-] Jack_Burton@lemmy.ca 2 points 1 day ago* (last edited 1 day ago)

Holy shit, so you can pretty much do anything? Like, if I wanted to clone a drive and have it monitored I could learn bash and write a script to, for example, at 2am every day copy all files created yesterday from here to here?

[-] rodsthencones@startrek.website 3 points 1 day ago* (last edited 1 day ago)

Sure, that is really the reason for scripting. They are called cron jobs, because they run on a schedule. Its a command called crontab. Unix is all about doing things automatically. Takes a bit of time to set up, but then it does what you want, when you want it. Your going to love it once you use it. Edit: spelling

[-] meekah@lemmy.world 3 points 1 day ago

I mean, technically they're called cron jobs, although the name cron does come from the Greek word chronos.

[-] Jack_Burton@lemmy.ca 3 points 1 day ago

That's awesome thanks. Sounds like a not-too-hard problem I can start learning with!

[-] whimsy@lemmy.zip 2 points 1 day ago

syncthing might also be slightly relevant?

[-] Jack_Burton@lemmy.ca 2 points 1 day ago

I'll add it to look into. Thanks!

this post was submitted on 11 Aug 2025
15 points (100.0% liked)

Linux

57255 readers
1081 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS