<?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: script skill in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959711#M77062</link>
    <description>Usually, the fist line in the script gives the app that it is used for.  &lt;BR /&gt;#! /bin/ksh &lt;BR /&gt;Says use the k shell.&lt;BR /&gt;-Although, you don't necessarily need that, you can tell it to run with whatever interepreter you want by prefixing your script with the interepreter...&lt;BR /&gt;/bin/ksh script&lt;BR /&gt;&lt;BR /&gt;-If you do include the interpreter in the top line (yes, it looks like a comment), you will need to change the script to be executable.  &lt;BR /&gt;chmod + x script&lt;BR /&gt;(+x means add execuateble for all)&lt;BR /&gt;&lt;BR /&gt;-Other answers given were fine.</description>
    <pubDate>Mon, 28 Apr 2003 13:11:08 GMT</pubDate>
    <dc:creator>Andrew Allen_1</dc:creator>
    <dc:date>2003-04-28T13:11:08Z</dc:date>
    <item>
      <title>script skill</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959708#M77059</link>
      <description>1. how check the file extension in the script?&lt;BR /&gt;&lt;BR /&gt;2. what is basename used for?&lt;BR /&gt;&lt;BR /&gt;3. where is ".profile" place usually?</description>
      <pubDate>Fri, 25 Apr 2003 17:48:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959708#M77059</guid>
      <dc:creator>neocosmic</dc:creator>
      <dc:date>2003-04-25T17:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: script skill</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959709#M77060</link>
      <description>&lt;BR /&gt; Hi,&lt;BR /&gt;&lt;BR /&gt; 1- Usually in Linux/UNIX we don't sepcify a file extension. The script is immediately saved with no extension. use ls -l for more details.&lt;BR /&gt;&lt;BR /&gt; 2- No info.&lt;BR /&gt;&lt;BR /&gt; 3- Under the home directory, example: /home/admin/.profile</description>
      <pubDate>Fri, 25 Apr 2003 19:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959709#M77060</guid>
      <dc:creator>Khalid A. Al-Tayaran</dc:creator>
      <dc:date>2003-04-25T19:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: script skill</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959710#M77061</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;1. If you are wondering if a variable containing a filename has an extension, here is one way to possibly get it using parameter expansion:&lt;BR /&gt;&lt;BR /&gt;f=myfile.txt&lt;BR /&gt;b=${f##*.}&lt;BR /&gt;echo $b&lt;BR /&gt;&lt;BR /&gt;txt&lt;BR /&gt;&lt;BR /&gt;2. The basename function will take a filename with a path as an argument and will return the filename with all the directory path removed, something like this:&lt;BR /&gt;&lt;BR /&gt;$ basename /somebig/dir/myfile.txt&lt;BR /&gt;myfile.txt&lt;BR /&gt;&lt;BR /&gt;3. In your home directory.&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Apr 2003 20:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959710#M77061</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2003-04-25T20:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: script skill</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959711#M77062</link>
      <description>Usually, the fist line in the script gives the app that it is used for.  &lt;BR /&gt;#! /bin/ksh &lt;BR /&gt;Says use the k shell.&lt;BR /&gt;-Although, you don't necessarily need that, you can tell it to run with whatever interepreter you want by prefixing your script with the interepreter...&lt;BR /&gt;/bin/ksh script&lt;BR /&gt;&lt;BR /&gt;-If you do include the interpreter in the top line (yes, it looks like a comment), you will need to change the script to be executable.  &lt;BR /&gt;chmod + x script&lt;BR /&gt;(+x means add execuateble for all)&lt;BR /&gt;&lt;BR /&gt;-Other answers given were fine.</description>
      <pubDate>Mon, 28 Apr 2003 13:11:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959711#M77062</guid>
      <dc:creator>Andrew Allen_1</dc:creator>
      <dc:date>2003-04-28T13:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: script skill</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959712#M77063</link>
      <description>I think you may be trying answers out for a list of questions ??? :).&lt;BR /&gt;Your questions were answered, but please spend time to provide points to the people who took some of their time to answer you back.  This will encourage all to respond to you back in a good way.&lt;BR /&gt;&lt;BR /&gt;&lt;THIS member="" has="" assigned="" points="" to="" 0="" of="" 28="" responses="" to="" his=""&gt;&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Umapathy&lt;BR /&gt;&lt;/THIS&gt;</description>
      <pubDate>Mon, 28 Apr 2003 13:31:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-skill/m-p/2959712#M77063</guid>
      <dc:creator>Umapathy S</dc:creator>
      <dc:date>2003-04-28T13:31:03Z</dc:date>
    </item>
  </channel>
</rss>

