Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: karthi_tvr
3,183
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
3,206
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)...
146,077
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...
7,598
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"...
30,004
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

 

Featured Tech Videos

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