Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9119759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:28:19+00:00 2026-06-17T05:28:19+00:00

Can you bit help me to understand how the below options work in real

  • 0

Can you bit help me to understand how the below options work in real life?

  • -T [level]
  • -K [kcode]
  • -F pat
  • -i [ext]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:28:21+00:00Added an answer on June 17, 2026 at 5:28 am

    I found the following resource, which may help you, and I’ll just rip the quotes from the page to answer your question, after taking a real quick crack at a summary of your question.

    The -T option is related to the security level of your Ruby script, while the
    -k, refers to the character code set used. The -F is used for pattern matching, and finally, the -i is used to edit arguments to your code. I will now quote the relevant parts to give you a bit more information:

    -T[level}
    Sets the safe level, which among other things enables tainting checks ..
    This is basically a security level with a few options, see this

    0    No checking of the use of externally supplied (tainted) data is performed. This
         is Ruby's default mode.
    >= 1 Ruby disallows the use of tainted data by potentially dangerous operations.
    >= 2 Ruby prohibits the loading of program files from globally writable locations.
    >= 3 All newly created objects are considered tainted.
    >= 4 Ruby effectively partitions the running program in two. Nontainted objects may not 
         be modified. Typically, this will be used to create a sandbox: the program sets up 
         an environment using a lower$SAFE level, then resets $SAFE to 4 to prevent 
         subsequent changes to that environment.
    

    -K kcode
    Specifies the code set to be used. This option is useful mainly when Ruby is used for
    Japanese-language processing. kcode may be one of: e, E for EUC; s, S for SJIS; u, U for
    UTF-8; or a, A, n, N for ASCII.

    -F pattern
    Specifies the input field separator ($;) used as the default for split() (affects -a).

    -i [extension}
    Edits ARGV files in place. For each file named in ARGV, anything you write to standard
    output will be saved back as the contents of that file. A backup copy of the file will
    be made if extension is supplied.

    Hope that helps a bit. CHEERS!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I clearly still don't understand plyr syntax, as illustrated below. Can someone help me
I can use some help to understand jQuery and jQuery UI dialog a bit
Can someone explain help me understand how the this bit of code works? Particularly
can anyone help me write a linq query, its a bit confusing... Basically i
I was wondering if someone can help me out - working on a bit
Been looking around a bit and I can't seem to find any help on
I'm a bit boggled by something, I hope the CLR gearheads can help. Apparently
Can someone please help me understand the following: In the previous version of NHibernate
It would help me understand LINQ a little bit better that's all. I tried
Can 32 bit native DLL be loaded from 64 bit JRE? If not what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.