Relative Content

Tag Archive for bash

How do global cancel/exit commands work in bash?

As I have done multiple times before, I’ve written bash scripts, and just general commands that go nowhere. They just blink the little command line cursor at me for infinity until I control+C the command. When I do cancel the command, what exactly is going on when I do this? Am I somehow stopping and killing the current PID I’m working on? Does it jump to a different run-level and execute something to terminate the command?

Is it possible to use python as a shell replacement? [duplicate]

This question already has answers here: What’s shell script’s advantage over interpreted programming languages? [closed] (8 answers) Closed 11 years ago. Recently I was looking at python’s shutil and subprocess etc… And I started wondering: wouldn’t it be ok to use python instead of e.g. bash? What am I missing? python shell bash 2 Convenience […]

Is bash “finished”? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]

Bash code not counting identical lines properly

I need to get a count of how many unique blast hits I’ve obtained for my list of OTUs/ASVs but for some reason, in what appears to be random cases lines that are identical are not adding up properly. Other times however, the code works fine and is summing up identical lines no problem. I have already made sure to run dos2unix on my files, I’m running my command on Linux and I don’t know what else to check for.

Bash code not counting identical lines properly

I need to get a count of how many unique blast hits I’ve obtained for my list of OTUs/ASVs but for some reason, in what appears to be random cases lines that are identical are not adding up properly. Other times however, the code works fine and is summing up identical lines no problem. I have already made sure to run dos2unix on my files, I’m running my command on Linux and I don’t know what else to check for.

Bash code not counting identical lines properly

I need to get a count of how many unique blast hits I’ve obtained for my list of OTUs/ASVs but for some reason, in what appears to be random cases lines that are identical are not adding up properly. Other times however, the code works fine and is summing up identical lines no problem. I have already made sure to run dos2unix on my files, I’m running my command on Linux and I don’t know what else to check for.