Skip to content

Do_SelFile

Adrian Quintana edited this page Dec 11, 2017 · 1 revision

selfile_create

Purpos

This program allows you to create a selection file. It is a batch file.

Usage


$ selfile_create "[file pattern]" > [sel file]


Parameters

  • `` File pattern, admits wildcards, i.e., the characters ? and *.

There is no restriction on the names either of the selfile itself or the files included, neither in the number of file to manage.

Examples and notes

  • If you don't write the proper double quotes then the wildcards are expanded by the shell and only the first file is included in the selfile
  • If you make a selfile with a pattern that the selfile itself meets, then the selfile will be inside itself.
    • Solution: be more restrictive with the pattern.

Here you have several examples of use:


$ selfile_create "g0ta/*" > g0ta.sel


The content of the file is like this


g0ta/g0ta00001.xmp 1
g0ta/g0ta00002.xmp 1
g0ta/g0ta00003.xmp 1
...


You can create selfiles selecting by hand the files


$ selfile_create "g0ta00001.xmp g0ta00002.xmp" > g0ta_by_hand.sel


The result would be:


g0ta00001.xmp 1
g0ta00002.xmp 1


Or selfiles as complex as


$ selfile_create "g0ta00[0-4]* g0ta005[0-3]* g0ta00540.xmp g0ta00541.xmp" > g0t_even.sel 


--Main.AlfredoSolano - 16 Jan 2007

Clone this wiki locally