![]() |
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 |
| Bash shell script | outthere_3 | UNIX for Dummies Questions & Answers | 2 | 01-31-2008 08:13 PM |
| BASH Shell Script Help -HELP! | flamethrower0 | Shell Programming and Scripting | 2 | 12-30-2006 01:26 AM |
| bash shell script and ms-dos | space13 | Shell Programming and Scripting | 1 | 11-10-2006 07:06 PM |
| bash shell script | norsk hedensk | Shell Programming and Scripting | 4 | 08-02-2003 07:27 PM |
| BASH shell script question | ewarmour | Shell Programming and Scripting | 3 | 05-24-2002 05:10 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
one question for bash shell script
Just one question for bash shell script.
In bash script, you can use *.txt to call any files in current folder that ends with .txt, like rm *.txt will remove all txt file in current folder. My question is can you actually remember or use the file name among *.txt, I know file=*.txt will not do this if you call $file later. Thanks! Last edited by zx1106; 03-05-2008 at 12:52 AM.. |
|
||||
|
Quote:
I tried this method before, but how could I do if I want to change a file among *.txt to *.exe (keep the first part while change the second part)? Thanks! Last edited by zx1106; 03-05-2008 at 12:53 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|