Related
d3pd I need to type a UTC timestamp (like "2017-01-25T1422Z") very regularly, so I set it as a shortcut key in Ubuntu ( Ctrl+ Shift+ d) . Specifically, the custom shortcut keys are set to the following commands: bash /home/user/scripts/type_time_UTC.sh
The sc
newbie My sourcecommand in CShell looks like this: source /directory/of/script/script.csh
Between script.cshexecution and my password awaits confirmation of identity. I'm tired of having to enter my password every time source. So since my password is constant
newbie My sourcecommand in CShell looks like this: source /directory/of/script/script.csh
Between script.cshexecution and my password awaits confirmation of identity. I'm tired of having to enter my password every time source. So since my password is constant
Dave I am using bash shell. I'm writing a script and would like to capture a variable number of arguments passed to the script after #5 (including argument #5). So far I have this... #!/bin/bash
…
declare -a attachments
attachments=( "$5" )
But I don't know h
Elmer I have a shell script that takes a parameter and uses that parameter in a script. So to run the script I type/path/to/script argument The problem is when trying to set the file to run with the atutility . I tried at -f /path/to/script argument 17:45 at -
Elmer I have a shell script that takes a parameter and uses that parameter in a script. So to run the script I type/path/to/script argument The problem is when trying to set the file to run with the atutility . I tried at -f /path/to/script argument 17:45 at -
SMEs The following question is a variation of my question: Bash: Correctly read quoted/escaped arguments from strings I want to write a bash script of the following type (eg "something.sh")... #!/bin/bash
python $*
...it passes all command line arguments dir
master: I have a variable which comes from somewhere: VAR1='hhgfhfghhgf"";2Ddgfsaj!!!$#^$\'&%*%~*)_)(_{}||\\/'
Now I have a command like this ./myscript.sh '$VAR1'
I got $VAR1 from some comparisons and when I display it it looks exactly like above. Now the c
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Coder: Is there any way in Bash to recall the arguments of the previous command? I usually vi file.cfollow gcc file.c. Is there any way in Bash to recall the arguments of the previous command? coding: You can use $_or !$call the last parameter of the previous
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Joseph John I'm using Subliminal (a tool for finding subtitles for any given media file) to get subtitles for a series of TV series, and right now, I'm doing it manually for each single episode. This is a tedious process. Instead, I want to automate it using B
master: I have a variable which comes from somewhere: VAR1='hhgfhfghhgf"";2Ddgfsaj!!!$#^$\'&%*%~*)_)(_{}||\\/'
Now I have a command like this ./myscript.sh '$VAR1'
I got $VAR1 from some comparisons and when I display it it looks exactly like above. Now the c
Coder: Is there any way in Bash to recall the arguments of the previous command? I usually vi file.cfollow gcc file.c. Is there any way in Bash to recall the arguments of the previous command? coding: You can use $_or !$call the last parameter of the previous
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the dockercommand to use when I execute the command docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "tabl
Archimedes Trajan I would like to override the command dockerto use when I execute it docker psor render it docker service ls exactly in the desired format. I start with this docker() {
if [ "$*" == 'ps' ]
then
command docker ps --format "table {{.Name
Joseph John I'm using Subliminal (a tool for finding subtitles for any given media file) to get subtitles for a series of TV series, and right now, I'm doing it manually for each single episode. This is a tedious process. Instead, I want to automate it using B
Rohan Hasabnis rpm -qf /etc/redhat-releaseI want to output "hello" when typing . Otherwise, the rpm should work fine. Jeff Schaller Doesn't seem to be of much use, but a function can be used for the purpose: rpm() {
if [ "$1" = "-qf" ] && [ "$2" = "/etc/redh
Yuan Wen : I am calling a script by sourcecommand and want to pass arguments to the script. I've checked man sourceand bash returns: :[parameter] has no effect; the command does nothing but expand the parameter and perform any specified redirection. Returns a
Yuan Wen : I am calling a script by sourcecommand and want to pass arguments to the script. I've checked man sourceand bash returns: :[parameter] has no effect; the command does nothing but expand the parameter and perform any specified redirection. Returns a
Hendre I want to execute a Java command: java -jar cli.jar <arg> <arg>from inside a PowerShell script. How do I pass command line arguments passed to a PowerShell script to a Java command inside the script? clumsy puffin If you want to pass command line argume