10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
explain the redirections 1>, 2>, 3>, .....
and 1< ,2<,3<.....
where we use these things
Thread moved from AIX forum (2 Replies)
Discussion started by: tsurendra
I am using solaris 10. When running a grep command with multiple files the output is the same as the order of the input. As soon as I pipe the output to another command then it seems that standard error takes precedence, over standard output and gets sent to the pipe first.
ie grep -c... (7 Replies)
Discussion started by: chronics
3. Shell Programming and Scripting
I am using the below script to gather various tools running by the user, we have more than 100 tools running on the server so my challenge is to redirect memory & cpu load to the file with the name of the tool.so am using the below script i am stucking how to redirect to the file... (2 Replies)
Discussion started by: ajaincv
4. Shell Programming and Scripting
I want to redirect stderr and have the following peice of code
$ cat t1.ksh
diff /tmp/jdlkwjdlkejew /tmp/djlkwejdlewdjew >$OUTPUT_FILE 2>>$ERR_FILE
print -u2 "Error: In main function"
let... (1 Reply)
Discussion started by: BeefStu
5. Web Development
I have a domain where i need a redirection as described below :
must redirect to
As you can see from the source URL (mydomain.com/t-ABC-048796/sample.jpg) i need the last four characters... (2 Replies)
Discussion started by: unimaxlin
6. Shell Programming and Scripting
Hello everyone,I'm reading a book and there's code fragment:
ls -l 2>&1 >&3 3>&- | grep bad 3>&-
It says that the red part of that code does not close fd 3 but the green does close the fd 3.I can't understand that.....Why?Any predicate will be appreciated.:) (18 Replies)
Discussion started by: homeboy
7. UNIX for Dummies Questions & Answers
I m new to UNIX and new to this forum. Was wondering if someone can help me understand redirection (standard input output pipeline etc)
for starters, not too sure what this would mean
who | sort > sortedfile | pr | lp
im starting to understand common commands but when throwing... (2 Replies)
Discussion started by: jmack123
8. Shell Programming and Scripting
I have a Perl script that finds some files based on some criteria and then it processes the file contents using some logic.
print "Started ... ";
my $command = "<unix command>";
print "Size: ".$size
If I turn on the Perl debugging option then I... (3 Replies)
Discussion started by: King Nothing
9. Shell Programming and Scripting
how to redirect the stdout msg in command line and file at the same time?
i got the script named test.sh, content as following:
when i run the script ./test.sh > log.log, it will wirte the "111" into log.log, but how to show the "111" in command line... (2 Replies)
Discussion started by: eric_wong_ch
10. Shell Programming and Scripting
The code below works, it's a part of a bash shell script that serve to search a pattern $pattern_da_cercare in the files contained in a directory $directory_iniziale.
Now the proble is:
How can I redirect stderr to a file?
PS: so I want to redirect ALL the errors to a file.
I tryed... (9 Replies)
Discussion started by: DNAx86