Search Results

Search: Posts Made By: mohanalakshmi
2,355
Posted By Don Cragun
If: TZ=CST6CDT date '+%Y-%b-%d %T'gives you the...
If:
TZ=CST6CDT date '+%Y-%b-%d %T'gives you the current time:
TZ=CST6:15CDT date '+%Y-%b-%d %T'should give you the time 15 minutes ago.
2,355
Posted By Don Cragun
If you don't have access to the GNU utilities...
If you don't have access to the GNU utilities version of the date utility, but you have a recent 1993 version of the Korn shell (such as the one on the last few releases of Mac OS X), you could use:...
2,355
Posted By neutronscott
Date math is hard. If you have GNU date, then you...
Date math is hard. If you have GNU date, then you can use this


mute@thedoctor:~$ ./script < input
2014-May-06 03:24:09 781;WARN ;system error occuerd.
at (Unknown Source)
at...
2,823
Posted By SriniShoo
ssh -q user@host << ! > /home_dir/test.txt cat...
ssh -q user@host << ! > /home_dir/test.txt
cat < $datadir/test.txt
ksh -s
$scriptdir/test.sh "$omsDir"
exit
!
1,493
Posted By pravin27
Could this help you ? awk -F"|"...
Could this help you ?
awk -F"|" 'NR==FNR{a[$0]=$0;next}
a[$0]!=$0{print $1;next}
!a[$0]{print $1}' file2 file1
1,493
Posted By pravin27
awk -F"|" 'NR==FNR{a[$1]=$0;next} ...
awk -F"|" 'NR==FNR{a[$1]=$0;next}
a[$1]!=$0{print $1;next}
!a[$1]{print $1}' file2 file1
1,593
Posted By rajamadhavan
Make V to $2 on your script since your actual...
Make V to $2 on your script since your actual file has a [ in the beginning.


V = $2
1,593
Posted By rdcwayx
recommend to move below lines to BEGIN{} part in...
recommend to move below lines to BEGIN{} part in awk, which will avoid to gsub on each line again.

gsub ( "-", X, ST )
gsub ( "-", X, EN )
1,587
Posted By Franklin52
Try this: awk -v d="$start" -v d1="$end" '$0 ~...
Try this:
awk -v d="$start" -v d1="$end" '$0 ~ d{p=1} $0 !~ d1 && prev ~ d1 && p{p=0}{prev=$0}p' file
4,294
Posted By Skrynesaver
fork a process to return the read value sleep...
fork a process to return the read value
sleep for $interval
if [ kill -0 $pid_of_sub_process] kill the sub process and exit with an error code
5,408
Posted By sathyaonnuix
Let me try to help you. Step 1: Use try it...
Let me try to help you.

Step 1:
Use try it yourself editor (http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro)
Write your html code and see whether you receive the desired output
...
15,719
Posted By vidyadhar85
try below code.. save it in script called banner...
try below code.. save it in script called banner and enjoy :)


#!/bin/ksh93
# or #!/bin/bash

A=$((1<<0))
B=$((1<<1))
C=$((1<<2))
D=$((1<<3))
E=$((1<<4))
F=$((1<<5))
G=$((1<<6))...
20,420
Posted By Don Cragun
Saying that you have a UTC time stamp is...
Saying that you have a UTC time stamp is ambiguous; please show us the format of the time stamps you have and the format of the time stamps you want to produce. What are you going to do with the...
Showing results 1 to 13 of 13

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