bashrc lazy substitution
How does one get ~/.bashrc aliases to evaluate $() substitutions at run time, instead of at the time that ~/.bashrc is executed (when opening a terminal)?
How does one get ~/.bashrc aliases to evaluate $() substitutions at run time, instead of at the time that ~/.bashrc is executed (when opening a terminal)?
I have two files
in file A, there are sequence_numbers
in the other file B, there are many columns, and the first column is sequnce numbers,
I want to get a files with all the lines in the B with the sequence numbers which are in the A
how can I achieve this?
thanks
I am learning the shell commands and came across the short tags eg.[0-9],[[:digit:]] etc.. As a proof of concept i tried deleting all the files with the rm command(i know its not a good practise but i am trying to understand how things work),like this
I want to run time command to measure time of several commands.
I have a script looks like:
I’m sure this is posted somewhere, but I haven’t been able to find it.
Am doing some work on a remote CentOS 5.6 machine and my network keeps dropping.
Is there a way that I can recover my hung sessions after I reconnect?
How do I convert an epoch timestamp to a human readable format on the cli? I think there’s a way to do it with date but the syntax eludes me (other ways welcome).
I have tried all sorts of ways to redirect both stdout and stderr to /dev/null without any success. I have almost my entire life run bash which I’ve never had this issue with, but for once in BSD I’m stuck with /bin/sh.