Search Results

Search: Posts Made By: josgeorge
3,270
Posted By josgeorge
printing positional charaters in a loop
#!/bin/bash
usep=`df -hT | awk '{ print $5 }'`
for (1=1,1<8,i++)
output=`echo $usep | awk '{ print $i }'| cut -d'%' -f1`
echo $output
if [ $output -gt 10 ]
then
echo "critical value"


i...
Showing results 1 to 1 of 1

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