[TriLUG] Single line scripts

Ron Kelley via TriLUG trilug at trilug.org
Mon Sep 5 15:49:04 EDT 2016


If you are logged into a shell already, you can simply type “/bin/bash <text_file_name>”.




On Sep 5, 2016, at 3:34 PM, Grawburg via TriLUG <trilug at trilug.org> wrote:

I have long commands I enter in a terminal, such as starting connecting to a Raspberry Pi located several floors away with ssh, or
setting up a connection to my NAS (rather than having a line in /etc/fstab).
I can simply have a text file saved and do a copy and paste into terminal each time I need it, but I'd like to turn it into a what I
would have called a .bat file decades ago.  
Is this something I should learn to to do in bash? I don't need multiple lines, there is no extra coding, just a single line.


Thanks,
Brian Grawburg

-- 
[This was sent from a PC running Debian 7, 64-bit Linux. No Microsoft products were used.]




-- 
This message was sent to: Ron Kelley <rkelleyrtp at gmail.com>
To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
Unsubscribe or edit options on the web	: http://www.trilug.org/mailman/options/trilug/rkelleyrtp%40gmail.com
Welcome to TriLUG: http://trilug.org/welcome



More information about the TriLUG mailing list