bash
Shell script works in bash but not in ksh
I need to write a script to test if the command blablabla exists in the classpath. So I wrote the following code:[详细]
2023-04-11 05:07 分类:问答Command substitution within sed expression
I\'m having little problem with bash/sed. I need to be able to use command substitution within sed expression. I have two big text files:[详细]
2023-04-11 04:36 分类:问答Redirection operator is limiting columns
I am running the following command to list the packages installed on a server. $> dpkg -l This is fine but when I do this[详细]
2023-04-11 04:27 分类:问答How do you use getopts?
what is the easiest, most straight forward, way to use getopts in bash script. if i have a script called: myscript and it CAN take the the arguments: -p -r -s -x[详细]
2023-04-11 04:23 分类:问答bash script for analyzin file on runtime
I want to do a bash script for analyzing a log file for errors. I was looking an efficient way 开发者_开发百科for getting the information as soon as they are written.[详细]
2023-04-11 04:04 分类:问答BASH - Join on non-first column
I am trying to join 2 files together - both files are in CSV format - both files have the samecolumns. Here is an example of each file :[详细]
2023-04-11 03:26 分类:问答Check if IP in array with Bash
I am trying to write a bash script which will take the output of who, parse it with awk pulling the IP address and then checking it against an array of IP addresses...sounds simple but they script I h[详细]
2023-04-11 03:05 分类:问答sed substitution with Bash variables
I am trying to change the values in a text file using sed in a Bash script with the line, sed \'s/draw($prev_number;n_)/draw($number;n_)/g\' file.txt > tmp[详细]
2023-04-11 01:53 分类:问答Get cURL response in bash
I开发者_运维知识库 have a simple bash script that uploads files to an FTP. I was wondering how to get a response from curl that I can record (error or success)?[详细]
2023-04-11 01:17 分类:问答How to find a pattern and surrounding content in a very large SINGLE line file?
I have a very large file 100Mb+ where all the content is on one line. I wish to find a pattern in that 开发者_JAVA技巧file and a number of characters around that pattern.[详细]
2023-04-10 23:48 分类:问答