Hyphen-minus passwd

2024-03-07 Thread Computer Planet
Hi guys! Please, Can someone help me? How can I create this password with a hyphen in front? # openssl passwd -6 -salt username -password This is the response message when I try: passwd: Unknown option: -passwd Thanks for reply!

Re: Temporary color prompt in bash script

2019-09-02 Thread Computer Planet
Thanks guys, but this is not the solution I'm looking for ... Now, I ask the question in other terms: Is It possible to print of a string at the exit of a bash script? e.g.: user@mypc: # bash script has just finished! [prompt] with the prompt that remains immediately after the string printed.

Temporary color prompt in bash script

2019-09-01 Thread Computer Planet
Hi guys! I'm trying, trying and trying but... How I Can put in hte end of a bash script this command: PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w #\[\033[91m\] " so that after finishing the script the prompt will write in red...?

SOLVED !! Re: Delete all after a pattern

2019-08-31 Thread Computer Planet
Thanks Roberto and Wanderer: $ sed 's/config=.*$/config=/g' file.txt was the solution...!! > On 2019-08-31 at 07:58, Roberto C. Sánchez wrote: > > > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > > > >> Hi guys! Is It possible, with "sed

Re: Delete all after a pattern

2019-08-31 Thread Computer Planet
Yes, something like this $ sed -E 's/(.*config=).*/\1/' but something I had already tried but not work... On Saturday, 31-08-2019 at 13:58 Roberto C. Sánchez wrote: > On Sat, Aug 31, 2019 at 01:49:20PM +0200, Computer Planet wrote: > > Hi guys! > > Is It possible, with "

Delete all after a pattern

2019-08-31 Thread Computer Planet
Hi guys! Is It possible, with "sed" erase all after a pattern? I'm trying in all way but I can't... I'd like to erase all after the pattern "config=" but only in the same line, regardless of where it is located inside in a file. Can somebody help me please? Thank in advance for reply. e.g.: