Questions tagged [unix]

-5 votes
0 replies
AWK Combine multiple command [closed]
These are the Extraction commands from A huge excel zip file. I want to run below commands in one commands please review and suggest solution. a...
asked 1 month ago
0 votes
0 replies
How to parse the result of a diff in a script?
I'm writing an script that should compare 2 directories and the files inside them and then parse the differences from A.xml to B.xml. I'm a litt...
asked 1 month ago
0 votes
0 replies
Read/Merge properties file into 1 line, ignoring comments in unix shell
Environment: Unix shell (e.g. BusyBox, using #!/bin/sh) Task: Read a properties file into a single variable, ignoring comments (#) and empty lin...
asked 1 month ago
0 votes
3 replies
Pipe infinite output from shell command to a python script
I would like to forward the output from one script to the another. I try to do it like that: ./producer.py > ./consumer.py Where procuder:...
asked 1 month ago
0 votes
0 replies
How to schedule r and python script on unix server used by many users in a centralized way
I am finalizing a new Unix Server with R/Rstudio Server and Python/ANAconda/Jupyter Lab to be able to let users (kinda 15 end-user of different s...
asked 1 month ago
-3 votes
0 replies
Cannot find correct version of awk error in my code [closed]
I have a shellscript that has awk command. Most of the time it works but sometimes, it doesn't. The error is: Cannot find correct version of...
asked 1 month ago
2 votes
4 replies
Script output is buffered into one message, despite separate echo statements?
I have a shell script with three echo statements: echo 'first message' echo 'second message' echo 'third message' I then run this script in...
asked 1 month ago
-3 votes
0 replies
How to open files like “a181231v.70015730” in windows
Hi I just downloaded a zip file with the following name a181231v.70015730 and more like this how can I open them -3 You can open them with...
asked 1 month ago
3 votes
3 replies
Sed Capturing Repeating Number Groups
I am trying to use sed to capture a group like these examples: 123123 (i would want the first group 123) 144144 (I would want the group 144) h...
asked 1 month ago
1 votes
1 replies
Unmatched '. error while setting up alias
I am setting an alias in Linux to print the history without the serial number and time of the command being run. This is the command to do that :...
asked 1 month ago
0 votes
1 replies
How to stop all running mongo background operations?
I am getting this error when running tests in node. MongoError: cannot perform operation: a background operation is currently running for ......
asked 1 month ago
0 votes
2 replies
Download html file using unix
I would like to download an html file using c++. I have some code that works with Visual Studio but I need it to run in unix and be able to be c...
asked 1 month ago
0 votes
1 replies
How to download links from txt files inside many folders [closed]
I have the following folder structure and every .txt file contains a link to a file. How can i download each link contained by the .txt files in...
asked 1 month ago
0 votes
0 replies
How to fix “Syntax error: newline unexpected”? [closed]
This is the command that I am trying to run and the error that I get: $ SKYDIVE_ETCD_DATA_DIR=/tmp sudo -E /usr/local/bin/skydive allinone /usr/...
asked 1 month ago
-1 votes
0 replies
is this Java code correct to call Unix script from Java? [duplicate]
It is quite simple to run a Unix command from Java. Runtime.getRuntime().exec(myCommand); But is it possible to run a Unix shell script from...
asked 1 month ago
-2 votes
0 replies
Is the CentOS Non-Unix system? [closed]
It is found vulnerability "CVE-2019-0211" in my apache webserver(Apache 2.4.28). It's description said, "Non-Unix systems are not effected." And...
asked 1 month ago
0 votes
0 replies
Any portable solution and alternative to system() call for clearing console? [duplicate]
As in the title. How can I clear console in C++? 75 On what OS? It's quite a bit different on Linux vs. Windows, just for one example. If...
asked 1 month ago
-1 votes
0 replies
typing tutor in edubuntu and its usefulness
I downloaded a unix distribution called Edubuntu, and i'm trying to see how an application in it helps people who want to type. the application i...
asked 1 month ago
1 votes
4 replies
Permutation up to N letters using BASH
I want to generate N letter permutations of a given string using bash scripting I have successfully written a code to find the permutation of a...
asked 1 month ago
0 votes
0 replies
Join Files in Unix /Java using Wildcard columns
How to join two files in Unix with wildcards and no key column? In SQL we can do : Select T1.Col1, T2.Col_Group, T2.Priority from table1 T1 joi...
asked 1 month ago
2 votes
1 replies
What can be causing “kill -9” to not work as expected some times?
I have created a bash script to kill some processes that are left alive after having run the shutdown scripts. #!/bin/sh echo "Alive processes o...
asked 1 month ago
0 votes
0 replies
write behavior when file opened in multiple processes
I was writing sample code and trying to understand what happens when two processes open the file in append mode and then both perform write. pro...
asked 1 month ago
0 votes
0 replies
Using 'become' in paramiko
I am trying to use paramiko to remote into a host. When I manually login, I have I have to enter my password then I type 'become user' After this...
asked 1 month ago
0 votes
2 replies
How to add two columns based on header names and paste results in a third row based on header name?
How can I add 2 columns (test 1 and test 2) and print the result in a fourth column based on column header names? (CSV file)- comma demilited fil...
asked 1 month ago
0 votes
0 replies
how to copy files with a certain extension to a directory, in which the file extension and destination is being read from a text file
I'm trying to create a script where it reads the file extension type and destination from a text file, then copies the files with that extension...
asked 1 month ago