Re: [opensuse] Bash Scripting



On Tuesday 13 November 2007 16:05, Chris Arnold wrote:
Randall R Schulz wrote:
You have to fill that part in. Do you know the names of the files?
If so, list them in the first section.

Do you have a set of "find" criteria that will produce the target
files? If so, use that section.

Do you have a simple shell "glob" (wild-card) expression that will
yield the proper targets? If so, use that.

Shouldn't *.php yield the results i need as far as find the 2000
files?

How would I know? You didn't say anything about the files on which you
wish to operate. Is the target set all files whose name end in ".php"?
If so, then yes. If not, then no.


You didn't give any information about which files to operate on, so
obviously I could not make that part of the sample / example script
definite.

That is the whole purpose of wanting a script.....I have over 2000
files that need to have the ' inserted into the files. No way am i
going to hand type the file names in.

"Files" could be anything. Clearly, I could not write the script to
select a set of files the criteria for which remain in your mind.

If there's any regularity to the names of the files on which you wish
the script to operate, then no, you don't need to type them. But so
far, only you know those criteria so only you can write the code that
will yield that list.


Randall Schulz
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages

  • RE: copy and paste problem
    ... Private Sub Worksheet_Change(ByVal Target As Excel.Range) ... 'Sets the range of cells for the code to work if a cell other than the range ... 'If the cells in the range equal this criteria ... ElseIf Target = "RD" Then ...
    (microsoft.public.excel.programming)
  • Re: Generic thanks
    ... >> means if the script of the Phaistos Disc is a syllabic script there ... >> it is impossible to found the right solution by chance. ... Therefore it's possible to check a decipherment by checking it ... Let us assume that you have a easy to calculate criteria to see if you ...
    (sci.lang)
  • Re: Users online
    ... It could execute some script or program which will inform or write to the file if user is active or idle. ... defintion / criteria of 'user is online' and how do you determine if users meet those criteria'. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Value deletion
    ... By saying "...of course the app bombs" isn't very descriptive. ... I have a script that writes a single record to a single row on a ... it selects with no criteria the needed field ...
    (perl.dbi.users)
  • Re: use find on button fields
    ... The workaround is either to tab into the field or script entry using Go To ... Running a script in Layout Mode switches FileMaker back to Browse Mode ... In a scripted Find process, go to that layout to enter your Find criteria, and include a step to return to the original layout once the Find is complete. ... the user will always forget the modifier keys, and run the script on button click anyway. ...
    (comp.databases.filemaker)