The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
How to find out the Process ID for particular one file Bhuvan Red Hat 4 09-09-2008 01:32 PM
process the old file first dsdev_123 AIX 2 03-25-2008 01:19 PM
how to kill process from file naamas03 Shell Programming and Scripting 17 11-07-2005 04:14 AM
how to kill process from file naamas03 Post Here to Contact Site Administrators and Moderators 1 09-16-2005 09:03 AM
process on file FastMagister High Level Programming 0 06-20-2004 01:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-22-2007
nazri76 nazri76 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 16
Process all file

I have several file in the directory. I try to run a encrypt script but one file processed only.

Code:
data_files='Ma*.txt'

for file in $data_files

do

    java Encrypt key.txt $data_files

done
How i can process all the file?
  #2 (permalink)  
Old 09-22-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
Code:
data_files='Ma*.txt'

for file in $data_files

do

    java Encrypt key.txt $file

done
You used the wrong variable...?
  #3 (permalink)  
Old 09-22-2007
nazri76 nazri76 is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 16
thanx a lot. It work!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0