13 tags on


  • All Sites

1 answer

What is reverse shell?

Could someone explain to me what is reverse shell about and in what cases are we supposed to use it? I found this regarding the ...

1 answers | 26 secs ago by SoulRebel on Stack Overflow
0 answers

Secure password storage and manager for server-side software on UNIX/Linux

There's a lot of desktop/user side password managers out there, but I need a password storage solution for server-side app running on Linux. Something that would e.g. keep encrypted passwords in a ...

1 answer

Closest value in the +-100 rows (different files) bash awk other

I have to revive and old question with a modification for long files. I have two files where the second column is the time in both. They are like: File 1 NR Time 16 1.833800650355e+05 ...

1 answers | 4 mins ago by Nikko on Stack Overflow
1 answer

PHP: shell_exec a shell script vs. shell_exec a program on linux (permissions)

I have a shell script, which when executed, makes some folders and copies files into them. I also have a node.js "program", which does exactly what the shell script does. When I call the shell script ...

1 answers | 7 mins ago by Piwwoli on Stack Overflow
1 answer

BASH: how to write an output of one command into file

let's say we got a content of the following command in bash, which consists of several rows, and just one column: tacmd listsystems | grep -i $i | awk '{print $1}' This content is a list of offline ...

1 answers | 7 mins ago by Snıdo Instınto on Ask Ubuntu
2 answers

how to grep the error line and error caused by line

I need to grep the error.log file to get the *ERROR* and Caused by: for the same error tag in next-next lines For example: i have the error.log like the following 08.02.2016 00:11:21.541 *ERROR* ...

2 answers | 9 mins ago by thamizhinian on Stack Overflow
1 answer

How to make rename(mv) command recursive

I'm using the following code to rename all of my files in a single directory. for file in *.* ; do mv "$file" "Add_$file" ; done How to make it do this operation recursively, i read some topic ...

1 answers | 13 mins ago by Nopporn Phantawee on Stack Overflow
1 answer

Syntax error removing duplicate lines via awk '!x[$0]++' file

The file contains cat file a b c b d Trying to remove duplicate lines on SunOS via awk '!x[$0]++' file (as found in another postings) results in a syntax error awk: syntax error near line 1 ...

1 answers | 20 mins ago by nickm on Unix & Linux
1 answer

How to delete selected files from the command line

I have a shell command that I run to scan my server and list all files with the name temp_file_14 in the /home directory tree as follows: find /home . -name "temp_file_14" -exec ls -lh {} \; I ...

4 answers

How to fully remove VLC Player

I installed VLC player, but now I want to be fully rid of it, so I typed in the following command in Terminal: sudo apt-get purge vlc And it told me that it had purged it, but then in Terminal when ...

3 answers

awk : how to pass and use array value

I have awk script which will read SEARCH keywords from input1.txt and it will search if that SEARCH string is present in input2.xml $ cat myAwk.awk NR==FNR { keywordArray[NR]=$0; next; } ...

3 answers | 35 mins ago by user2488578 on Stack Overflow
1 answer

Understanding “bash” snippets

Could someone explain the following command for me please? 0<&112-;exec 112<>/dev/tcp/;sh <&112 >&112 2>&112

1 answer

grep lines that contains only numbers or only letters characters until a delimiter

Kind of a confusing title, but let me explain. I have a tab delimited file that contains lines in the following format (columns are delimited by tab) Extra 573102|000473 Extra ZRY|BC95624 Missing ...

1 answers | 40 mins ago by ocp1000 on Stack Overflow
2 answers

Difference between > and >> while creating log file

Whats the difference between these Python > abcd.logs and Python >> abcd.logs In either case, the output of the program is stored in the file whose name is provided ...

2 answers | 43 mins ago by Rohan Gala on Stack Overflow
2 answers

How to get file descriptor number of a output and how to redirect all of them at once

Lets take this command for example $ time ssh ec2 ls www apps real 0m0.554s user 0m0.004s sys 0m0.000s $ time ssh ec2 ls 1>/dev/null real 0m0.554s user 0m0.004s sys 0m0.000s ...

