10 More Discussions You Might Find Interesting
1. HP-UX
HI,
Can anyone tell me how to pull the date and file name separated by a space using the find command or any other command. I want to look through several directories and based on a date timeframe (find -mtime -7), output the file name (without the path) and the date(in format mmddyyyy) to a... (2 Replies)
Discussion started by: lnemitz
2 Replies
2. Shell Programming and Scripting
I have one file with below entry. There are multiple entries, but for sample I used just three lines.
my requirment is to create a script by which it will pull only those entries which modification time is greater than 2 weeks (or 15 days). if I run script today, it will compare date from today... (4 Replies)
Discussion started by: anshu ranjan
4 Replies
3. Shell Programming and Scripting
Hi,
I have been trying to get the yesterdays date for the Input date I pass.
I know how to do for the current timestamp but how to do for the input date.
Is there any way I can convert to epoch time and do manipulations and back to human readable date?
Please help
Thanks
... (1 Reply)
Discussion started by: abhi1988sri
1 Replies
4. UNIX for Dummies Questions & Answers
I did some searches, but couldn't really find what I'm looking for. I have a file formatted as below:
BOF ABC CO - XYZ COMM DATA OF 07/05/2011
EBA00000001 sdfa rtyus uyml
EBB00000001 54682 984w3
EBA00000002 mkiyuasdf 98234
I want to pull the date from the header record and add it... (4 Replies)
Discussion started by: keeferb
4 Replies
5. Shell Programming and Scripting
Hi All,
Can anybody help me to get the yesterdays date in perl script.
My script is as below
#!/bin/perl -w
$yes=system("TZ=IST+24 date +%d-%m-%Y");
print "$yes\n";
script is writting the date but with 0
pls see the output below
#!/bin/perl -w
$yes=system("TZ=IST+24 date... (2 Replies)
Discussion started by: jam_prasanna
2 Replies
6. Shell Programming and Scripting
hi All,
I have this sample text file - access.log:
Jan 18 21:34:29 root 209.151.232.70
Jan 18 21:34:40 root 209.151.232.70
Jan 18 21:34:43 root 209.151.232.70
Jan 18 21:34:56 root 209.151.232.70
Jan 18 21:35:10 root 209.151.232.70
Jan 18 21:35:23 root 209.151.232.70
Jan 18 21:36:04 root... (2 Replies)
Discussion started by: linuxgeek
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Was using date +%Y%j to get current julian date. Can anyone let me know how can I get y'day's julin date. Thx
Did check FAQ but couldn't find anything.
Thanks. (3 Replies)
Discussion started by: er_ashu
3 Replies
8. Shell Programming and Scripting
To get yesterays date, execute the command :
TZ=aaa24 date +%Y%m%d
Output format will be yyyymmdd (2 Replies)
Discussion started by: sujju1985
2 Replies
9. Shell Programming and Scripting
I need to get yesterdays date in the format yyyymmdd
I can get today's date simply enough - 20031112
Is there any way to substract 1 from this easily enough in korn shell script?
It has to be korn shell and not perl (20 Replies)
Discussion started by: frustrated1
20 Replies
10. UNIX for Dummies Questions & Answers
Hi Guys.
I am very new to UNIX.
I need to get yesterdays and tommorows date given todays date.
Which command and syntax do i use in basic UNIX shell.
Thanks. (2 Replies)
Discussion started by: magikminox
2 Replies