Search Results

Search: Posts Made By: harpal singh
2,689
Posted By krishmaths
You may try ...
You may try


result=$(((a+(b/20*c)+(c/10*d))))


If you have a specific need to group the intermediate results, you may follow the same logic to calculate the intermediate results.

If you...
2,689
Posted By millan
You have to use bc command and also during...
You have to use bc command and also during variable interpolation use $before variable name.


echo "$a+($b/20*$c)+($c/10*$d)" | bc
2,986
Posted By DGPickett
Must you update the file in place, or can we make...
Must you update the file in place, or can we make a copy? Is the word moving to a equally legal place in the xml schema? Within a file, move upward is copy source word to memory, rewrite file...
2,170
Posted By RudiC
Run with option -x set and post log.
Run with option -x set and post log.
2,170
Posted By balajesuri
#!/bin/sh Names="name.txt" ###main##### ...
#!/bin/sh
Names="name.txt"

###main#####
while read LINE # preferable to use while loop to read files
do
Name=`echo $LINE |awk -F'|' '{print $1}'`
<some...
1,625
Posted By balajesuri
1. What is the exact requirement? 2. You could...
1. What is the exact requirement?
2. You could use File::Find module of perl if you want to traverse through a directory structure.
3,138
Posted By codemaniac
use ls with find , something like below . ...
use ls with find , something like below .

find "/abc/xyz/pqr/$INPUTDIR" -type f -ls
Forum: Programming 03-06-2012
1,157
Posted By codemaniac
Does the below suffice your requirement ? ...
Does the below suffice your requirement ?
Result=$(echo "Absoulte_Markup_XYZ.xml" | cut -d "." -f1 | awk -F "_" '{print $NF}')
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 09:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy