Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged BASH

0 votes
732 views
1 answer
    Is there any way how I can run two Db2 commands from a command line? (They will be called from a PHP exec ... php user gives me correct output. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
617 views
1 answer
    We're just starting a UNIX class and are learning a variety of Bash commands. Our assignment involves performing ... still getting used to it! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
992 views
1 answer
    I am new to the docker world. I have to invoke a shell script that takes command line arguments ... arguments while running the container See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
766 views
1 answer
    Is there a way to get find to execute a function I define in the shell? For example: dosomething () { echo ... find's -exec to see dosomething? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
597 views
1 answer
    First off I'm using Mac. Next, I need to execute this "file.sh" we will call it. Everytime I need to execute ... , I'm new to Terminal. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
778 views
1 answer
    I have a folder with a series of files named: prefix_1234_567.png prefix_abcd_efg.png I'd like to batch remove ... files in OS X Terminal See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I was helped out today with a command, but it doesn't seem to be working. This is the command: find /home/ ... . I appreciate any help on this. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
644 views
1 answer
    In a Bash script, I want to pick out N random lines from input file and output to another file. How can this be done? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
713 views
1 answer
    Suppose I have the string 1:2:3:4:5 and I want to get its last field (5 in this case). How do I do ... how to specify the last field with -f. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    This is a simple script just to see if the file has been downloaded. On this script the find command ... CSV + echo successful successful ~ See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
590 views
1 answer
    I've got my script working almost. The goal of this is to take defined values from a file and ... ,UPDATE TARGET_USER TESTUSER TARGET_TABLE ABC See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
812 views
1 answer
    I have a cron issue with curl: curl -w "%{time_total} " -o /dev/null -s http://myurl.com >> ~/log works ... http://myurl.com >> ~/log works. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
552 views
1 answer
    Why does this option only work the first time it's used, then ignored every other time? It's like it's being ... o true $ testopts -o o false See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
552 views
1 answer
    I want to add this command grep -co '5' $INFILE in a bash script. The problem is that instead of 5 i ... meaning of the value of a variable? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
904 views
1 answer
    I have written the following code: #!/bin/bash #Simple array array=(1 2 3 4 5) echo ${array[*]} And I ... . My Ubuntu version is: Ubuntu 14.04 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
554 views
1 answer
    In my bash script I have two variables CONFIG_OPTION and CONFIG_VALUE which contain string VENDOR_NAME and Default_Vendor ... not found' Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
625 views
1 answer
    Is it possible to get commit logs/messages of a remote git repo without git clone? The git repo I am working ... Anyone know how to do that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.7k views
1 answer
    I have windows 10 and I want to execute the sh command in the Jenkinsfile from Jenkins pipeline using bash for ... using windows 10's bash? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
731 views
1 answer
    How can I convert seconds to hours, minutes and seconds? show_time() { ????? } show_time 36 # 00:00:36 ... :26 show_time 91925 # 25:32:05 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
598 views
1 answer
    I am trying to find the pathname with the most characters in it. There might be better ways to do this. ... not make these variables global? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
640 views
1 answer
    With /bin/bash, how would I detect if a user has a specific directory in their $PATH variable? For example if ... Your path is correctly set" fi See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
635 views
1 answer
    I understand the colon operator in bash that acts like a null, and I know it's used in parameter ... a more enlightening explanation though. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
676 views
1 answer
    How do I make sure that all my background processes have finished execution before I exit my script (TCL/Bash). ... specific way to do this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
929 views
1 answer
    I have a json in which I want to modify a particular value but the terminal always displays the json with the ... didn't work. Any suggestions? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
741 views
1 answer
    I just want to understand following line of code in shell. It is used to get the current working directory. ... how this command get executed? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
813 views
1 answer
    I'm writing a shell script, and I'm trying to check if the output of a command contains a certain string. I ... not sure how. Does anyone know? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
745 views
1 answer
    I want my bash script to sleep until a specific time. So, I want a command like "sleep" which takes no ... time. Is there such a command? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I would like to read a file into a script, line by line. Each line in the file is multiple values separated by ... in support in bash for this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...