Hi,
Thanks for the help. I've always had a hard time learning this stuff without seeing the thing in action, and the "options" in a search are overwhelming. I'm more the type who learns from seeing something in action, and I branch out from there. I'm not a guy who can read a book on bash scripts and take away much, is what I'm saying.
But here is the context. I have two servers set up. One strictly for EVERYTHING, and I use that server to curate metadata, such as descriptions, artwork, etc... This server is like a staging area where all the media resides, and I edit details the way I want them. This process creates an ".nfo" file with the information... but it adds its "date added" line to the ".nfo"...
My UnRAID script will copy a movie's folder to the second production server which is only showing SELECTED content on a schedule, and since the curation was done, the correct artwork and metadata are just the way I want the data to be presented. But because of the way the timestamp is automatically added, it uses the date added to the ORIGINAL staging server. This means that I can't change that date on each copy, and if I delete the ".nfo" file, I lose the other customization.
So I need that "date added" line stripped from all the files every so often, so it re-adds just that snippet when I add to the other server. Here is an example ".nfo" file... I can't add attachment, so it's copied inline... I'm not sure if the date added line is always in the same spot in each file.
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<movie>
<plot><![CDATA[For decades, next-door neighbors and former friends John and Max have feuded, trading insults and wicked pranks. When an attractive widow moves in nearby, their bad blood erupts into a high-stakes rivalry full of naughty jokes and adolescent hijinks.]]></plot>
<outline><![CDATA[The best of enemies until something came between them.]]></outline>
<lockdata>false</lockdata>
<dateadded>2023-04-12 20:30:43</dateadded>
<title>Grumpy Old Men</title>
<originaltitle>Grumpy Old Men</originaltitle>
<actor>
<name>Jack Lemmon</name>
<role>John Gustafson</role>
<type>Actor</type>
<tmdbid>3151</tmdbid>
<tvdbid>253869</tvdbid>
</actor>
<actor>
<name>Walter Matthau</name>
<role>Max Goldman</role>
<type>Actor</type>
<tmdbid>6837</tmdbid>
<tvdbid>255031</tvdbid>
</actor>
<actor>
<name>Ann-Margret</name>
<role>Ariel Truax</role>
<type>Actor</type>
<tmdbid>13567</tmdbid>
<tvdbid>254337</tvdbid>
</actor>
<actor>
<name>Burgess Meredith</name>
<role>Grandpa Gustafson</role>
<type>Actor</type>
<tmdbid>16523</tmdbid>
<tvdbid>257416</tvdbid>
</actor>
<actor>
<name>Daryl Hannah</name>
<role>Melanie</role>
<type>Actor</type>
<tmdbid>589</tmdbid>
<tvdbid>351037</tvdbid>
</actor>
<actor>
<name>Kevin Pollak</name>
<role>Jacob Goldman</role>
<type>Actor</type>
<tmdbid>7166</tmdbid>
<tvdbid>253764</tvdbid>
</actor>
<actor>
<name>Ossie Davis</name>
<role>Chuck</role>
<type>Actor</type>
<tmdbid>15531</tmdbid>
<tvdbid>257376</tvdbid>
</actor>
<actor>
<name>Buck Henry</name>
<role>Snyder</role>
<type>Actor</type>
<tmdbid>7795</tmdbid>
<tvdbid>254654</tvdbid>
</actor>
<actor>
<name>Christopher McDonald</name>
<role>Mike</role>
<type>Actor</type>
<tmdbid>4443</tmdbid>
<tvdbid>296566</tvdbid>
</actor>
<actor>
<name>John Carroll Lynch</name>
<role>Moving Man</role>
<type>Actor</type>
<tmdbid>3911</tmdbid>
<tvdbid>279111</tvdbid>
</actor>
<actor>
<name>Steve Cochran</name>
<role>Weatherman</role>
<type>Actor</type>
<tmdbid>1994261</tmdbid>
<tvdbid>9096821</tvdbid>
</actor>
<actor>
<name>Joe Howard</name>
<role>Pharmacist</role>
<type>Actor</type>
<tmdbid>82581</tmdbid>
<tvdbid>252430</tvdbid>
</actor>
<actor>
<name>Isabell O'Connor</name>
<role>Nurse</role>
<type>Actor</type>
<tmdbid>94627</tmdbid>
<tvdbid>333953</tvdbid>
</actor>
<actor>
<name>Charles Brin</name>
<role>Fisherman</role>
<type>Actor</type>
<tmdbid>1994264</tmdbid>
</actor>
<actor>
<name>Oliver Osterberg</name>
<role>Fisherman</role>
<type>Actor</type>
<tmdbid>1574263</tmdbid>
</actor>
<director tmdbid="18281" tvdbid="258047">Donald Petrie</director>
<trailer>plugin://plugin.video.youtube/?action=play_video&videoid=2A-SOVQvPyg</trailer>
<trailer>plugin://plugin.video.youtube/?action=play_video&videoid=i_WM-YknHaU</trailer>
<trailer>plugin://plugin.video.youtube/?action=play_video&videoid=64MH2i5gr_I</trailer>
<rating>7</rating>
<year>1993</year>
<sorttitle>Grumpy Old Men</sorttitle>
<mpaa>PG-13</mpaa>
<imdbid>tt0107050</imdbid>
<tvdbid>4342</tvdbid>
<tmdbid>11520</tmdbid>
<premiered>1993-12-25</premiered>
<releasedate>1993-12-25</releasedate>
<criticrating>64</criticrating>
<runtime>103</runtime>
<tagline>The best of enemies until something came between them.</tagline>
<country>United States of America</country>
<genre>Comedy</genre>
<studio>John Davis</studio>
<studio>Lancaster Gate</studio>
<studio>Warner Bros. Pictures</studio>
<uniqueid type="tmdb">11520</uniqueid>
<uniqueid type="imdb">tt0107050</uniqueid>
<uniqueid type="tvdb">4342</uniqueid>
<id>tt0107050</id>
<fileinfo>
<streamdetails>
<video>
<codec>h264</codec>
<micodec>h264</micodec>
<bitrate>4498696</bitrate>
<width>1920</width>
<height>1080</height>
<aspect>16:9</aspect>
<aspectratio>16:9</aspectratio>
<framerate>23.976025</framerate>
<language>und</language>
<scantype>progressive</scantype>
<default>True</default>
<forced>False</forced>
<duration>103</duration>
<durationinseconds>6208</durationinseconds>
</video>
<audio>
<codec>aac</codec>
<micodec>aac</micodec>
<bitrate>160104</bitrate>
<language>eng</language>
<scantype>progressive</scantype>
<channels>2</channels>
<samplingrate>48000</samplingrate>
<default>True</default>
<forced>False</forced>
</audio>
<embeddedimage>
<codec>mjpeg</codec>
<micodec>mjpeg</micodec>
<width>151</width>
<height>227</height>
<aspect>151:227</aspect>
<aspectratio>151:227</aspectratio>
<framerate>90000</framerate>
<scantype>progressive</scantype>
<default>False</default>
<forced>False</forced>
</embeddedimage>
</streamdetails>
</fileinfo>
</movie>
As for the Linux version, it's UnRAID with kernel 5.19.17-UNRAID from UNAME command.
Let me know if you have more questions. I'll look into the FIND command, but this is something which can cause havoc if I do it wrong. That's why I need some help.
Thanks again...