Re: ctrl-p not working as expected at bash command prompt on debian docker container

2021-04-26 Thread Steve Dondley
On 2021-04-26 02:43 PM, Steve Dondley wrote: I downloaded and ran this docker image: https://hub.docker.com/_/debian It works, but typically when I hit the ctrl-p key at the bash prompt, it acts like the up arrow key and shows the previous command. However, I have to hit ctrl-p twice to show

ctrl-p not working as expected at bash command prompt on debian docker container

2021-04-26 Thread Steve Dondley
I downloaded and ran this docker image: https://hub.docker.com/_/debian It works, but typically when I hit the ctrl-p key at the bash prompt, it acts like the up arrow key and shows the previous command. However, I have to hit ctrl-p twice to show the previous command and twice each time to

Re: Bash command completion

2016-07-31 Thread David
On 7 July 2016 at 08:06, Lisi Reisz wrote: > > So have you followed the suggestion to test whether it is in fact bash that > you are in fact using? > > lisi@Tux-II:~$ echo $SHELL > /bin/bash > lisi@Tux-II:~$ In case anyone is unaware, it might be generally helpful to

Re: Bash command completion

2016-07-07 Thread Glenn English
> On Jul 6, 2016, at 11:33 PM, Peter Ludikovsky wrote: > > No, chsh changes the login shell for the user within /etc/passwd. It > won't affect any currently active shells. > > What happens when you do an > /bin/bash --login > That should start a login shell. If you

Re: Bash command completion

2016-07-06 Thread Peter Ludikovsky
No, chsh changes the login shell for the user within /etc/passwd. It won't affect any currently active shells. What happens when you do an /bin/bash --login That should start a login shell. If you still only get the tab character, check if you've got the line set -o vi in /etc/profile,

Re: Bash command completion

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 10:38 PM, Peter Ludikovsky wrote: > > After an chsh, you have to log out & in again. I thought of that -- I logged out and back in, no joy. I rebooted, same thing. I wasn't too surprised. I assumed that rebooting the machine would just put stuff

Re: Bash command completion

2016-07-06 Thread Peter Ludikovsky
After an chsh, you have to log out & in again. Am 07.07.2016 um 00:17 schrieb Glenn English: > >> On Jul 6, 2016, at 4:06 PM, Lisi Reisz wrote: >> >> So have you followed the suggestion to test whether it is in fact bash that >> you are in fact using? > > Yes. And I

Re: Bash command completion [Fixed]

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 5:59 PM, deloptes wrote: > > What is the default for the user in /etc/passwd ? Good question. Another very likely error. And I'd answer it if the massively obsolete box wasn't powered down and in the give-away bin :-) I'll look into it tomorrow. --

Re: Bash command completion [Fixed]

2016-07-06 Thread deloptes
Glenn English wrote: > >> On Jul 6, 2016, at 4:06 PM, Lisi Reisz wrote: > > There were far too many 'sh's in scripts in /etc, so I changes /bin/sh > from pointing at dash to pointing at bash. What is the default for the user in /etc/passwd ? > > That fixed it. > >

Re: Bash command completion [Fixed]

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 4:06 PM, Lisi Reisz wrote: There were far too many 'sh's in scripts in /etc, so I changes /bin/sh from pointing at dash to pointing at bash. That fixed it. Lisi, as usual, found the problem :-) -- Glenn English

Re: Bash command completion

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 4:06 PM, Lisi Reisz wrote: > > lisi@Tux-II:~$ echo $SHELL > /bin/bash > lisi@Tux-II:~$ Ahah! As root, echo $SHELL says /bin/bash. As a user, it says /bin/sh. And sh is dash. That explains a *lot*. Maybe. I'll see if I can find the dastardly script

Re: Bash command completion

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 4:06 PM, Lisi Reisz wrote: > > So have you followed the suggestion to test whether it is in fact bash that > you are in fact using? Yes. And I wasn't -- it was dash. So I: 'chsh -s /bin/bash' 'ls Do\t' and got a tab. > lisi@Tux-II:~$ echo $SHELL

Re: Bash command completion

2016-07-06 Thread Lisi Reisz
On Wednesday 06 July 2016 22:52:58 Glenn English wrote: > > On Jul 6, 2016, at 2:29 PM, Charlie Kravetz > > wrote: > > > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA256 > > > > There should be a set of commands towards the bottom > > of /etc/bash.bashrc to

Re: Bash command completion

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 3:16 PM, Sven Arvidsson wrote: > > Are you sure that your user uses bash for the login shell? There was a > transition from bash to dash some releases ago. Nope. According to 'man sh', it's dash. I understood that dash is a fixed bash. But why would it work

