LoginSignup
1

More than 5 years have passed since last update.

ファイルの連続処理

Last updated at Posted at 2014-01-13

基本形

sample1.sh
#! /bin/sh
while [$1!= “” ] ; do
    `do something to $1`
    shift 1
done

拡張子を削除した名前を$fileに代入して処理

sample2.sh
#! /bin/sh
while [$1!= “” ] ; do
    file=${$1%.*}
    `do something with $file`
    shift 1
done

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1