10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Please Help (novice to PERL and SHELL scripting)…. Need to create a script which removes all lines in $filename = "cycle_calendar_ftp_out" older than current date – a variable which will be a number of days passed to script. For Ex it will look at the end date which is the last field (4) and... (2 Replies)
Discussion started by: m3pwr
2 Replies
2. UNIX for Dummies Questions & Answers
I am trying to include a snippet in my script to check if the file created is having today's date.
eg: File name is : ABC.YYYYMMDD-nnn.log
The script should check if 'YYYYMMDD' in the above file name matches with today's date.
Can you please help me in achieving this.
Thanks in advance!! (5 Replies)
Discussion started by: kiran1112
5 Replies
3. UNIX for Dummies Questions & Answers
Hello,
I've been given the task of checking the date of expiration dates and notify when the date is 30 days away from expiration.
As stated in the Title, I'm very new to this, I did a good bit of work over the last two days to only find out I was going down the wrong path.
I'm not... (3 Replies)
Discussion started by: drey4184
3 Replies
4. Shell Programming and Scripting
Please help, I want script to check filename, size and date in specify path.
I want output as:
DATE: YYYYMMDD HH:MM
------------------------------------------------
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd HH:MM
fileA,filesize,yyyy mm dd... (1 Reply)
Discussion started by: akeji
1 Replies
5. Shell Programming and Scripting
hi my friends
im asking for the possibility to creat a script in ubuntu for added date to list users for doing this :
- search in debug connected user of all connected users
- if a new user is connect for the first time to my server
the script record the date of the connection and added it... (1 Reply)
Discussion started by: amzioujda
1 Replies
6. Shell Programming and Scripting
Hi all,I need your help to create the script.I need a script to check the ZIP file at network location with yesterday date name. ZIP file creation date is current date, but name of the zip file is previous date. for example file name "20110216.zip" created today 201102017.I just want to return the... (1 Reply)
Discussion started by: deepaksingla
1 Replies
7. Shell Programming and Scripting
Hi guys, i am new to perl. I started reading the perl documents and try to come up with some logic.
I am trying to create a script that would go into a location, search for todays files, then searches for all .txt files from today.
If todays not found, its an error
If file size is less... (26 Replies)
Discussion started by: DallasT
26 Replies
8. Shell Programming and Scripting
Not even sure how to word this.
Basically, we have a log file that gathers all alerts for a system.
What I am doing is grepping through this file and grabbing certain strings that are outputted to a file, then mailed to a group.
Here is the catch. Since I cannot copy this file to a temp file... (1 Reply)
Discussion started by: thecoffeeguy
1 Replies
9. Shell Programming and Scripting
So I need to create a shell script that can take as input a numeric day, month and year and output the day of the week for the input date.
So let's say, I input "programname 19 10 2006" it should output Thursday... I tried messing around with the grep and awk commands, but I can't get it to... (6 Replies)
Discussion started by: mredwardlee
6 Replies
10. UNIX for Dummies Questions & Answers
I am creating a KSH script and need to check the filedate against the system date. I can get the sys date w. date command, and I was able to get the filedate w. the awk command but when I compare them w. an if condition statement I get syntax error.
Not sure what's wrong, and other suggestions on... (4 Replies)
Discussion started by: jaxconsultant
4 Replies