Re: Bash command completion

2016-07-06 Thread Glenn English
> On Jul 6, 2016, at 2:29 PM, Charlie Kravetz > wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > There should be a set of commands towards the bottom > of /etc/bash.bashrc to enable completion. The commands are: > > # enable bash completion in

Re: Bash command completion

2016-07-06 Thread Sven Arvidsson
On Wed, 2016-07-06 at 14:29 -0600, Charlie Kravetz wrote: > On Wed, 6 Jul 2016 13:48:24 -0600 > Glenn English wrote: > > > > > I put wheezy on a 386 computer last night ('aptitude dist-upgrade' > > from squeeze -- it'd been in the junk box for a while), and when I > > hit tab,

Re: Bash command completion

2016-07-06 Thread Charlie Kravetz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wed, 6 Jul 2016 13:48:24 -0600 Glenn English wrote: >I put wheezy on a 386 computer last night ('aptitude dist-upgrade' from >squeeze -- it'd been in the junk box for a while), and when I hit tab, bash >just gives me a tab

Bash command completion

2016-07-06 Thread Glenn English
I put wheezy on a 386 computer last night ('aptitude dist-upgrade' from squeeze -- it'd been in the junk box for a while), and when I hit tab, bash just gives me a tab -- I have to type the whole command manually. This happens only for the user; root works fine. I've copied the .* scripts (the

Re: bash command

2011-10-24 Thread Darac Marjal
On Fri, Oct 21, 2011 at 03:42:36PM -0400, Stefan Monnier wrote: Sadly, this can't be done in-place, so you'll either need to use mv to replace /etc/conf.file with /etc/conf.file.new or repeat the loop (with no substitution) to copy /etc/conf.file.new into /etc/conf.file. It can be done

Re: bash command

2011-10-21 Thread Harry Putnam
Darac Marjal mailingl...@darac.org.uk writes: Sadly, this can't be done in-place, so you'll either need to use mv to replace /etc/conf.file with /etc/conf.file.new or repeat the loop (with no substitution) to copy /etc/conf.file.new into /etc/conf.file. Maybe now with bash, but with perl it

Re: bash command

2011-10-21 Thread Stefan Monnier
Sadly, this can't be done in-place, so you'll either need to use mv to replace /etc/conf.file with /etc/conf.file.new or repeat the loop (with no substitution) to copy /etc/conf.file.new into /etc/conf.file. It can be done inplace with `rm' in place or `mv': (rm /etc/conf.file; while

bash command

2011-10-20 Thread Jesus arteche
Hey guys, I want to create a script to change some words in some sonf files at the start up of the system...do you know the command in bash for search the word and replace it?? Thanks

Re: bash command

2011-10-20 Thread Raf Czlonka
On Thu, Oct 20, 2011 at 09:29:35AM BST, Jesus arteche wrote: I want to create a script to change some words in some sonf files at the start up of the system...do you know the command in bash for search the word and replace it?? You don't need bash for it, sed's your friend, e.g.: % sed -i

Re: bash command

2011-10-20 Thread kuLa
bash command but I know about sed. - -- |_|0|_| | |_|_|0| Heghlu'Meh QaQ jajVam | |0|0|0| kuLa - | gpg --keyserver pgp.mit.edu --recv-keys 0xC100B4CA -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11

Re: bash command

2011-10-20 Thread Teemu Likonen
* 2011-10-20T09:29:35+01:00 * Jesus arteche wrote: I want to create a script to change some words in some sonf files at the start up of the system...do you know the command in bash for search the word and replace it?? Sounds like you need sed command and its s/.../.../ command. Probably sed's

Re: bash command

2011-10-20 Thread Darac Marjal
On Thu, Oct 20, 2011 at 09:36:50AM +0100, Raf Czlonka wrote: On Thu, Oct 20, 2011 at 09:29:35AM BST, Jesus arteche wrote: I want to create a script to change some words in some sonf files at the start up of the system...do you know the command in bash for search the word and replace it??

Re: bash command

2011-10-20 Thread Arno Schuring
know about bash command but I know about sed. Theoretically it's possible with bash (=3) as well: $ VAR=oldword $ echo $VAR oldword $ echo ${VAR/old/new} newword And use a read loop over all the lines in the file :) Regards, Arno -- To UNSUBSCRIBE, email to debian-user-requ

Re: bash command

2011-10-20 Thread Doug
and replace it?? Well, I don't know about bash command but I know about sed. - -- |_|0|_| | |_|_|0| Heghlu'Meh QaQ jajVam | |0|0|0| kuLa - | What the heck is that, Klingon? What does it mean? --doug gpg

Re: bash command

2011-10-20 Thread Raf Czlonka
On Thu, Oct 20, 2011 at 06:31:16PM BST, Doug wrote: |_|0|_| | |_|_|0| Heghlu'Meh QaQ jajVam | |0|0|0| kuLa - | What the heck is that, Klingon? What does it mean? --doug

Re: bash command

2011-10-20 Thread kuLa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 20/10/11 18:31, Doug wrote: - -- |_|0|_| | |_|_|0| Heghlu'Meh QaQ jajVam | |0|0|0| kuLa - | What the heck is that, Klingon? What does it mean?

Re: ^C show up on bash command line

2010-09-28 Thread Sven Joachim
On 2010-09-28 03:25 +0200, T o n g wrote: Now,when pressing ^C to abolish changes to bash command, the actual ^C will show up where the cursor is. IIRC, previously it wasn't like this -- editing aborted with actual command intact, without being messed up with ^C. This looked like a bug

Re: need help with bash command

2008-11-25 Thread s. keeling
François Cerbelle [EMAIL PROTECTED]: Bob McGowan a écrit : Why do this with a `ls` when a simple * will work? for a in *; do ... Hum... Because ! ;-) In fact, first, I used to do this, because I seldomly use all files in a single directory, but often a pattern in a whole tree

Re: need help with bash command

2008-11-21 Thread François Cerbelle
Le Ven 21 novembre 2008 02:10, Ding Honghui a écrit :.jpg [EMAIL PROTECTED]:~/test/jpg$ ls | awk -F_ '{print $2}' 3563 3616 3620 IMHO, awk is quite oversized just to cut fields... It is typically a cut job : cut -d_ -f2 ;-) Fanfan -- http://www.cerbelle.net - http://www.afdm-idf.org --

need help with bash command

2008-11-20 Thread tôba
Hello, Can you help me with a bash command? I a directory, I want to extract with a command line for jpg name files. I have a lot of: icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg I want to extract the number betwen icon_*_0_1.jpg AND I want to use the entire filename too in the same

Re: need help with bash command

2008-11-20 Thread Eduardo M KALINOWSKI
tôba escreveu: Hello, Can you help me with a bash command? I a directory, I want to extract with a command line for jpg name files. I have a lot of: icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg I want to extract the number betwen icon_*_0_1.jpg AND I want to use the entire

[SOLVED] Re: need help with bash command

2008-11-20 Thread tôba
On Thu, 20 Nov 2008 13:28:17 -0200 Eduardo M KALINOWSKI [EMAIL PROTECTED] wrote: tôba escreveu: Hello, Can you help me with a bash command? I a directory, I want to extract with a command line for jpg name files. I have a lot of: icon_3620_0_1.jpg icon_3616_0_1.jpg

Re: need help with bash command

2008-11-20 Thread François Cerbelle
Le Jeu 20 novembre 2008 16:18, tôba a écrit : icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg The goal is to create a directory called 3620 and move the icon_3620_0_1.jpg file into this directory. So, I did like this for test: # for a in `ls | sed -e s'/_/ /g' | awk '{print $2}'`;

Re: need help with bash command

2008-11-20 Thread Bob McGowan
On Thu, 2008-11-20 at 17:27 +0100, François Cerbelle wrote: Le Jeu 20 novembre 2008 16:18, tôba a écrit : icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg The goal is to create a directory called 3620 and move the icon_3620_0_1.jpg file into this directory. So, I did like

Re: need help with bash command

2008-11-20 Thread H.S.
tôba wrote: Hello, Can you help me with a bash command? I a directory, I want to extract with a command line for jpg name files. I have a lot of: icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg I want to extract the number betwen icon_*_0_1.jpg AND I want to use the entire

Re: need help with bash command

2008-11-20 Thread François Cerbelle
Bob McGowan a écrit : for a in `ls`; do DIR=`echo $a | cut -d_ -f2`; echo mkdir -p $DIR /$a; echo rmdir $DIR/$a; echo mv $a $DIR/$a; done ... Why do this with a `ls` when a simple * will work? for a in *; do ... Hum... Because ! ;-) In fact, first, I used to do this, because I seldomly

Re: need help with bash command

2008-11-20 Thread Ding Honghui
tôba wrote: Hello, Can you help me with a bash command? I a directory, I want to extract with a command line for jpg name files. I have a lot of: icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg I want to extract the number betwen icon_*_0_1.jpg AND I want to use the entire

Re: need help with bash command

2008-11-20 Thread tôba
On Fri, 21 Nov 2008 09:10:08 +0800 Ding Honghui [EMAIL PROTECTED] wrote: tôba wrote: Hello, Can you help me with a bash command? I a directory, I want to extract with a command line for jpg name files. I have a lot of: icon_3620_0_1.jpg icon_3616_0_1.jpg icon_3563_0_1.jpg

Re: bash command timer

2006-09-27 Thread Hugo Vanwoerkom
Roberto C. Sanchez wrote: On Tue, Sep 26, 2006 at 05:19:47PM -0500, Hugo Vanwoerkom wrote: Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/25/06 13:54, Hugo Vanwoerkom wrote: Hi, I am looking for a way to time scripts, how long they take to execute. That has appeared

Re: bash command timer

2006-09-26 Thread Hugo Vanwoerkom
Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/25/06 13:54, Hugo Vanwoerkom wrote: Hi, I am looking for a way to time scripts, how long they take to execute. That has appeared in the list before, but now I can't find it. I could write it myself, but I bet it exists

Re: bash command timer

2006-09-26 Thread Roberto C. Sanchez
On Tue, Sep 26, 2006 at 05:19:47PM -0500, Hugo Vanwoerkom wrote: Ron Johnson wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/25/06 13:54, Hugo Vanwoerkom wrote: Hi, I am looking for a way to time scripts, how long they take to execute. That has appeared in the list before,

bash command timer

2006-09-25 Thread Hugo Vanwoerkom
Hi, I am looking for a way to time scripts, how long they take to execute. That has appeared in the list before, but now I can't find it. I could write it myself, but I bet it exists already. Thanks H -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble?

Re: bash command timer

2006-09-25 Thread Roberto C. Sanchez
On Mon, Sep 25, 2006 at 01:54:53PM -0500, Hugo Vanwoerkom wrote: Hi, I am looking for a way to time scripts, how long they take to execute. That has appeared in the list before, but now I can't find it. I could write it myself, but I bet it exists already. Use /usr/bin/time, as the

Re: bash command timer

2006-09-25 Thread Alexander Schmehl
* Hugo Vanwoerkom [EMAIL PROTECTED] [060925 20:54]: I am looking for a way to time scripts, how long they take to execute. time? Yours sincerely, Alexander -- http://learn.to/quote/ http://www.catb.org/~esr/faqs/smart-questions.html signature.asc Description: Digital signature

Re: bash command timer

2006-09-25 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/25/06 13:54, Hugo Vanwoerkom wrote: Hi, I am looking for a way to time scripts, how long they take to execute. That has appeared in the list before, but now I can't find it. I could write it myself, but I bet it exists already. Are

bash command substitution problem

2005-05-08 Thread Pollywog
I have a function defined in my .bashrc as: function lf { /bin/ls -l | grep ^- ; } It prints the files in the CWD without listing other directories. Suppose I want to 'chmod 600' all the files in the CWD without affecting directories, I try this: chmod 600 `lf` but I get this error: chmod:

Re: bash command substitution problem

2005-05-08 Thread s. keeling
Incoming from Pollywog: I have a function defined in my .bashrc as: function lf { /bin/ls -l | grep ^- ; } It prints the files in the CWD without listing other directories. Suppose I want to 'chmod 600' all the files in the CWD without affecting directories, I try this: chmod 600

Re: bash command substitution problem

2005-05-08 Thread Pollywog
On Sunday 08 May 2005 04:52 pm, s. keeling wrote: You're passing it /bin/ls -l instead of /bin/ls. -l works in the function to pick up files only, but fails in chmod (you can't chmod 600 -rw-r--r--1 keeling keeling 5973 Oct 7 2004 .emacs. You have to chmod 600 .emacs. Back to

Re: bash command substitution problem

2005-05-08 Thread Phil Dyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pollywog said: I have a function defined in my .bashrc as: function lf { /bin/ls -l | grep ^- ; } It prints the files in the CWD without listing other directories. Suppose I want to 'chmod 600' all the files in the CWD without affecting

Re: bash command substitution problem

2005-05-08 Thread Pollywog
On Sunday 08 May 2005 05:08 pm, Phil Dyer wrote: try this one. function lsf { for i in *; do if [ -f $i ]; then echo $i fi; done; } lsf | xargs chmod 600 Thanks, that works. 8) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of

bash command history

1997-08-09 Thread Paul Miller
Is there any way to get bash to work like 4dos? -- If you type the first couple of characters of a command in history, it will only scroll through those commands begining with those characters... -Paul -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] .

Re: bash command history

1997-08-09 Thread Philippe Troin
On Sat, 09 Aug 1997 02:22:32 EDT Paul Miller ([EMAIL PROTECTED]) wrote: Is there any way to get bash to work like 4dos? -- If you type the first couple of characters of a command in history, it will only scroll through those commands begining with those characters... ^R aka CTRL-R man