EN VI
Posts (0)
Questions (15)
2024-03-10 20:00:06
You need to put quotes around printf : expect -c 'spawn ssh -t MYHOST@MYSERVER "printf '"'"'\[\\33\[01\;32m\ \ A\ MESSAGE\ TO\ BE\ SHOWN\ \ \\33\[01\;37m\]\\n'"'"'; bash"; expect "Password:"; send "s...
Tags: bash ssh formatting
2024-03-11 21:00:07
I will add my effort here just for reference: #!/bin/bash certfile='chain.txt' privfile='private.txt' awk -v file="1" -v occur="1" ' { print > (file".txt") } /^-----END CERTIFICATE-----$/{ co...
Tags: linux bash
2024-03-12 03:00:06
But when i moved to non-root user now the terminal just shows $ and tab is not working, also it does not matter if i move in different folders it just shows the $ That sounds like you're using the /...
Tags: python bash docker
2024-03-12 16:30:06
Use the -T option ln -sT bar foo which means "treat LINK_NAME as a normal file always" instead of a target destination directory.
Tags: linux bash command
2024-03-12 20:30:14
As others have mentioned, there is no subshell in your code. I think you probably saw code like num=27; seq 3 | while IFS= read -r line; do num="$line"; echo "inside: $num"; done; echo "outside: $num"...
Tags: bash shell variables
2024-03-12 22:30:04
You need: env=stage; AWS_REGION="us-west-2" AWS_PROFILE="$env" mvn clean test -Dtest="KarateRunner#$env" -DargLine="-Dkarate.env=$env"
Tags: bash shell
2024-03-12 23:00:12
Preliminary: All of the following assumes that the data are presented one item per line, without embedded newlines, and that all characters between newlines are significant. I'm trying to use command...
Tags: linux bash awk
2024-03-13 08:30:05
You can do (more() { :; }; export -f more; script) and more won't show up.
Tags: bash
2024-03-14 00:00:12
I know a trick $ unset x $ echo "${x:-${_/*/~}}" /home/oguz but you should just use $HOME.
Tags: bash shell
2024-03-14 02:00:06
function! PrependLine() update " Save the current file to avoid problems with switching buffers yank " Copy the current line to the default register edit myfile.md " Open a new buffer or s...
Tags: bash sed vim

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login