Bash is the shell from the GNU project. It is the standard shell on many Linux distributions and often available on other *NIXes.

learn more… | top users | synonyms

1
vote
0answers
4 views

How can I add autocomplete for “gem which” with rbenv?

I am using rbenv on Mac OS X. I have autocomplete functionality already for the gem command: $ gem build environment lock query stale cert fetch ...
3
votes
1answer
26 views

How to find emacs backup files?

Emacs backup files start with .# but I can find those in my directory. I've try: find . -name '^\.#.*' or find . -name '.*#.*' and they are not show up, and I have them. For instance if I create ...
4
votes
2answers
71 views

Dump process's stdin and stdout

I have two processes, let's say Parent and Child. Parent launches the Child and communicates with it through child's stdin and stdout. Parent <-> Child These processes use text protocol and I ...
3
votes
4answers
44 views

How do I output a suggestion for a user to accept and use as input?

What can I do to leave the cursor on the same line of the suggestion in a Bash script? It's purpose is to suggest a string so that the user should only press Enter. #!/bin/sh echo "@@@@@@@@@@ @ ...
1
vote
1answer
18 views

GoAccess won't redirect its output as a CGI script

I've been pulling my hair with this script: #!/bin/bash echo Content-type: text/html echo "" goaccess -f /var/www/log/access.log -a | tee Which runs perfectly on the command line (generates HTML ...
-1
votes
0answers
11 views

Reply to ICMP requests automatically [migrated]

I'm using Scapy to perform a simple Ping test: One host sends a ping request and the other host replies. Is there any way to make the 2nd host reply automatically for each ping request? E.g. running ...
5
votes
2answers
46 views

Default preference of executable over built-ins with the same name

I was playing around a bit with the names of some executables, putting them in a folder, ~/bin, which is in my $PATH. Now I'm wondering how I can set the preferences of a bash-3.2 terminal so that it ...
2
votes
1answer
45 views

Where do I place commands to automatically be exported for all users?

I have an embedded platform running an Arago linux distribution. Right now the only "user" is root but there will eventually be others, but I don't know how many or what user IDs they will have. ...
4
votes
2answers
66 views

Shell Script to isolate files scattered in different folders

I need to write a shell script that traverses a given directory structure in multiple levels, recognizes the video files scattered in the folders and copies all of them to another single folder. The ...
1
vote
1answer
50 views

how do i redirect output from tailf & grep to a file [duplicate]

All I wanted is to grep for specific lines in an ongoing log and re-direct it to some file.. tailf log | grep "some words" Now, I want the above command output to get re-directed to some file in ...
0
votes
0answers
24 views

nohup daemon to check a folder for mismatch name pattern [on hold]

How will I keep a check on a folder for mismatched names for files only, and send that check to a log, only once. This code seems to be continuously doing it: #!/bin/bash line=/tmp/v005/* while : do ...
1
vote
1answer
21 views

How to add all binaries to bash tab completion for some command?

I've installed program trickle that allow to throttle the net for specified command like: trickle -u10 -d10 <COMMAND> How to add bash completion for all binaries to trickle command?
3
votes
2answers
91 views

Unit multiplier conversion in a shell script

I need to convert human-readable sizes into bytes. Unfortunately numfmt function is not accessible for me. Is there any other alternative? I need a shell/bash function to call from inside the sh ...
6
votes
1answer
85 views

Parallel execution of bash script

I have a table URL_Experiment in my database (mySQL database). I have 2 million URL links in this table. For each URL, I am checking if some particular text is present in the URL and updating the ...
-2
votes
1answer
19 views

Implementation Logic [on hold]

I have two files,which is something like this: file1 msgid "New" msgstr "" dsvhuvchvdhcvhc msgid "Old" msgstr "hsvhs" kdnvcjdbvj msgid "Bold" msgstr "" file2 dcbjdsbc msgid "New" msgstr "Alas" ...

15 30 50 per page