Value In Brief – by Abanoub Hanna
All You Need To Know Explained In Brief

Posts Tagged with UNIX

View time taken of last command in Fish shell

Just use $CMD_DURATION to get the time taken running the last command. To make your prompt give you the elapsed time for every command you run in Terminal, add this function in your Fish config file ~/.config/fish/ function fish_prompt; echo "$CMD_DURATION "; end The prompt will be like that. I hope this helps you. You know someone will benefit from this, share it with him/her, a friend or colleage.

How to get filename without the extension in Fish script?

We can use string split like this (string split -r -m1 . $filename)[1]. I use this method in my Fish script function. function vidfps --description "vidfps <input.mp4>" ffmpeg -i $argv -filter:v fps=fps=24 (string split -r -m1 . $argv)[1]-24fps.mp4 end The above function is located in my ~/.config/fish/ file. So I can use it to convert a video to a 24 frames-per-second video using ffmpeg. the code (string split -r -m1 .

Fsck Exfat (fsck_exfat) Manual Page Apple Docs

I looked at Apple manual page online, and didn’t find the page. So I decided to add it here for reference when needed. FSCK_EXFAT(8) BSD System Manager's Manual FSCK_EXFAT(8) NAME fsck_exfat -- Verify and repair ExFAT file systems. SYNOPSIS fsck_exfat -q device ... fsck_exfat [-f] [-p] [-y | -n] [-g | -x] [-d] device ... DESCRIPTION The fsck_exfat utility verifies and repairs ExFAT file systems.