Search Results

Search: Posts Made By: karthi_tvr
3,864
Posted By karthi_tvr
It is always better to use standard Unix commands...
It is always better to use standard Unix commands when available...

dirname $Var
basename $Var
4,051
Posted By karthi_tvr
echo "Enter number : \c" read number ...
echo "Enter number : \c"
read number
Len=`echo $number | awk -F"." '{print $1}' | awk '{print length}'`

case $Len in
1) echo One ;;
2) echo Ten ;;
3) echo Hundred ;;
4) echo Thousand ;;
5)...
150,515
Posted By karthi_tvr
Hi Preeti You can pass variables to...
Hi Preeti

You can pass variables to functions and use them within for modification. Once you exit the function, the variables still continue to hold the same values. So you need not worry abt the...
8,316
Posted By karthi_tvr
Hi Thres=90 df -k | grep -v File |...
Hi

Thres=90

df -k | grep -v File | while read FS SZ US AV PER MNT
do
PER1=`echo $PER | awk -F"%" '{print $1}'`
if [ $PER1 -gt 89 ]; then
mail_user "Filesystem $FS is $PER1 percent full"...
34,086
Posted By karthi_tvr
Hi :) You can achieve this by the following...
Hi :)

You can achieve this by the following while loop :-

cat mapfile | while read next
do
LIVELV=`echo $next | awk '{print($1)}'`
BCVLV=`echo $next | awk '{print($3)}'`
lvmerge $BCVLV...
Showing results 1 to 5 of 5

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