Search Results

Search: Posts Made By: stuckinboredom
3,105
Posted By stuckinboredom
In your example, below works just fine: grep...
In your example, below works just fine:
grep apple fruitsfile | awk '{FS=":";print "Fruit: "$1"\nColor: "$2"\nPrice: "$3"\nOrigin: "$4}'
990
Posted By stuckinboredom
Try this: sed -e 's/^\/var/rm &/g'...
Try this:
sed -e 's/^\/var/rm &/g' <file>
1,104
Posted By stuckinboredom
Try this: if [ $servertime -eq $logtime ] && [...
Try this:
if [ $servertime -eq $logtime ] && [ `expr $time1 - $time2` -gt 5 ]
1,121
Posted By stuckinboredom
Also, get rid of single quotes ' inside if...
Also, get rid of single quotes ' inside if condition.
Whenever single quotes are used, variable is not replaced by its value.
So in you code, it will never go to else part irrespective of the...
2,336
Posted By stuckinboredom
try this: for i in {1..$#} do eval...
try this:

for i in {1..$#}
do
eval echo $`echo $i`
done
Forum: Programming 04-08-2013
2,980
Posted By stuckinboredom
You can find you starting point and add 86400 to...
You can find you starting point and add 86400 to it for every 12 hours like this:
for example epoch time for 4/8/2013 10:00:00 GMT is 1365415200

Like below in Shell script:

FTime=1365415200 ...
10,738
Posted By stuckinboredom
try egrep ' [A-Z][A-Z][A-Z][A-Z]TX[A-Z]* '...
try egrep ' [A-Z][A-Z][A-Z][A-Z]TX[A-Z]* ' <file_name>
Showing results 1 to 7 of 7

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