<?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: ksh alias with argument in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687878#M932302</link>
    <description>alias test='set +u;mv $1 /daten/bx/ABC.drw/ABC1001.drw  ; set -u'&lt;BR /&gt;&lt;BR /&gt;After this use the following to move filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;test filename&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Federico</description>
    <pubDate>Thu, 21 Mar 2002 10:20:49 GMT</pubDate>
    <dc:creator>federico_3</dc:creator>
    <dc:date>2002-03-21T10:20:49Z</dc:date>
    <item>
      <title>ksh alias with argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687876#M932300</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;i try to reduce typing by setting up an alias. The problem is that i don't know how to use an argument in an alias.&lt;BR /&gt;&lt;BR /&gt;E.g. i try to replace the command:&lt;BR /&gt;&lt;BR /&gt;mv filename  /daten/bx/ABC.drw/ABC1001.drw&lt;BR /&gt;&lt;BR /&gt;with an alias like&lt;BR /&gt;&lt;BR /&gt;bxABC1001 filename&lt;BR /&gt;&lt;BR /&gt;the alias would look something like:&lt;BR /&gt;&lt;BR /&gt;alias bxABC1001='mv xxx /daten/bx/ABC.drw/ABC1001.drw'&lt;BR /&gt;&lt;BR /&gt;Where xxx should be substituted with the argument.&lt;BR /&gt;&lt;BR /&gt;Any hints? Any documents who describe alias better than the man pages?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;Stefan</description>
      <pubDate>Thu, 21 Mar 2002 09:55:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687876#M932300</guid>
      <dc:creator>Stefan Schulz</dc:creator>
      <dc:date>2002-03-21T09:55:35Z</dc:date>
    </item>
    <item>
      <title>Re: ksh alias with argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687877#M932301</link>
      <description>Hi,&lt;BR /&gt;In my opinion that is not possible (at least not in the way you want it). The following thread covers this issue :&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x996e7e990647d4118fee0090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x996e7e990647d4118fee0090279cd0f9,00.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Tom Geudens</description>
      <pubDate>Thu, 21 Mar 2002 10:13:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687877#M932301</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2002-03-21T10:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: ksh alias with argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687878#M932302</link>
      <description>alias test='set +u;mv $1 /daten/bx/ABC.drw/ABC1001.drw  ; set -u'&lt;BR /&gt;&lt;BR /&gt;After this use the following to move filename&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;test filename&lt;BR /&gt;&lt;BR /&gt;Ciao&lt;BR /&gt;Federico</description>
      <pubDate>Thu, 21 Mar 2002 10:20:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687878#M932302</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2002-03-21T10:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: ksh alias with argument</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687879#M932303</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Frederico:&lt;BR /&gt;&lt;BR /&gt;don't use "test" as name for an alias for the move- command, test is also a command!!&lt;BR /&gt;&lt;BR /&gt;Stefan:&lt;BR /&gt;&lt;BR /&gt;hi Stefan,&lt;BR /&gt;&lt;BR /&gt;i would prefer to make a function for this, you can put this function into a file with the same name as the function and use it as often as you want:&lt;BR /&gt;&lt;BR /&gt;function mover&lt;BR /&gt;{&lt;BR /&gt;mv $* /your/desired/target/directory&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;This function can be used the following way:&lt;BR /&gt;&lt;BR /&gt;mover file1 file2 file3 file4 .....&lt;BR /&gt;&lt;BR /&gt;Remember, how to create the function:&lt;BR /&gt;&lt;BR /&gt;vi mover (*must* be the same name than function)&lt;BR /&gt;put the line : mover $* under the function. As root, make sure, that the directory of the function is part of your PATH!&lt;BR /&gt;PATH=$PATH:/path_to_your_function&lt;BR /&gt;&lt;BR /&gt;This will do it for you!!&lt;BR /&gt;&lt;BR /&gt;Allways stay on the bright side of life!&lt;BR /&gt;&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 21 Mar 2002 10:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ksh-alias-with-argument/m-p/2687879#M932303</guid>
      <dc:creator>Peter Kloetgen</dc:creator>
      <dc:date>2002-03-21T10:42:08Z</dc:date>
    </item>
  </channel>
</rss>

