What is the correct syntax to limit the number of decimals to 1 or 0 in a bash script? Here is the partial code I have which works, but if I echo $meters, it has 4 or 5 decimals:
METERS=`echo "$FEET * 0.3048" | bc`
I read about scale and length in the bc man page, but I can't seem to get the... (2 Replies)
found a few ffmpeg posts and after a few unsuccessful attempts, I have found a solution :)
to encode an avi to to an nokia e71 recognized mp4 format:
ffmpeg -y -i inputFILE.avi -acodec aac -ab 72k -s 320x176 -aspect 16:9 -vcodec h264 -b 300k -qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop... (2 Replies)
Hi all,
I use ffmpeg to convert my movies to play them with my PSP.
I use the terminal version of ffmpeg so i put in the code:
]ffmpeg -i FILENAAM.avi -f psp -r 29.97 -b 512k -ar 24000 -ab 64k -s 320x240 M4V00001.MP4
FILENAAM is the part i replace with the title of the movie i want to see... (17 Replies)
Hi,
I have the following requirement.
There will be following text/line in a file (eg: search-build.txt)
PRODUCT_VERSION="V:01.002.007.Build1234"
I need to update the incremental build number (eg here 007) every time I give a build through script. I am able to search the string and get... (4 Replies)
I'm making an automated bash install script. When you install mysql-server using apt-get, there's a blue dialog screen where it wants you to chose your mysql root password.
Is there a way to pre-define the password in the apt-get command, or have it not chose a root password?
It's not a... (2 Replies)
This is the final first release of the dynamic menu generator for pekwm (WM).
#!/bin/bash
function param_val {
awk "/^${1}=/{gsub(/^${1}="'/,""); print; exit}' $2
}
echo "Dynamic {"
for CF in `ls -c1 /usr/share/applications/*.desktop`
do
name=$(param_val Name $CF)
... (3 Replies)
dear all,
i need your advice for convert bash shell to C programming
INDEX=/zpool1/NFS/INDEX/${1}
SCRIPT=/zpool1/NFS/script/${1}
LIST=SAMPLE
cd ${SCRIPT}
for i in `cat ${LIST}`
do
GETDATE=`echo ${i}|awk '{print substr($1,9,8)}'`
/usr/xpg4/bin/awk -F ":" '{close(f);f=$4}{print >>... (2 Replies)
I am trying to use bash to automate the scan of a specific directory using clamav. Having this in place is a network requirement. The below is an attempt to:
1. count the extensions (.txt, .jpeg) in a directory and write them to a virus-scan.log (section in bold)
2. scan each folder in the... (6 Replies)
I use plink.exe to automate remote commands that return data to Windows machines. This works well on newer servers running Red Hat since the commands were developed for bash and the designated user's login shell is bash. I need to also support older servers which are running Solaris 10 but the... (5 Replies)
Discussion started by: randman1
5 Replies
LEARN ABOUT DEBIAN
cfourcc
cfourcc(1) User Commands cfourcc(1)NAME
cfourcc - tool for changing FourCC in Microsoft RIFF AVI files
SYNOPSIS
cfourcc [-i] <file.avi>
cfourcc -u <CODE> <file.avi>
OPTIONS -h Show summary of options.
-d CODE
Sets FOURCC codec decription string.
-f Force changing FOURCC on unsupported file
-i Display FOURCC information (default).
-u CODE
Set FOURCC codec.
None.
DESCRIPTION
Program identifies the codec used in AVI files (*.avi) and allows the user to change the FourCC description code (like fourcc-changer in
Windows). Useful for people working with Microsoft AVI file. A Linux clone of AviC fourcc changer tool.
EXAMPLES
Note that you only need to change the -u codec field most of the time and not touch the -d description:
cfourcc -u DIVX -d DIVX file.avi
ENVIRONMENT
None.
FILES
None.
SEE ALSO ffmpeg(1)mplayer(1)AUTHORS
cfourcc was written by Mohammad Hafiz bin Ismail aka "mypapit" <info@mypapit.net>.
This manual page was written by Jarno Elonen <elonen@debian.org>, for the Debian project (but may be used by others). Updated by Jari Aalto
<jari.aalto@cante.net>. Released under license GNU GPL v2 or (at your option) any later version. For more information about license, visit
<http://www.gnu.org/copyleft/gpl.html>.
cfourcc 2012-04-02 cfourcc(1)