10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
You have a log file as attached in sample input with various operations and time taken by each of them. Write a script to find the min and max time taken for each operation. Sample output is attached.
Sample Input is given as below:
operation1,83621
operation2,72321
operation3,13288... (1 Reply)
Discussion started by: Chandan_Bose
1 Replies
2. Shell Programming and Scripting
I want to find a file using find or any utility having the current date time stamp.....
I have an alternate way to do that.... but that is too way out of logic... so looking out something with find itself (5 Replies)
Discussion started by: nikhil jain
5 Replies
3. Shell Programming and Scripting
Hi All,
I am having an abc.txt , which contains some digits
Eg:abc.txt
145
566
355
I want write shellscript in suchway that if any digit is greter than 1000 then it shuld display " text files contain digit, which is greater than 1000"
Please help me to do so
Thanks.. (8 Replies)
Discussion started by: pspriyanka
8 Replies
4. Shell Programming and Scripting
Hi Greetings
i have 1000 files (xmlfiles) and i need to find which file contain the string over 1000 file
all file end with txt
i tried with
grep -c "string" *.txt
i am getting an error
-bash: /bin/egrep: Argument list too long
i have put an script like below
#!/bin/bash
for line... (9 Replies)
Discussion started by: venikathir
9 Replies
5. Shell Programming and Scripting
Hello
I have a file in following format:
IV 08:09:07
NM 08:12:01
IC 08:12:00
MN 08:14:20
NM 08:14:15
I need a script to compare time on each line with previous line and show the inconsecutive line. Ex.:
08:12:00
08:14:15
A better way... (6 Replies)
Discussion started by: vilibit
6 Replies
6. Shell Programming and Scripting
Hello folks,
I have a file, but it change every seconds, i use stats command to check its creation time, but it shows access,modify and change time same. Is there any other way to see the file creation date/time?
Thanks (2 Replies)
Discussion started by: learnbash
2 Replies
7. Shell Programming and Scripting
Hi ,
i need to extract only time for a file and i am using following code for this..
while read record1
do
SQLQuery=`echo $Record1 | awk '{printf $0 }'`
InputfileName=`echo $Record1 | awk '{printf $8 }'`
ColumnNamesSPcomma=`echo $Record1 | awk '{printf $4 }'`
filetime =`echo... (6 Replies)
Discussion started by: manmeet
6 Replies
8. Shell Programming and Scripting
Hi All,
I would like to know the file modification time till seconds in Unix. So I tried ls -e and it worked fine. This Solaris 5.10
-rw-rw-r-- 1 test admin 22 Sep 12 11:01:37 2008 test_message
But I am not able to run the same command in SOlaris 5.6 and also in AIX/HP
Is there... (3 Replies)
Discussion started by: rahulkav
3 Replies
9. Shell Programming and Scripting
Hi All,
I really need help in figuring out how to determine the filenames from the time that is specified as parameter.
The script should take as input - the start time and end time in minutes and also start date and end date.
Example: reporter.sh -instance Instance_Name -startTime 13:10... (0 Replies)
Discussion started by: chiru_h
0 Replies
10. UNIX for Dummies Questions & Answers
New to unix .. Is there a simple command or utility that will tell me when the last time a file was opened/used? (3 Replies)
Discussion started by: sbr262
3 Replies