![]() |
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 |
| Empty Files | DNAx86 | Shell Programming and Scripting | 3 | 04-18-2008 09:45 PM |
| How to parse 2 files simultaneously | Awanka | Shell Programming and Scripting | 8 | 04-12-2007 08:00 PM |
| How to find files not empty? | videsh77 | UNIX for Dummies Questions & Answers | 2 | 02-26-2006 09:15 AM |
| deleting the empty files | srivsn | Shell Programming and Scripting | 1 | 02-08-2006 06:39 AM |
| move files from folder thats are not empty | Steven | UNIX for Dummies Questions & Answers | 8 | 11-21-2001 10:05 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Hi.
Some shells may help: Code:
#!/bin/bash3 -
# @(#) s1 Demonstrate brace expansion.
echo
echo "(Versions displayed with local utility \"version\")"
version >/dev/null 2>&1 && version =o $(_eat $0 $1)
echo
rm -f scratch*
echo " Situation before:"
ls scratch*
touch scratch{1..3}
echo
echo " Situation after :"
ls scratch*
exit 0
Code:
% ./s1 (Versions displayed with local utility "version") Linux 2.6.11-x1 GNU bash 3.00.16(1)-release Situation before: ls: scratch*: No such file or directory Situation after : scratch1 scratch2 scratch3 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|