9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Experts,
I tried to stay away from posting stuff here and asking for help.
I want to print date valeu for a given variable and that is not working.
#!/bin/bash
START=`echo $1 | tr -d _`;
FV=`echo $2`
for (( c = 0 ; c < $FV ; c++ ))
do
# echo -n "`date --date="$START +$c day"... (12 Replies)
Discussion started by: PG3
12 Replies
2. Shell Programming and Scripting
Hi ,
This script working for fine if pass script-name.sh Jul/10/2007 ,I want to pass 20070710(yyyymmdd) .Please any help it should be appereciated.
use Time::Local;
my $d = $ARGV;
my $t = $ARGV;
my $m = "";
@d = split /\//, $d;
@t = split /:/, $t;
if ( $d eq "Jan" ) { $m = 0 }... (7 Replies)
Discussion started by: akil
7 Replies
3. Shell Programming and Scripting
Hi,
I have a log file with contents like
81.49.74.131 - -
81.49.74.131 - -
116.112.52.31 - -
116.112.52.31 - -
I need an output like this
81.49.74.131 14/Sep/2008 Time duration: 00:06:00
116.112.52.31 15/Sep/2008 Time duration: 00:00:01
Please anyone suggest a script for this.... (1 Reply)
Discussion started by: FuncMx
1 Replies
4. Shell Programming and Scripting
Hi,
Am new to unix..i want some help..
when am using ls command like ls-ltr it displaying output like this:
rw-r--r-- 1 infauser dba 36 Jun 16 12:36 s1_midify
-rw-r--r-- 1 infauser dba 66 Jun 16 12:42 sample_one
-rw-r--r-- 1 infauser dba 77 Jun 16 13:05... (3 Replies)
Discussion started by: sujana
3 Replies
5. Shell Programming and Scripting
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Discussion started by: amittal
1 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I needed to write a script to "Collect and Display the Last User ID and Date of Last Login".
The requirement is:
When a workstation stops reporting it could be for many reasons. If we know the last person who logged in before the workstation came down, then we can contact the last... (1 Reply)
Discussion started by: amittal
1 Replies
7. What is on Your Mind?
Same as the Title!
:) (2 Replies)
Discussion started by: ripat
2 Replies
8. UNIX for Dummies Questions & Answers
Hi!!
I wanna display file names which are created before/after a particular date.
I wud be glad if anybody can help me out in that.
Thanx
Dhruv (1 Reply)
Discussion started by: dhruv_saksena
1 Replies
9. Shell Programming and Scripting
Hi All,
When I type date..I get the date, time ..etc displayed
...but can someone help me to display yesterdays date... some script to display back dates.
Thanks in advance
Minaz (7 Replies)
Discussion started by: minazk
7 Replies