This is still VERY confusing. If we look at message #19 in this thread as the current specification of what you are trying to do, we still can't tell what the parameter is in your
parameterized directory nor how that parameter is set (both of which are needed to complete your project). What is the name of the parameter being used in your script that contains the text that is to replace the directory value in
Output file directory attribute values? How are you setting that parameter in your shell?
What operating system are you using? Windows uses
\ as the component separator in a pathname. UNIX and UNIX-like systems use
/ as the component separator in a pathname. As noted above:
- your samples seem to use both. Are the backslashes in your sample input:
- mistakes (that were intended to be slashes),
- literal characters in the names of files (including directories) on your system, or
- does your system use both forward slash and backslash as component separators in pathnames?
What shell are you using? To complete your project, quoting and escaping are very important, and quoting and escaping vary greatly between UNIX and UNIX-like system shells and Windows shells.
The sample input file in post #19 contains 22 lines. The sample output file there consists of 44 lines (22 in CODE tags and 22 not in CODE tags). Please clarify what the real output is supposed to be! (I thought maybe the desired output was duplicated, but that is not the case in post #19.) Please be certain that the slash and backslash characters in your post are correct!