#bash

  1. tinfoil-hat

    Solved Replicate Kali Linux (Bash) PS1 to other distro

    Hi there, I'd like to have Kali Linux PS1 on my LMDE, but I don't know which part of bashrc I should copy over to my bashrc to make it look like this For reference, here is Kalis .bashrc # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files...
  2. J

    Spacing in linux bash script

    I have an issue whenever I run this script. It gets the right wordcount of the file but whenever I run it in the terminal it has unwanted spacing #!/bin/bash char=$(cat $1 | wc -c) echo "This file has $char characters in it." nolines=$(cat $1 | tr -d "\n" | wc -c) echo "This file has $nolines...
Top