![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| want to create directory with the previous date | sridhusha | Shell Programming and Scripting | 7 | 11-19-2007 05:44 AM |
| date issue-find prevoius date in a patricular format | bsandeep_80 | UNIX for Advanced & Expert Users | 3 | 11-15-2007 08:42 PM |
| Need help to create a date script | mredwardlee | Shell Programming and Scripting | 6 | 10-20-2006 11:00 AM |
| Directory create date | Bab00shka | UNIX for Dummies Questions & Answers | 2 | 06-29-2005 11:42 AM |
| How to find Previous date and Coming date | arunava_maity | UNIX for Dummies Questions & Answers | 2 | 05-24-2001 12:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Find and Create by Date
I have a log file that's generated on a daily basis, and saved with the Month and day at the end of it. For instance: file_type_Aug17.csv. As part of my excel conversion I need my script to search for the current Month and day(Aug17) and convert it. Thanks for your help!
|
|
||||
|
Thanks for your help!
Here's what I have so far. rm -rf file_file_perf_Aug18.xls chmod 777 file_file_perf_Aug19.csv awk -f csc2xls < file_file_perf_Aug19.csv > file_file_perf_Aug19.xls chmod 777 file_file_perf_Aug19.xls I have to manually change the number in the date to complete the task. I indicated in the original post the current Month and day. My mistake, not the current day, I need to this script find the day before. Thanks |
|
||||
|
echo "$TZ" works for me and the result is US/Eastern
Since I'm new to this, in my script what should be my layout. Here's what I'm trying to accomplish. I'm trying to automate this as much as possible. These reports are generated the day before. Now in the morning 12AM the next day I need to email an excel formatted report to the heads. the system generates a csv file that is -rw-r--r--, I normally have to chmod to perform execute. How would I implemented the date portion into my script to pull or parse the correct file with the naming convention I provided? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|