sh
Shell script behaves strangely when called via an Erlang port
When calling shell scripts from Erlang, I generally need their exit status (0 or something else), so I run them using this function:[详细]
2023-02-18 04:25 分类:问答How to change current working directory inside command_not_found_handle
I\'m trying to write a not found handle in Bash that does the following: If $1 exists and it\'s a directory, cd into开发者_Go百科 it.[详细]
2023-02-17 19:48 分类:问答merging 3 functions into one
I have 3 functions. How do I merge them into one? I have the list of table names in the function 3. The function 2 has node name that corresponds to that table and the function 1 has number of columns[详细]
2023-02-17 06:38 分类:问答dc(1) and leading zeros
I\'ve got a shell script and I do some calculations with dc(1). I need to have one number printed with leading zeros; I can\'t find an easy and straightforward way to do this with dc itself, but the[详细]
2023-02-17 04:18 分类:问答Find not working in script, working in terminal prompt
I\'m trying to run a bash script in linux (ubuntu but also fedora) but it the find command won\'t work.[详细]
2023-02-16 06:29 分类:问答Understanding a bourne shell script
I came across a wrapper script to run php as fastcgi, could someone explain what is 开发者_运维知识库going on in the script?[详细]
2023-02-16 05:13 分类:问答Unix genius - remove "." from a bunch of filenames?
I have an amount of files, somewhat inexplicably, but due to extenuating circumstances, receive a \". \" (period AND space) appended to the front of the filename.[详细]
2023-02-14 21:29 分类:问答how to create a non-ascii file using redirection with `sh -c`?
The same command: echo 1 > filename creates different filenames: $ sh -c \'echo $LANG >=с=.sh\' && ls *.sh | od -c[详细]
2023-02-14 17:47 分类:问答Bourne shell version [closed]
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.[详细]
2023-02-14 02:34 分类:问答bash: comment a long pipeline
I\'ve found that it\'s quite powerful to create long pipelines in bash scripts, but the main drawback that I see is that there doesn\'t seem to be a way to insert comments.开发者_JAVA技巧[详细]
2023-02-12 21:29 分类:问答