Tag: command-line
Posts of Tag: command-line
  1. How to Parse Command Line Arguments in Bash

    Introduction Bash scripts take in command-line arguments as inputs both sequentially and also, parsed as options. The command-line utilities use these arguments to conditionally trigger functions in a Bash scri...Learn More
    LinuxUnixbashcommand-line
  2. How to Concatenate String Variables in Bash

    How to Concatenate String Variables in Bash Introduction Bash utilities make so many tasks simple, but not all tasks have a straightforward command or operator. A very common and usual task in many scripting sc...Learn More
    StringLinuxUnixVariablesbashcommand-line
  3. Command Line Arguments in Java - Accessing and Mapping to Data Types

    Command Line Arguments in Java - Accessing and Mapping to Data Types Introduction Command line arguments (parameters) are strings of text used to pass additional information to a program when an application is ...Learn More
    Javacommand-line
  4. Generating Command-Line Interfaces (CLI) with Fire in Python

    Generating Command-Line Interfaces (CLI) with Fire in Python Introduction A Command-line interface (CLI) is a way to interact with computers using textual commands. A lot of tools that don't require GUIs are wr...Learn More
    Pythoncommand-line
  5. How to Use the grep Command on GNU/Linux

    How to Use the grep Command on GNU/Linux Introduction Grep is a powerful, yet very simple tool. By default, it searches through an input and prints a single or multiple lines that contain text matched to a patt...Learn More
    LinuxUnixcommand-line
  6. How to Write a Makefile - Automating Python Setup, Compilation, and Testing

    How to Write a Makefile - Automating Python Setup, Compilation, and Testing Introduction When you want to run a project that has multiple sources, resources, etc., you need to make sure that all of the code is ...Learn More
    Pythontoolcommand-linecomputer science
  7. How to make a python, command-line program autocomplete arbitrary things NOT interpreter

    I am aware of how to setup autocompletion of python objects in the python interpreter (on unix). Google shows many hits for explanations on how to do this. Unfortunately, there are so many references to tha...Learn More
    PythonLinuxUnixcommand-lineAutocomplete
  8. Would Python make a good substitute for the Windows command-line/batch scripts?

    I've got some experience with Bash, which I don't mind, but now that I'm doing a lot of Windows development I'm needing to do basic stuff/write basic scripts using the Windows command-line language. For some r...Learn More
    Pythoncommand-lineScripting
  9. How can I hide the console window in a PyQt app running on Windows?

    Surely this is possible? I have been hunting through PyQt tutorials and documentation but cannot find the answer to it. Probably I just need to phrase my search query differently. [Edit] Thanks PEZ for the an...Learn More
    PythonWindowscommand-linepyqt
  10. Communicating with a Python service

    Problem: I have a python script that I have running as a service. It's a subclass of the win32 class win32serviceutil.ServiceFramework. I want a simple straightforward way of sending arbitrary commands to it...Learn More
    Pythoncommand-lineServicewinapi
  11. Handling exceptions without try block in Python's interactive shell

    See the title of this question. I want to play with the exception raised in the last command. _ didn't help me. Is there anything like that?...Learn More
    Pythoncommand-lineexception-handlinginteractive-mode
  12. What's the best way to distribute python command-line tools?

    My current setup.py script works okay, but it installs tvnamer.py (the tool) as "tvnamer.py" into site-packages or somewhere similar.. Can I make setup.py install tvnamer.py as tvnamer, and/or is there a bette...Learn More
    Pythoncommand-linePackaging