Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Login
Remember
Register
Ask
Q&A
All Activity
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Ask a Question
Categories
All categories
Topic[话题] (13)
Life[生活] (4)
Technique[技术] (2.1m)
Idea[创意] (3)
Jobs[工作] (2)
Others[杂七杂八] (18)
Code Example[编程示例] (0)
Recent questions tagged bash
0
votes
496
views
0
answers
Extract multiple columns with no duplicate data with bash on linux
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)
linux
bash
ubuntu
0
votes
554
views
0
answers
Extract multiple columns with no duplicate data with bash on linux
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)
linux
bash
ubuntu
0
votes
638
views
1
answer
bash - Get nginx version synchronously?
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)
bash
0
votes
565
views
1
answer
bash - Delete nodes in xml if they contain certain text using sed
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)
bash
0
votes
708
views
1
answer
bash arithmetic expressions with variables
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)
bash
0
votes
630
views
1
answer
bash - assign a value to a variable in a loop
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)
bash
0
votes
619
views
1
answer
bash - How can I check if a given directory is accessible?
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)
bash
0
votes
806
views
1
answer
bash - `M-x term' with Emacs on MS Windows: error Spawning child process: invalid argument
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)
bash
0
votes
684
views
1
answer
bash - Print elapsed time in secs with three trailing digits
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)
bash
0
votes
767
views
1
answer
bash - Passing JSON arguments (not simple strings) to jq
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)
bash
0
votes
625
views
1
answer
bash - Delete row which has more than X columns in a csv
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)
bash
0
votes
593
views
1
answer
bash - How to read a line from each of several files in each iteration of a single loop?
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)
bash
0
votes
775
views
1
answer
bash - How to remove a child block from YML in shell script?
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)
bash
0
votes
702
views
1
answer
bash - How to compile an Android app with aapt2 without using any build tools?
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)
bash
0
votes
644
views
1
answer
bash - How to search & replace arbitrary literal strings in sed and awk (and perl)
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)
bash
0
votes
613
views
1
answer
bash - How to access the metadata of a docker container from a script running inside the container?
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)
bash
0
votes
664
views
1
answer
bash - Getting error ": command not found" when trying to run shell script
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)
bash
0
votes
670
views
1
answer
bash - Converting second pattern to millisecond in awk
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)
bash
0
votes
999
views
1
answer
bash - How to obfuscate a shell script?
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)
bash
0
votes
610
views
1
answer
bash - remove block of text between two lines based on content
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)
bash
0
votes
833
views
1
answer
bash - How replace variable names in an xml-file?
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)
bash
0
votes
797
views
1
answer
bash - 2 while read loops?
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)
bash
0
votes
675
views
1
answer
bash - Prefixing variable assignment doesn't work with echo
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)
bash
0
votes
981
views
1
answer
bash - what is EOF in cygwin in windows 10
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)
bash
0
votes
666
views
1
answer
bash - kafka and JMX-exporter
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)
bash
0
votes
707
views
1
answer
bash - What is a hyphen beside a shell variable
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)
bash
0
votes
762
views
1
answer
bash - Why does find . -not -name ".*" not exclude hidden files?
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)
bash
0
votes
974
views
1
answer
bash - Loop inside "heredoc" in shell scripting
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)
bash
Page:
1
2
3
4
5
6
...
51
next »
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Just Browsing Browsing
[1] nuxt使用在nuxt.config.js中配置target: 'static',获取不到cookie
[2] ansible - How can I set the value of a variable being passed to a role based on ansible_facts?
[3] 循环数组里面的对象,再去通过Key绑定对象,但是操作的为什么是同一个变量
[4] 为什么我这段canvas绘图会在一到两分钟之后变慢然后持续变慢,最后很卡很卡的样子
[5] react-native TextInput 设置 `paddingVertical: 0` 后, 光标变长?
[6] rabbitmq突然无法启动,erlang发生故障
[7] elementui tree拖拽的扩展
[8] Using own jackson versions in Flink causes VerifyError
[9] web - Get access to the one site with one account in two different computer
[10] js中如何实现this的深拷贝?
548k
questions
547k
answers
4
comments
48.7k
users
Most popular tags
javascript
python
c#
java
How
android
c++
php
ios
html
sql
r
c
node.js
.net
iphone
asp.net
css
reactjs
jquery
ruby
What
Android
objective
mysql
linux
Is
git
Python
windows
Why
regex
angular
swift
amazon
excel
google
algorithm
macos
Java
visual
how
bash
Can
multithreading
PHP
Using
scala
angularjs
typescript
apache
spring
performance
postgresql
database
flutter
json
rust
arrays
C#
dart
vba
django
wpf
xml
vue.js
In
go
Get
jQuery
xcode
jsf
http
Google
mongodb
string
shell
oop
powershell
SQL
C++
security
assembly
docker
Javascript
Android:
Does
haskell
web
Convert
azure
debugging
delphi
vb.net
Spring
datetime
pandas
oracle
math
联盟问答网站-Union QA website
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
在这了问答社区
Xstack问答社区
生活宝问答社区
OverStack问答社区
Ostack问答社区
在这了问答社区
在哪了问答社区
Xstack问答社区
无极谷问答社区
TouSu问答社区
SQlite问答社区
Qi-U问答社区
MLink问答社区
Jonic问答社区
Jike问答社区
16892问答社区
Vigges问答社区
55276问答社区
OGeek问答社区
深圳家问答社区
深圳家问答社区
深圳家问答社区
Vigges问答社区
Vigges问答社区
在这了问答社区
...