9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All ,
Below is the script which I have written -
export LOGDIR=/home/rmsbatch/testdata
# TEMPDIR : Path where all non zero files need to be moved after search.
export TEMPDIR=/home/rmsbatch/testdata/TEMP
# RESULTFILE : Path of the Final File
export... (3 Replies)
Discussion started by: LoneRanger
3 Replies
2. Shell Programming and Scripting
Hello,
i have bash script where im cycling some command for different lines in external file.
example:
while read domain;do
nslookupout=$(nslookup -type=ns $domain) || true
another commands
done < filenamewithdomains
i added:
|| true
after the command in belief it will just skip... (6 Replies)
Discussion started by: postcd
6 Replies
3. Emergency UNIX and Linux Support
Hi All ,
Am using unix KSH .
I would like to clarify two doubts.
Whenever am transfering the zero size file am getting the warning message netout.
files will be transferred to target server or not?
I have used the code as
if
then
VAR="ftp.sh -c put ${FILE} ${FILE}... (2 Replies)
Discussion started by: Venkatesh1
2 Replies
4. Shell Programming and Scripting
After processing around 300 files , I am getting the below error.Please help me to resolve it
cat: 0652-050 Cannot open /dir1/dir2/dir3/dir/abc.txt
mv: 0653-401 Cannot rename /dir1/dir2/dir3/dir/abc.temp to /dir1/dir2/dir3/dir/abc.csv:
.
.
.
how to avoid it.
because I am getting... (1 Reply)
Discussion started by: vsachan
1 Replies
5. Shell Programming and Scripting
I use the "cat" command to cancaterate files into a new file.
Sometimes the cat command failed because there were too many files in the directory for cancateration.
I also tried to use the "ls" command to put the list of files into a text file and then cancaterate each file one by one by... (6 Replies)
Discussion started by: lena keung
6 Replies
6. Shell Programming and Scripting
Hello,
I'm trying to send the error output of a 'cat' operation to /dev/null like this:
cat /dirA/dirB/temp*.log > /dirA/dirB/final.log 2>/dev/null
This works perfectly in a terminal, but not when placed in a script.
If there are no files matching temp*.log the script outputs an error... (7 Replies)
Discussion started by: Nils88
7 Replies
7. Shell Programming and Scripting
I am trying to figure out how to run the below variable assignment in a shell script so that it will snuff the "no such file or directory" and just pass the count value. That way I can do a valid compare in the next step.
num=`ls /appsrv/tmp/PrjRefData_20090428-*_in.xml | wc -l`
ls:... (3 Replies)
Discussion started by: lynchmob
3 Replies
8. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
9. UNIX for Dummies Questions & Answers
Hi
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies