Search Results

Search: Posts Made By: sairam_9191
6,057
Posted By sairam_9191
below is the code i am using: month=$1 ...
below is the code i am using:
month=$1
year=$2
sid=$3
dd=`date '+%m_%d_%H_%M'`
hostname=`uname -a | awk '{print $2}' | awk -F "." '{print $1}'`

#######################################

cd ...
2,229
Posted By sairam_9191
try below one: du -g DIR_A |awk '{sum +=$1} END...
try below one:
du -g DIR_A |awk '{sum +=$1} END {print sum}'

or
du -h DIR_A |awk '{sum +=$1} END {print sum}'
6,057
Posted By sairam_9191
I tried echo 1 > opt1.txt diagnos <...
I tried
echo 1 > opt1.txt
diagnos < opt1.txt

but this is giving endless loop of above options
i have to forcefully exit from script using ctrl C
once i select option 1, i vl again be asked...
6,057
Posted By sairam_9191
how do i do that, i am not aware of redirection,...
how do i do that, i am not aware of redirection, can u give me an quick example...
6,057
Posted By sairam_9191
How to automate user selection options in shell script?
Hi There,

I am trying to write a script which has to pick the prompted options by itself(i mean option to choose will be passed)

here is real scenario i am trying to do.
i have an...
Showing results 1 to 5 of 5

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