Tagged Questions
3
votes
2answers
107 views
Copy stdout and stderr to a log file and leave them on the console within the script itself
Using bash, how do I copy stderr and stdout to a log file and also leave them displayed on the console?
I would like to do this within the script itself using an exec.
I tried with
exec ...
6
votes
1answer
225 views
redirect and log script output
I am trying to tidy up the following snippets, design goals are to log all output from a script, and should not be a wrapper. Less lines are better.
I don't care about user inputs (at this stage), ...
3
votes
3answers
123 views
Find functions, commands, and builtins [duplicate]
Possible Duplicate:
Executing user defined function in a find -exec call
Suppose I have the following bash code:
!#/bin/bash
function print_echo (){
echo "This is print_echo Function" ...
0
votes
2answers
207 views
variables in find command and more shell problem [duplicate]
Possible Duplicate:
Recursive rename files and directories
I wrote the following script:
#!/bin/bash
SAVEIFS=$IFS
alias export='export'
IFS=$(echo -en "\n\b")
find $1 -name "*" ...