-1
votes
0answers
47 views

Is there a domain specific language best practice? [closed]

I’m discussing usage of DSL (domain specific language) in security tools with my colleagues. We haven't been able to reach an agreement over naming conventions.There are many tools using DSL: splunk,...
0
votes
1answer
46 views

Extract tar.gz files into a directory with different basename based on their match in the text file

I have hundred of folders, some with with tar.gz files and some with bam files. I just wanted to extract tar.gz files into a different directory. Folders with tar.gz files looks like mentioned below:...
0
votes
1answer
80 views

Standard Unix/Linux utility for testing every input line

I am writing a Bash script which should test if every line in input meet certain condition.Is there a way to take the predicate and reduce all the line to either 0 or 1 so I don't have to code the ...
1
vote
1answer
34 views

Zip recursive with excluding some directories

I would like to zip the directory but exclude some subdirectories. Let's say I have such structure:directorysubdirectory 1subdirectory 2project 1htmldirectory 1 ...
0
votes
2answers
107 views

Delete dot file only if non-dot file exists in *nix

I'm moving files from a FAT32 filesystem into an EXFAT filesystem on a Mac. My understanding is that FAT32 doesn't support extended file attributes so it created dot files for each file.However now ...
1
vote
1answer
37 views

`line` command on unix/linux bash prompt a permission denied infor

Recently, I am learning how to write script code. I wrote a script:#!/bin/sh# while3b.shwhile f=`line`do.. process f ..done < http://superuser.com/myfileand here is myfilehellohowdygdaybonjour...
0
votes
0answers
28 views

Finding the parent process name which makes zombies

I use terminal in Unix and I try to find and print on the screen the parent process name of a zombie process. I use the instruction:ps rf -opid,cmd -C <process-name> awk ' { print $1 }' ...
3
votes
3answers
155 views

How to pipe a single item from a command output into another command?

Basic example using grep (note that grep would not be my only use-case for this):$ grep -Irl "foo"path/to/directory/help.jspath/to/directory/config.jspath/to/directory/task.jsNow I want to open ...
21
votes
2answers
2k views

What is the function of the asterisk as a standalone command in Unix?

I was messing around in terminal on Red Hat Linux, and when I typed the asterisk (*) followed by return, and it executed one of the programs in my directory. Why?My best guess is that Unix treated ...
-1
votes
1answer
35 views

Dealing with Ctrl+Z in Unix

While completing an assignment on Unix, I accidentally pressed Ctrl+Z and the program got terminated (suspended). Afterwards when I try to access it again, I am getting the message 'permission denied'....
0
votes
1answer
56 views

How to check size of a directory given by user as an argument?

I want to get the size of a directory given by user as an argument.Example:read -p "Enter the directory" targetdu -k $targetIf user gives path as ~/Documents/dir, I am getting error msg: du: ...
0
votes
1answer
67 views

Why is the cmd.exe command line interpreter not called a shell? [closed]

I have been researching different command line interpreters and have noticed that the default Windows interpreter cmd.exe is not referred to as a shell on the Wikipedia page. Pretty much all of the ...
1
vote
1answer
55 views

Piping StdOut adds more text

I am running a simple command (some Kafka related stuff):curl localhost:8083Its output is very simple:root@debian:/etc/kafka# curl localhost:8083/{"version":"0.11.0.0-cp1","commit":"...
2
votes
3answers
148 views

What is the difference between cp -R foo/ and cp -R foo/*

I noticed that whenever I use a command cp -R foo/* I copy everything except files like .env or probably .gitignoreThe solution is to use cp -R foo/ as it copes the whole directory, but this does ...
1
vote
1answer
214 views

Command for reloading file from disk to show changes when using “less?”

In less is there a command for reloading a file from disk, so that less will show any changes made to a file since less was started? This would saving me have to terminate and restart less if I want ...

153050per page