Results for "Bash"

Wire posts

  • The syntax to remove last character from line or word is as follows: x="foo bar" echo "${x%?}" #Remove #Last #Bash #Linux

    3541 days ago

  • Join the result of ls -1 into one line and delimit it with comma : newStr=$(ls -m *.txt) or mystring=$(printf "%s," *) #Bash #Comma #String #List #ls

    3542 days ago

  • Fork Bomb Bash script for your Linux OS its copies continually replicate themselves, quickly taking up all your CPU time and memory :(){ :|: & };: #Freeze #Bash #Linux #Fork

    3155 days ago

  • A full-featured & carefully designed adaptive prompt for Bash & Zsh https://github.com/nojhan/liquidprompt #Shell #Zsh #Bash

    2535 days ago

  • Print each command before executing? Bash script to print each command before executing. $ bash -x myscript.sh #Print #Command #Bash

    2462 days ago

  • sort -k2 -n genome.fa #Sort #Column2 #Bash

    2106 days ago

  • Bash scripting cheatsheet https://devhints.io/bash #Bash #CheatSheet #Script

    2005 days ago

  • To move between current directories $ popd and pushd #pushd #popd #bash

    1924 days ago

  • ls -a to list all files #bash #list #ls

    1924 days ago

  • Find the file $ locate xgenome or locate fstab #bash #locate

    1924 days ago