10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i grepped the time stamp in a file as given below
now i need to calculate time difference
file data:
18:29:10
22:15:50 (5 Replies)
Discussion started by: vivekn
5 Replies
2. Shell Programming and Scripting
In the awk below, what I am attempting to do is check each line in the tab-delimeted input, which has ~20 lines in it, for a keyword
SVTYPE=Fusion. If the keyword is found I am splitting $3 using the . (dot) and reading the portion before and after the dot in an array a.
If it does have that... (12 Replies)
Discussion started by: cmccabe
12 Replies
3. Shell Programming and Scripting
Hi
I have a file as below
<field1> <field2> <field3> ... <field_num1> <field_num2>
Trying to sort based on difference of <field_num1> and <field_num2> in desceding order and print all fields.
I tried this and it doesn't sort on the difference field .. Appreciate your help.
cat... (9 Replies)
Discussion started by: newstart
9 Replies
4. Shell Programming and Scripting
Hi Guys,
What is difference between this two lines in script
logger -p daemon.info -t postback Starting /opt/local/bin/backup-report
and
/opt/local/bin/backup-report
is the backu script running twice here?
Thanks, (2 Replies)
Discussion started by: manalisharmabe
2 Replies
5. Shell Programming and Scripting
Hi All,
Sorry if this question has been posted elsewhere, but I'm hoping someone can help me! Bit of an AWK newbie here, but I'm learning (slowly!)
I'm trying to cobble a script together that will save me time (is there any other kind?), to swap two fields (one containing whitespace), with... (5 Replies)
Discussion started by: Bravestarr
5 Replies
6. Shell Programming and Scripting
I've run into a problem getting exactly what I want out of awk - some folks may recognize this as an output from Amazon's ec2-describe-instances:
Given the following:
INSTANCE i-4960f321
BLOCKDEVICE Line2Var2
TAG instance i-4960f321 Name web1
TAG instance i-4960f321... (2 Replies)
Discussion started by: colinjohnson
2 Replies
7. Shell Programming and Scripting
Please see the following code, between "status" and "OK" exists many spaces, I want to get status OK . how to ignore multi spaces? If tab exists in the spaces, how to ignore it ?
Is there other commands can replace cut?
$ echo 'drv status OK'| cut... (3 Replies)
Discussion started by: 915086731
3 Replies
8. Shell Programming and Scripting
Hi guru's,
Am new to shell scripting.
I am getting the below o/p from the oracle database, when I fire a query.
ID JOB_ID ELAPSED_TIME FROM TO
----- ------ ------------------- -------- --------
62663 11773 01/06/2009 09:49:13 SA CM
62664 11773 ... (4 Replies)
Discussion started by: sathik
4 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I have a requirement for a script to find out the increase in memory. We have a log native_stderr.log where this will log.
bash-2.05$ tail -40 native_stderr.log | grep ': freed'
<GC(4140): freed 168190456 bytes, 66% free (180990488/271776256), in 253 ms>
<GC(4141): freed... (4 Replies)
Discussion started by: senthilkumar_ak
4 Replies
10. Shell Programming and Scripting
I would like my script to be able to tell the difference between to lines of input, like:
Input 1:
1 2 3 4 5
Input 2:
1 2 3 4 5 6
I want the script to tell me that the difference between the two lines is the 6. Is there anyway I can have it do this?
Here's an example of what my script... (12 Replies)
Discussion started by: Kweekwom
12 Replies