Omgili - forum search, search forums  
  

Discussions about bash re

Displaying 1 - 10 out of 30,274 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
I'm running autoconf and configure sets SHELL to '/bin/sh'. This creates huge problems. How to force SHELL to be '/bin/bash' for autoconf? I'm trying to get this running on osx, it's working on linux. Linux is using SHELL=/bin/bash. osx defaults to /bin...
Started by on , 5 posts by 5 people.  
Please don't hose your system by doing it!) Where is SHELL being set to that? What is being run with /bin/sh when you want /bin/bash? configure scripts are meant to run anywhere....
Ln -f /bin/bash /bin/sh :-P (No, it's not a serious answer.
Scenario: You are doing your daily bash shell stuff, you want to run a previous command so you type: history | grep foocommand Then you get a list of all the foocommand stuff you did for however long your history has kept track, in a list like so: 585...
Started by on , 6 posts by 6 people.  
Failing that, bash uses the readline library.
Foo will run the last command that began with foo.
Hello guys, I'm beginner of bash shell programming. Can you tell me about '$$' symbols in the bash shell? if i try like following #> echo $$ it would print that. #>18756 Could you tell me that symbol used for what and when? Thanks.
Started by on , 3 posts by 3 people.  
You might use it to track your process over its life - use ps to see if it's still running, send it a... .
It's the process id of the bash process itself.
Circumstances, such as subshells that do not require bash to be re-initialized.
Ask your Facebook Friends
Hi folks, I'm writing a shell script (will become a cronjob) that will: 1: dump my production database 2: import the dump into my development database Between step 1 and 2, I need to clear the development database (drop all tables?). How is this best ...
Started by on , 4 posts by 4 people.  
On a UNIX or Linux.
I'd just drob the database and then re-create it.
That by your development_db_name.
I'd like to have a blank line after my bash prompt and before the output on my Mac. It should look like this would: echo; ls Can I add a newline to my bash prompt and then go back up one line to wait for user input? Is there something obvious I'm missing...
Started by on , 6 posts by 6 people.  
To translate my above example into something Bash would recognize, putting:....
Edit: Yeah -- looks like a lot of people use VT102 formatting codes in their bash prompts.
Into your bash prompt, but I thought it might be worth a shot.
Bash is used by default in every Linux distro I have tried, over alternatives like zsh. Is there a technical or historical reason for this?
Started by on , 6 posts by 6 people.  
Ash is often used as /bin/sh so that while bash may be the interactive shell, ash is the "just, because there it is built with....
It is one of ~~2 the default.
It really is a good shell.
Bash has two completely different things going for it.
Hi, We've had these for a lot of other languages. The one for C/C++ was quite popular, so was the equivalent for Python . I thought one for BASH would be interesting too.
Started by on , 15 posts by 12 people.  
-type d -name .svn | xargs rm -rf to -type f In a BASH script, assign an argument to variable but provide a default if it exists: MYVAR - /usr/local/bin> ...and....
Find.
Not strictly bash but useful nonetheless.
Unwanted directories).
I made a Bash script which uses an expect script to automate ssh logins.The script connects to multiple servers and runs some commands. The bash script prompts for login credentials once. I want to incorporate a feature wherein the script terminates if...
Started by on , 3 posts by 3 people.  
Rest of your script } } I assume you don't need to know about || echo "non-zero return from opcagt: $?" expect... .
Expect { -re {assword: $} { send -- "$SPASS\r" exp_continue # remain in this expect happened"} -re $prompt } # ...
Spawn ssh ...
The following code number=1 if [[ $number =~ [0-9] ]] then echo matched fi works. If I try to use quotes in the regex, however, it stops: number=1 if [[ $number =~ "[0-9]" ]] then echo matched fi I tried "\[0-9\]", too. What am I missing? Funnily enough...
Started by on , 3 posts by 3 people.  
$ bash --version GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu) Copyright (C) 2007 Free =~ [0-9] ]]; then echo match; fi match....
New Features in Bash snip f.
Page (doc/bash.1) is the place to look for complete descriptions .
I need to have the ability to create user accounts on my Linux ( Fedora 10 ) and automatically assign a password via a bash script ( or otherwise, if need be ). It's easy to create the user via Bash eg: [whoever@server ]# /usr/sbin/useradd newuser But...
Started by on , 6 posts by 6 people.  
From http password:" send "$userpass\r" expect "Re-type new password:" send "$userpass\r" You can run the passwd this is the line to add a user with a ....
:]: sys.stdout.write("%s\n" % (hash(arg),)) You can use expect in your bash script.
Page: 1   2   3   4   5   6   7   8   9   10  

Related Message Boards & Forums

  • Stack Overflow
  • Super User
Related Searches
Re bash   
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost