Skip to content

support for practical Ruby/Perl-like one-liners #20293

@abhi18av

Description

@abhi18av

Hi @julia-lang team

I've been following the evolution of julia language for a while now and I am trying to incorporate it into my daily work-flow which does involve a lot of one liners lately. The one that I mostly use is the cloud based juliabox

juser@juliabox:~$ julia -v                                                                                                                                   
julia version 0.5.0                                                                                                                                          

So, my question is are there any plans to add the ruby like command line flags as listed below. I know that this might be a low-priority thing but still, julia has a tendency to spoil the user for wanting more 👍

Usage: ruby [switches] [--] [programfile] [arguments]                                                                                                        
  -0[octal]       specify record separator (\0, if no argument)                                                                                              
  -a              autosplit mode with -n or -p (splits $_ into $F)                                                                                           
  -c              check syntax only                                                                                                                          
  -Cdirectory     cd to directory, before executing your script                                                                                     
  -Fpattern       split() pattern for autosplit (-a)                                                                                                         
  -i[extension]   edit ARGV files in place (make backup if extension supplied)                                                                             
  -l              enable line ending processing                                                                                                              
  -n              assume 'while gets(); ... end' loop around your script                                                                                     
  -p              assume loop like -n but print line also like sed                                                                                           
  -rlibrary       require the library, before executing your script                                                                                          
  -s              enable some switch parsing for switches after script name                                                                                  
  -S              look for the script using PATH environment variable                                                                                                                                                       

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions