![]() |
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 |
| Sendmail retries sending to non-existant users | vertigo23 | UNIX for Advanced & Expert Users | 0 | 08-10-2007 06:31 PM |
| Creat a File with a Specific Size | aldowsary | AIX | 3 | 12-14-2006 11:35 AM |
| Creat-Crontab | dhinesh | High Level Programming | 2 | 04-21-2006 07:10 AM |
| Reading file names from a file and executing the relative file from shell script | anushilrai | Shell Programming and Scripting | 4 | 03-10-2006 05:25 AM |
| how to creat 1 parent to call 3 children | zmanultra | High Level Programming | 1 | 10-21-2005 04:37 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to creat a non-existant file????
Hi,
Everyday i'm supposed to get a file DESC_HYD_DAILY_040620070010.txt.But when this file doesnt showup,i want to create it.What i'm doing is just using the vi editor to create the file manually. I want this to be put inside a loop,create it automatically everyday.The date portion changes everyday too.So the date should also change dynamically. file=DESC_HYD_DAILY_040620070010.txt if [! $file] create the file else echo "the file exists" if Any help is appreciated?? Thanks, Kumar |
|
||||
|
Quote:
file=DESC_HYD_DAILY_040520070010.txt touch $file it creates the file if it doesnt exit,but when i execute it for the second time,it is not changing it to todays late.. |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|