![]() |
|
|
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 |
| what FS is shown in df -kh | upengan78 | SUN Solaris | 3 | 06-05-2008 05:41 PM |
| installed solaris, but xp not booting,but its shown in the menu,urgen help pls!!! | wrapster | SUN Solaris | 2 | 05-26-2008 02:03 AM |
| shortcut for tar cvf - [filename] | gzip > [filename].tar.gz | bcamp1973 | UNIX for Dummies Questions & Answers | 4 | 12-11-2007 05:45 PM |
| preventing the banner from being shown | BG_JrAdmin | SUN Solaris | 1 | 05-22-2006 07:39 PM |
| working directory shown | swchee | UNIX for Dummies Questions & Answers | 3 | 05-11-2006 05:05 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Help!! how to get the filename as be shown?
I am trying to obtain the file name (not including sub file name), however, I still cannot have the string output.
2 existed files at /tmp, AAA.new and BBB.last Originally, the output result is needed to be shown as follows, ex: SYSTEM NEW LAST =================== 01 AAA BBB My script was as follows, please kindly review and modify!! if [ ! ls -t -a $filename/*.new || -a $filename/*.last ]; then echo "------------NA-------------" elif [-a $filename\*.new]; then echo "$SYSTEM\ $filename" | read filename elif [-a $filename\*.last]; then echo "$SYSTEM\ $filename" | read filename fi |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|