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

Posts Tagged with Bash

How to Create Bash Function ?

First step: create a utilities.sh file to add all your bash functions in it. 2nd step: add your bash function/s like this. ## utilities.sh convertMP4toMP3(){ echo -n "Enter source mp4 file : " read sourceFile echo -n "Enter destination mp3 file : " read destFile avconv -i $sourceFile -vn -acodec libmp3lame -ac 2 -ab 160k -ar 48000 $destFile } I created a bash function to convert mp4 video file to mp3 audio file from command line.

Bash Shell Scripting Language - Documentation and Code Snippets

This is a bash shell scripting which can be found on Unix, Linux and Mac. You can install bash on the Linux subsystem on Windows too. The first line is #! /bin/bash because the bash program is in /bin/bash, you can know the path where the bash is by this command which bash. Print data or text on the screen You can use echo Hello, World! or echo "Hello, World".