<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to tar all files ending in .dat and one file ending in .dmp? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985372#M123200</link>
    <description>I got it! Thanks guys!</description>
    <pubDate>Fri, 30 May 2003 17:53:50 GMT</pubDate>
    <dc:creator>denise_7</dc:creator>
    <dc:date>2003-05-30T17:53:50Z</dc:date>
    <item>
      <title>how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985366#M123194</link>
      <description>I want to tar a whole directory of files that end in .dat and one file that ends in .dmp. How do I do set up the tar command? Also, I want to list tape and print out contents of tape. My problem is I am used to tar a whole directory.&lt;BR /&gt;Thanks for the help.</description>
      <pubDate>Fri, 30 May 2003 15:12:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985366#M123194</guid>
      <dc:creator>denise_7</dc:creator>
      <dc:date>2003-05-30T15:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985367#M123195</link>
      <description>One of the easiest ways to do this is to put all your filenames into a text file.  Then the command "tar cvf /tmp/tarfile `cat $FILE`" will create a tarball with all your files.&lt;BR /&gt;&lt;BR /&gt;Also you can list all your files from the prompt: "tar cvf /tmp/tarfile *.dat FILE.dmp".&lt;BR /&gt;&lt;BR /&gt;Confirm this with "tar tvf /tmp/tarfile"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Fri, 30 May 2003 15:20:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985367#M123195</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-05-30T15:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985368#M123196</link>
      <description>Hi,&lt;BR /&gt;assuming your directory is /YOURDIR andyour tape device /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;To save all the contents of your directory&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/0m /YOURDIR&lt;BR /&gt;&lt;BR /&gt;To save just *.dmp and *.dat file in your dir&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/0m /YOURDIR/*.dmp /YOURDIR/*.dat &lt;BR /&gt;&lt;BR /&gt;this will propmt each file to stdout.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if you want to redirect output also to an inventory file&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/0m /YOURDIR&lt;BR /&gt; | tee -a /tmp/inventory.log&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt; Massimo&lt;BR /&gt;</description>
      <pubDate>Fri, 30 May 2003 15:23:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985368#M123196</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-05-30T15:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985369#M123197</link>
      <description>If all the files you want are in the same directory:&lt;BR /&gt;&lt;BR /&gt;tar cvf /tmp/newfile.dmp *.dat&lt;BR /&gt;&lt;BR /&gt;To read the contents of the tape, assuming drive 0:&lt;BR /&gt;&lt;BR /&gt;tar tvf /dev/rmt/0m&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark</description>
      <pubDate>Fri, 30 May 2003 15:23:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985369#M123197</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-05-30T15:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985370#M123198</link>
      <description>I created a tar file of the files I wanted. But the files were not redirected to a log file as this command should:&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/0m /mydir | tee -a /tmp/inventory.log&lt;BR /&gt;&lt;BR /&gt;I see nothing in the inventory.log. So I went ahead and did this&lt;BR /&gt;&lt;BR /&gt;tar tvf /dev/rmt/0m | tee -a /tmp/inventory.log&lt;BR /&gt;&lt;BR /&gt;My question: Should the inventory.log show the size increase when I to a ps -ef | grep inventory.log?&lt;BR /&gt;&lt;BR /&gt;The tar tvf seems to do nothing and it is not piping the output to the inventory.log file. What is the problem here?&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 30 May 2003 16:45:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985370#M123198</guid>
      <dc:creator>denise_7</dc:creator>
      <dc:date>2003-05-30T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985371#M123199</link>
      <description>Mostly the problem is with the inventory.log already there.  Try to rm the inventory.log and do it again.  &lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;Umapathy</description>
      <pubDate>Fri, 30 May 2003 17:51:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985371#M123199</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-05-30T17:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985372#M123200</link>
      <description>I got it! Thanks guys!</description>
      <pubDate>Fri, 30 May 2003 17:53:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985372#M123200</guid>
      <dc:creator>denise_7</dc:creator>
      <dc:date>2003-05-30T17:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to tar all files ending in .dat and one file ending in .dmp?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985373#M123201</link>
      <description>Hi Denise,&lt;BR /&gt;&lt;BR /&gt;one more tipp for working with tar:&lt;BR /&gt;Most times it is better to work with relative pathes than with absolute.&lt;BR /&gt;So ./YOURDIR is better for extracting the files later because then the directory 'YOURDIR' and the files are created relative to your current directory.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Volkmar</description>
      <pubDate>Mon, 02 Jun 2003 13:39:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-tar-all-files-ending-in-dat-and-one-file-ending-in-dmp/m-p/2985373#M123201</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2003-06-02T13:39:58Z</dc:date>
    </item>
  </channel>
</rss>

