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 th
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 s
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 clarify what
this test actual
> 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 still only get the tab
> cha
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, /etc/ba
> 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 back the way it was. And t
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 wasn't -- it was dash.
>
>
> 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.
--
Glenn English
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.
>
> Lisi, as usual, found the
> 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
> 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 that does that.
Thanks
> 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
> /bin/bash
> lisi@Tux-
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 enable completion. The commands are
> 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 for root and no
> 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 interactive shells
> #if ! shopt
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, bash just gives me
-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 -- I have to type th
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
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
> 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;
w
Darac Marjal 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 can be done in place qu
-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
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
http://en.wiki
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 me
t; search the word and replace it??
>
> Well, I don't 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,
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
* 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
s
l, I don't know about 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
-BEGI
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
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
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.
T
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
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
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:
> >
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
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 use
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
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.
> >
> > S
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 '{prin
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:
>
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
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
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
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 appear
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 al
-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.
* 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
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
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? C
Incoming from 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 .em
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
-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 affect
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 .ema
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:
>
> c
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:
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 rea
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] .
57 matches
Mail list logo