10 More Discussions You Might Find Interesting
current date command runs well
awk -v t="$(date +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
subtract 30 days fails
awk -v t="$(date --date="-30days" +%Y-%m-%d)" -F "'" '$1 < t' myname.dat
awk command in hp unix subtract 30 days automatically from current date without date illegal option error... (20 Replies)
Discussion started by: kmarcus
2. Shell Programming and Scripting
I need to perform a task with a script but I have no idea how to do it, I hope someone could help me:
- on my linux pc I have many folders with movies, tv shows, toons, ecc.
They are shared by a dlna server to my panasonic tv where I can browse and see them.
The problem is that... (6 Replies)
Discussion started by: Torquemada
3. Shell Programming and Scripting
I have a file that contains todays date(for ex- test_08/30/2013)
Now I want a script which will run and change the name of the file and put yesterday's date
(for ex- test_08/29/2013)
---------- Post updated at 04:40 AM ---------- Previous update was at 04:31 AM ----------
I... (2 Replies)
Discussion started by: sv0081493
4. Shell Programming and Scripting
Plz help me
To display date in the mm/dd/yyyy. Eg. if date is 28-09-2012 the output of the shell script should be date 09/28/2012. (1 Reply)
Discussion started by: shivasaini
5. Shell Programming and Scripting
I have file FSN.log which contains number 100. i have other Perl script when i run it , it ll increment this FSN.log value.
now my requirement is
when the count in FSN.log becomes 999, it should make the value to 100 again and Perl script to change the date or it should make the date... (2 Replies)
Discussion started by: santhoshks
I have a code to connect to a remote Linux server through windows using SSH, with host-name, username and password built in the code.
I want to add a shell script in the code which should execute automatically without any user intervention.
(as u know that date change requires you/us to be... (0 Replies)
Discussion started by: tarkan
7. Shell Programming and Scripting
Someone can help me write a script for change date fromat
from "Feb 4 18:44:03 2009" to 2009020418 ?
from "Mar 17 16:44:03 2009" to 2009031716 ? (4 Replies)
Discussion started by: pccwtest
8. Shell Programming and Scripting
i have many files with date format of 6-9-2008 and i want a script that can change the format to 2008-06-09
Thanks (15 Replies)
Discussion started by: shehzad_m
9. Shell Programming and Scripting
I want to write a script which will automatically take password
sequentially from a file after every 10 days.
i.e the passwd command should be executed automatically every 10 days and it should take the input from the password file sequentially.
Has any1 got a solution?????????????? (1 Reply)
Discussion started by: rahulrathod
10. UNIX for Dummies Questions & Answers
I would like to create a script that logs into a list of several servers 50+ and changes my password all at once.
Every 60 days we are required to login to each system and change our passwords or else they expire and our login account is deleted.
I have an idea on how I could do this but... (4 Replies)
Discussion started by: darthur