Tag Archives: programming

Error “join: multi-character tab `\\t’” for using join tab

The default separator for linux join is whitespace, when I try to use “t” to instead of whitespace with the command “join file1 file2 -t “t””, following error occurred: join: multi-character tab `\t Here is the resolved method is found … Continue reading

Posted in Programming Skill | Tagged , , | Leave a comment

Two methods to redirect output for “set -x”

I found that the standard direct cannot redirect the output of the “set -x”, following is two methods to redirect output for “set -x” by google and my co-worker: 1: ./test.sh > test.log 2>&1 2: test.sh 2>&1 | tee -a … Continue reading

Posted in Programming Skill | Tagged , , , , | Leave a comment

“set -x”: Prints executed commands and their arguments

I wrote a shell script and every time when I want print the executed commands and arguments I used the “echo” to echo the executed commands, this is not convenient. At the same time I use my co-worker’s shell script, … Continue reading

Posted in Programming Skill | Tagged , , , , | Leave a comment

How to start new process or run shell commands within python?

Starting new process or running shell commands is a common task in python and there are many ways to excute this process. After google the problem in the web, I found the summary of the “start new process or run … Continue reading

Posted in Programming Skill | Tagged , , , , , | 2 Comments