![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| parse an arpwatch file and retain most recent mac | CM64 | Shell Programming and Scripting | 8 | 04-12-2007 12:21 AM |
| Get the most recent file from a remote server | anujairaj | UNIX for Dummies Questions & Answers | 5 | 09-27-2006 10:31 AM |
| getting the most recent file | anujairaj | Shell Programming and Scripting | 3 | 06-22-2006 03:34 PM |
| Changing name of most recent file | warpmail | AIX | 1 | 02-15-2006 07:34 PM |
| reading directory for most recent file? | duncan_glover | UNIX for Dummies Questions & Answers | 3 | 08-22-2002 07:26 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
OK, I know next to nothing about scripting in unix, and at the moment I don't have access to a unix environment...
We have an application that generates a text report file which is later printed. The format is this: bbtptcYYMMDDSSCC.txt (year/month/day/second/check digit) I want a script to scan the directory these files live in (lets call it XYZ_REPORT) for the most recent of these files (bbtptc*) and append it to a file, ie BBT_EXPORT.txt. Would this script suffice? And if not, what does it need? #!/bin/ksh cd $XYZ_REPORT cp `ls -t bbptc* | head -1` bbptc_extract Thanks in advance! |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|