Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

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

Have an account? Sign In Now

You must login to ask question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

StackOverflow Point

StackOverflow Point Navigation

  • Web Stories
  • Badges
  • Tags
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Web Stories
  • Badges
  • Tags

Bash

Share
  • Facebook
0 Followers
425 Answers
567 Questions
Home/Bash

StackOverflow Point Latest Questions

Alex Hales
  • 0
Alex HalesTeacher
Asked: October 3, 2022In: Bash, pid, process

bash – How to check if a process id (PID) exists

  • 0

[ad_1] This answer has been rewritten since the downvote. I learned from and upvoted @FDS’s answer here, because it is good and correct. But, here’s a form I find easier to read and understand. So, here is my preferred version: Explanation: The ...

  • 285 285 Answers
  • 58 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 2, 2022In: Bash, sh, xargs

bash – Calling shell functions with xargs

  • 0

[ad_1] Exporting the function should do it (untested): export -f echo_var seq -f "n%04g" 1 100 | xargs -n 1 -P 10 -I {} bash -c 'echo_var "[email protected]"' _ {} You can use the builtin printf instead of the external seq: printf ...

  • 140 140 Answers
  • 14 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 2, 2022In: Bash, Macos, openssh, rsa, ssh

bash – Openssh Private Key to RSA Private Key

  • 0

[ad_1] You have an OpenSSH format key and want a PEM format key. It is not intuitive to me, but the suggested way to convert is by changing the password for the key and writing it in a ...

  • 0 0 Answers
  • 10 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 1, 2022In: Bash, Linux

What is the difference between double-ampersand (&&) and semicolon (;) in Linux Bash?

  • 0

[ad_1] What is the difference between double-ampersand (&&) and semicolon (;) in Linux Bash? [ad_2]

  • 0 0 Answers
  • 0 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: October 1, 2022In: Bash, cut, gnu-coreutils, sh, shell

bash – How can I remove the extension of a filename in a shell script?

  • 0

[ad_1] This one covers all possibilities! (dot in the path or not; with extension or no extension): tmp1=${filename##*/};tmp2=${tmp1:1};filename_noextension=$(echo -n ${tmp1:0:1};echo ${tmp2%.*});echo $filename_noextension Notes: It gives you the filename without any extension. So there is no path in the $filename_noextension variable. You end ...

  • 0 0 Answers
  • 7 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 30, 2022In: Bash, equals, zero

Check if bash variable equals 0 [duplicate]

  • 0

[ad_1] Check if bash variable equals 0 [duplicate] [ad_2]

  • 0 0 Answers
  • 7 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 29, 2022In: Bash

bash – How to delete files older than X hours

  • 0

[ad_1] If one’s find does not have -mmin and if one also is stuck with a find that accepts only integer values for -mtime, then all is not necessarily lost if one considers that “older than” is similar ...

  • 0 0 Answers
  • 6 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 28, 2022In: Bash, if-statement, scripting, shell, syntax

shell – Test for non-zero length string in Bash: [ -n “$var” ] or [ “$var” ]

  • 0

[ad_1] Edit: This is a more complete version that shows more differences between [ (aka test) and [[. The following table shows that whether a variable is quoted or not, whether you use single or double brackets and whether ...

  • 0 0 Answers
  • 7 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 27, 2022In: Bash, eval, Linux, scripting, shell

linux – The ‘eval’ command in Bash and its typical uses

  • 0

[ad_1] Update: Some people say one should -never- use eval. I disagree. I think the risk arises when corrupt input can be passed to eval. However there are many common situations where that is not a risk, and ...

  • 0 0 Answers
  • 25 Views
Answer
Alex Hales
  • 0
Alex HalesTeacher
Asked: September 27, 2022In: Bash, md5sum, shell

bash – Only get hash value using md5sum (without filename)

  • 0

[ad_1] if you’re concerned about screwy filenames : md5sum < "${file_name}" | awk NF=1 f244e67ca3e71fff91cdf9b8bd3aa7a5 other messier ways to deal with this : md5sum "${file_name}" | awk NF=NF OFS= FS=' .*$' ...

  • 0 0 Answers
  • 6 Views
Answer
Load More Questions

Sidebar

Ask A Question

Stats

  • Questions : 43k

Subscribe

Login

Forgot Password?

Footer

Follow

© 2022 Stackoverflow Point. All Rights Reserved.