fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

for every ffmpeg option, there exists a matching small script written by some frustrated programmer who can't remember the arguments, so they wrote a script to remember it for them

@foone I did this with tar lmao

ctar, xtar, and ttar, which create, extract, and list contents of, gzipped tarballs.

They're in my bashrc as:
alias ctar=tar -czvf
alias xtar=tar -xzvf
alias ttar=tar -tzvf

@dragonarchitect @foone
c create
x extract
t targets

v verbose
z comprezzed (zlib)

f file (requires an argument)

the order doesn't really matter

@mazunki @foone ☝️ Except for the -f option. That one has to go last so that you can specify the output file name, if you are concatenating all of the options together, that is. If you're specifying them individually as -c -v -z -f then order doesn't matter since the input file name goes with -f.

@dragonarchitect @foone the trick is that the file must come directly after the f because it's its value!

@mazunki @foone Exactly! So by concatenating them with f as the last opt in the alias, I can type "ctar <output filename> <input file(s)>" and save keystrokes and sanity! 😁

@dragonarchitect @foone i often just `tar cf thing.tar *`, verbose is too verbose and compressing is unnecessary. personally i find the wrappers to be more cumbersome here