Search Results

Search: Posts Made By: akabir77
1,364
Posted By anbu23
echo $VAR | awk ' { print $5 } ' | IFS=":" read...
echo $VAR | awk ' { print $5 } ' | IFS=":" read FTP_HOUR FTP_MIN FTP_SEC
1,364
Posted By bartus11
FTP_HOUR=`echo $VAR | awk '{print $5;}' | awk -F:...
FTP_HOUR=`echo $VAR | awk '{print $5;}' | awk -F: '{print $1;}'`
FTP_MIN=`echo $VAR | awk '{print $5;}' | awk -F: '{print $2;}'`
FTP_SEC=`echo $VAR | awk '{print $5;}' | awk -F: '{print $3;}'`
5,390
Posted By amitranjansahu
check this . ...
check this .
https://www.unix.com/shell-programming-scripting/17660-check-null-variable.html
5,390
Posted By amitranjansahu
if [ `ps -elf | grep batch_output_x | grep -cv...
if [ `ps -elf | grep batch_output_x | grep -cv grep` = 0 ]
then
echo 'Gateway output processing started.'
else
VAR=$(ps -ef | grep batch_output_x )...

fi


You are not...
2,774
Posted By pseudocoder
Check this and try to adapt it for your needs,...
Check this and try to adapt it for your needs, hope the logic is clear and right.
#!/bin/sh

RUN_TIME=$(date +'%H:%M:%S')

echo $RUN_TIME

H=$(echo $RUN_TIME | cut -c1-2)
M=$(echo $RUN_TIME |...
77,957
Posted By funksen
date +"%H:%M:%S" 15:59:35
date +"%H:%M:%S"

15:59:35
1,567
Posted By Reboot
Above script do following : 1) It starts...
Above script do following :


1) It starts execution using "K-shell".
2) Then it execut "~/gateway/bin/gateway_env.sh" file in the home directory of the user executing the script.
3)...
1,567
Posted By Scott
Hi. Using command substitution: ...
Hi.

Using command substitution:

Generally using:

VAR=$(command)


i.e.

VAR=$(ps -ef | grep batch_download_x)
Showing results 1 to 8 of 8

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