Search: This Site | People | Departments | Penn State  
Penn State Home Page Population Research Institute Home Page
  contact PRI news directory sitemap home

SSRI Home Page PRI Home Page

How can I do a 'dos2unix' on several files?


 It's possible if you write a script. The script below should accomplish this.

 

 #!/bin/sh
 for arg in $*
 do
 dos2unix  $arg $arg
 done
To execute : ./filename sdfsdf* (or whatever!)

 where : filename = filename of the above script (needs to be executable too!)

 sdfsdf* = the pattern of files that you want to apply the dos2unix command to.


Click Here To Return To Main Unix Page

Last modified: 10/26/01 | Contact Webmaster
Privacy and Legal Statements | Copyright Information | ©Copyright 2006, The Pennsylvania State University |