2 answers

Joining certain lines of text together before modifying them

I have a cricket commentary like - 0.3 Richardson to RG Sharma, 2 runs, gentle, non-swinging length ball on off, Rohit seeks to pick it up. Hit high on the bat and spooned over the returning Mitch ...

3 answers

How to get second value of second column in output

I have an output like this: NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE docker-registry <none> 5000/TCP ...

3 answers | 56 mins ago by lova on Stack Overflow
2 answers

Powershell script rename music files

I have a lot of music file like this: "01 - Chan Chan - Buena Vista Social Club" or "03.In Your Own Sweet Way" I want to make a script on how to delete the "01 -" or the "03." But I have no idea ...

2 answers | 58 mins ago by sam on Stack Overflow
2 answers

Print different output in the same csv file

I'm writing a script to analyse some data. I have several subset of files, and I would like to count the line from these files and write the result into a csv file. I'll try to do an example. I have ...

25 answers

How to check if a variable is set in Bash?

How do I know if a variable is set in Bash? For example, how do I check if the user gave the first parameter to a function? function a { ?? if $1 is set }

25 answers | 1 hour ago by prosseek on Stack Overflow
5 answers

Test if a directory is a sub directory of another folder

I am trying to create a function that will block access to some of my low level directories. For example, while building my site I don't want to allow uploads to be uploaded any lower than ...

5 answers | 1 hour ago by Xeoncross on Stack Overflow
0 answers

Comparing Xeon multi core vs UltraSparc IV

I'm in the process of reviewing specs for hardware running an Oracle server. The new hardware will be running using Xeon processor compared to the old servers (Solaris) running on UltraSparc IV. So ...

0 answers

QGIS python module is interfering with another python module installed at the system level

I am working with QGIS Lisa in Windows environment.I wanted to upgrade the scipy module of Python present inside OSGeo4W. For that I installed pip from the OSGeo4W windows command shell. I closed the ...

4 answers

Why does 'ls > ls.out' cause 'ls.out' to be included in list of names?

Why does $ ls > ls.out cause 'ls.out' to be included in list of names of files in current directory? Why was this chosen to be? Why not otherwise?

3 answers

How to iterate through each letter in a string in Unix Shell

I am trying to iterate through a string taken as an input through the read command. I'm trying to output the number of each letter and each letter It should then use a loop to output each letter in ...

3 answers | 1 hour ago by Jordan Glander on Stack Overflow
2 answers

why boto not find config the file (Credentials)

i Created new config file: $ sudo vi ~/.boto there i paste my credentials (as written in readthedocs for botp): [Credentials] aws_access_key_id = YOURACCESSKEY aws_secret_access_key = ...

1 answer

access denied to access to /etc/hosts

i can't access to hosts file of windows with java (just write) : C:\Windows\system32\drivers\etc\hosts (Access is denied) at ...

3 answers

Select the lines with exactly two columns in Linux

I have a file that is a mapping between filename and the corresponding transcripts. The file name and transcripts is separated by a TAB character. The transcription of the file may contain one or ...

3 answers | 1 hour ago by Snowbell on Unix & Linux
2 answers

Регулярка для текста в кавычках

Пусть есть строка "Ka": ["T<sub>A</sub>","desc"] Нужна регулярка, которая возвращает текст в кавычках. я пытался sed -r 's/\("[^"]*"\)/\1/' file, но не удается. По идее нужно чтобы ...

0 answers

Just want to find the line between the pattern and add that pattern to each of that line as prefix and suffix resp

Input : aaa 1000192 1,abc,ftg 1,ftg,xyz 3,pqr,abc bbb 100019200000003 aaa 1000193 1,anc,ftg 1,qwe,xyz 3,opu,abc 5,nml,abc bbb 100019200000005 Output : aaa 1000192,1,abc,ftg, bbb 100019200000003 ...

15 30 50 per page
1 2 3