Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
86 user(s) are online (56 user(s) are browsing Forums)

Members: 2
Guests: 84

jarokuczi, orgin, more...

Headlines

 
  Register To Post  

Escape code for % in shell
Quite a regular
Quite a regular


See User information
Hello,

Is there an escape code for the % symbol in the shell?

You see I am having problems with Hollywood, %p and %s seem to be reserved words as they output something else I don't want. And I cannot seem to get this behavouir.

So as a last resort is there an escape code the % symbol?

The command line I am trying to launch is this:

list p=install.py all lformat %p%s

Which will list only the path and filename of matches and nothing else.

Of course I wish to this issue this from a hollywood program, but I cannot output %p or %s.

I would wait for a reply on the Hollywood forums if had the patient, but waiting there is like watching paint dry! :(

Go to top
Re: Escape code for % in shell
Not too shy to talk
Not too shy to talk


See User information

%% should give you a percent sign.

BTW, %p%s is a mixture of "old" and "new" style. %s is WB 1.3 style which alternates between path and file name (i.e. use %s%s to get path and file name). You should use %p%n to get path and file name. These exist since WB 2.0.


Go to top
Re: Escape code for % in shell
Quite a regular
Quite a regular


See User information
That gives a result with a percentage sign at the front so that cannot be an escape sequence.

Go to top
Re: Escape code for % in shell
Quite a regular
Quite a regular


See User information
Never mind, I've found system/find will fulfil my needs just as well.

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project