[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with redirecting cat command output to a file
From: |
Pratiksha Powar |
Subject: |
Problem with redirecting cat command output to a file |
Date: |
Tue, 11 Sep 2007 11:39:07 +0530 |
Problem 1:
--------
Following is the code (in a shell script)which redirects find command output
to a file called "src". But this command generates a file called "src?"
instead.
SOURCE_PATH="src"
rm -f $SOURCE_PATH
#Getting all OPS src files
find ../../com/onmobile/noc/common -name *.java > src
Problem 2:
---------
Later I need to read the src file.
To circumvent Problem 1, if I use the below code :
SOURCE="$SOURCE_PATH?"
$JAVA_HOME/bin/javac -classpath $CLASSPATH -d $OUTPUT_PATH -sourcepath < cat
$SOURCE
I receive following error:
cat: No such file or directory
Could this problem be solved?
I'm using CentOS 10.0, Shell: Bash
Thanks,
Pratiksha
- Problem with redirecting cat command output to a file,
Pratiksha Powar <=