Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

function

Function to simplify grep with an often used log

by IT Nursery

Function to simplify grep with an often used log

Tags cat, function, grep, pipe

overwrite and reuse existing function in zsh

by IT Nursery

overwrite and reuse existing function in zsh

Tags function, zsh

How to run a function in background?

by IT Nursery

You run them in the background as in any other shell command or script with a & at the end. Bash and similar … Read more

Tags function

What’s the idiomatic way of returning an array in a zsh function?

by IT Nursery

The idiomatic way is to just use the reply array. If you want, you can use the (P) flag and return in an … Read more

Tags array, function, zsh

How to determine callee function name in a script

by IT Nursery

In bash, you can use ${FUNCNAME[0]}.

Tags bash, function, shell-script

Defining bash function dynamically using eval

by IT Nursery

Escaping $ should be enough to make this work: eval “parent_function() { echo \$(delegate_function); }”

Tags bash, function, shell-script

How to create a function that can sort an array in bash?

by IT Nursery

[*] Sort the easy way with sort, tr: arr=($(for i in {0..9}; do echo $((RANDOM%100)); done)) echo ${arr[*]}| tr ” ” “\n” | … Read more

Tags bash, function

How can I colorize head, tail and less, same as I’ve done with cat?

by IT Nursery

How can I colorize head, tail and less, same as I’ve done with cat?

Tags colors, function, head, tail

BASH return to main function

by IT Nursery

BASH return to main function

Tags bash, function, shell-script

Elegant way to prevent command substitution from removing trailing newline

by IT Nursery

You can have your function output the escaped escape codes, so that when it is expanded it turns into the newline. $ function … Read more

Tags command-substitution, function, newlines, prompt, zsh
Post navigation
Older posts
Page1 Page2 … Page22 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery