Hi guys/gals i have a quick question. I am trying to read from a file and add the values up but the problem is the values are not integers their floats so i tried to used bc but failed epicly lol. Any tips would be great. Thanks
this is the code i have so far :
Last edited by Scott; 12-07-2010 at 05:34 PM..
Reason: Please use code tags
Hi,
I have a list of values from associative array from 0,..till 1.0000.
I tried various sort options; sort -g, sort -nr but it still couldnt work. In other words, the numbers are not sorted accordingly.
Please help.
Thanks. (1 Reply)
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)
Hello everybody,
I would like to understand why the printf function is returning me an octal value with this command :
printf %4.4d 0010 returns 0008
printf %4.4d 10 returns 0010
Thanks for help. (3 Replies)
Hi I want to incremental add hex decimal number to a particula field in file
eg: addr =123 dept1=0
addr = 345 dept2 =1
addr2 = 124 dept3 =2
.
.
.
.
.
.
addr3 =567 dept15 =f
Is there any command which add... (8 Replies)
a=10.00
pattern=-11.00
b=`echo "$a $pattern" | awk ' printf("%d\n", $1 + $2)'`
echo $b
not working, also trined bc ,dc but thats not on my m/c.
also expr not supporting.
any clue? (6 Replies)
I need decimal comparing with if. Check if apache version is less than 2.2.17.
I tried this and not working.
#!/bin/bash
apachever=`/usr/local/apache/bin/httpd -v | head -1 | awk '{print $3}' |cut -d/ -f 2`
if ]; then
echo "Apache version less than 2.2.17"
else
... (7 Replies)
Greetings.
I have a nice bash shell script that runs a multi-step analysis well. I already have the SGE options set up to email me the progress of the run (started, completed, aborted), but a final step would be to code the shell script to email the final output (a .txt file) to the same email... (6 Replies)
Hi,
I am facing some error while doing the comparision between 2 decimal values in bash. Pl help me out.
I have tried using below scripts. But its giving me error.
1)amt=12.3 opn_amt=12.5 var=$(awk 'BEGIN{ print "'$amt'"<"'$opn_amt'" }')
if ;then echo "correct" else echo "Wrong"... (3 Replies)
Hello,
I have the following script
while read id fraction
do
sambamba -h -f bam -t 10 --subsampling-seed=50 -s $frac ${id}.bam -o ${id}.out.bam
done < fraction.txt
where fraction.txt has two columns (id,fraction) and 50 rows
I am unable to run this as bash is not able to read the second... (2 Replies)
Discussion started by: nans
2 Replies
LEARN ABOUT SUSE
id3tag
ID3TAG(1) User Command ID3TAG(1)NAME
id3tag - Tags an mp3 file with id3v1 and/or id3v2 tags.
SYNOPSIS
id3tag [ OPTION ]... [ FILE ]...
DESCRIPTION
Id3tag will render both types of tag by default. Only the last tag type indicated in the option list will be used. Non- rendered will
remain unchanged in the original file. Will also parse and convert Lyrics3 v2.0 frames, but will not render them.
OPTIONS -1, --v1tag
Render only the id3v1 tag
-2, --v2tag
Render only the id3v2 tag
-h, --help
Display help and exit
-v, --version
Display version information and exit
-a, --artist ARTIST
Set the artist information
-s, --song SONG
Set the song title information
-A, --album ALBUM
Set the album title information
-c, --comment COMMENT
Set the comment information
-C, --desc DESCRIPTION
Set the comment description
-g, --genre num
Set the genre number
-y, --year num
Set the year
-t, --track num
Set the track number
-T, --total num
Set the total number of tracks on the album
SEE ALSO id3convert(1), id3info(1), id3v2(1)AUTHOR
id3lib was originally designed and implemented by Dirk Mahoney and is maintained by Scott Thomas Haug <sth2@cs.wustl.edu>. Manual page
written for Debian GNU/Linux by Robert Woodcock <rcw@debian.org>.
local May 2000 ID3TAG(1)