Welcome to Jonic Developer 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
497 views
0 answers
    Hi all, i have a csv file like this: ecStudentID,StudentNetworkUsername,StudentName,StudentFirstName 100,ASTDTBJ001,"Andrew,Logan Connor",Logan 100, ... . Example: ecStudentID,StudentFirstName 100,Logan 101,Matthew Thank in advance...
asked May 1, 2022 in Technique[技术] by Tan (100 points)
0 votes
557 views
0 answers
    Hi all, i have a csv file like this: ecStudentID,StudentNetworkUsername,StudentName,StudentFirstName 100,ASTDTBJ001,"Andrew,Logan Connor",Logan 100, ... . Example: ecStudentID,StudentFirstName 100,Logan 101,Matthew Thank in advance...
asked May 1, 2022 in Technique[技术] by Tan (100 points)
0 votes
640 views
1 answer
    Something weird is going on when I try to get the nginx version. When I run this command: echo "[nginx]" $(nginx -v) It prints nginx version: ... issue or something funny with the nginx program or what. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
568 views
1 answer
    I have an xml that looks like following. <rootNode> <appender name="SERVER_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="C:/ ... </logger> </rootNode> Can someone help me? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
708 views
1 answer
    I am having troubles with the arithmetic expressions in a bash file (a unix file .sh). I have the variable "total", which consists of a few numbers ... but I couldn't get it to work with variables. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
631 views
1 answer
    There are 2 pieces of code here, and the value in $1 is the name of a file which contains 3 lines of text. Now, I have a problem. In the first piece ... $count2 + 1 ] done echo "$count2 line(s) in all." See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
619 views
1 answer
    I am currently writing a script that will list all specific files in a directory. What I need the script to do is to verify that the directory is accessible. I ... not, and to return an error if it isn't. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
808 views
1 answer
    whenever I try to launch M-x term from my Windows distribution of GNU Emacs, I get the error: apply: Spawning child process: invalid argument after accepting ... use Term to get more features... Any help? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
684 views
1 answer
    For a framework I'm writing I would like to measure how much a piece of (bash) code takes to execute and then print the elapsed time in ... total_elapsed_time variable here to see how I implemented this. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
767 views
1 answer
    How do I pass in bash variables into a jq --arg parameter? All I can get to work is this: FINAL_JSON= #some JSON PAYLOAD=$(echo $FINAL_JSON | ... : error: syntax error, unexpected $end {1 compile error See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
625 views
1 answer
    I need to delete all the rows in a csv file which have more than a certain number of columns. This happens because sometimes the code, which generates the csv ... one, so that I can learn how to use it. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
595 views
1 answer
    I need to read from multiple file in one loop. I have one file with X coords, one file with Y coords and one file with chars on those coords. For ... values in $Y, $X and $CHAR while speeding things up? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
775 views
1 answer
    I'm trying to compare two yml files and removing a block based on some conditions using shell script. I'm using this YML parser, https://gist. ... on this would be greatly helpful and much appreciated. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
702 views
1 answer
    I'm trying to compile an Android application I just created in Kotlin on Android Studio, without using Gradle or any other build tools. My ... /authmane512/android-project-template/blob/master/build.sh See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
645 views
1 answer
    Say we have some arbitrary literals in a file that we need to replace with some other literal. Normally, we'd just reach for sed(1) or awk(1) and code ... I'll leave this here in case it comes in useful. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
613 views
1 answer
    I am trying to understand whether it is possible to read the metadata (Labels, in particular) properties of a container using a bash script. For instance, if ... label inside the bash shell? If so, how? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
665 views
1 answer
    I have a script that I'm trying to run but I just get the error ": command not found" whenever I try to run it. Here's what I've tried to ... am unable to run the script. Any help is much appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
671 views
1 answer
    I have file which is having pattern 's' , I need to convert into 'ms' by multiplying by 1000. I am unable to do it. Please help me. file.txt First ... above pattern 's' to 'ms' if second pattern comes . See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I am using Ubuntu 10.04. i have created a shell script. After writing the script, the code can be edited when right clicking the file and selecting ... to know how to make the script unreadable in Gedit. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
613 views
1 answer
    I need to remove/filter a very large log file i managed to bring the log-file into blocks of text starting with a line containing <-- or --> ending ... to the final version so it get updates by the minute See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
834 views
1 answer
    The java build tool ant provides filter to replace variables by their values Example: A file with properties: db.user.name=user db.driver=com.informix.jdbc ... be achieved with bash and plain unix tools? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
798 views
1 answer
    So the object of the script I'm making is to compare files from two while read lists that have file path names in them... while read compareFile <&3 ... two while read loops... Is this even possible? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
677 views
1 answer
    As far as I know, if you prefix a bash command with variable assignment the variable will take effect immediately. And it will only have effect within that ... what I expected. So why it doesn't work? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
982 views
1 answer
    I used to run cygwin on win8.1, and while giving inputs to a program CTRL-Z used to denote EOF. Today I installed cygwin on win10, and ran "a ... question reading till EOF in java on cygwin on windows-10 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
670 views
1 answer
    I am unable to use JMX exporter to expose kafka metrics. Can you look at my steps and correct me where needed.? I am following steps here to ... enabled correctly. Can you help me with above issues? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
707 views
1 answer
    I saw in some of our scripts that there is a hyphen attached to a shell variable. For example: if [ -z ${X-} ] What does this hyphen symbol ... do here. I cannot find any documentation online for this. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
762 views
1 answer
    I want to ignore all hidden files, but especially .git and .svn ones when searching (and later replacing) files, not I have found that the most basic way to exclude ... -i 's/$1/$2/g' {} ; unset expr } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
975 views
1 answer
    I need to execute series of commands inside an interactive program/utility with parameterized values. Is there a way to loop inside heredoc ? Like below .. ... i in $list ; do utilityCommand $i done EOF See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...