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

    3545 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

    3545 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

    3159 days ago

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

    2539 days ago

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

    2466 days ago

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

    2110 days ago

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

    2009 days ago

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

    1927 days ago

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

    1927 days ago

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

    1927 days ago