10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I have a control file which will contain all filenames(300) files. Loop through all the file names in the control files and check the existence of this file in another directory(same server). I need to infinitely(2 hrs) run this while loop until all the files are found. Once a file is found,... (5 Replies)
Discussion started by: laknar
5 Replies
2. Shell Programming and Scripting
:wall:
Hello there,
basically in my program where im stuck at is when it comes to rename the files in a loop.
- the program counts the number of files w a given name (works!)
- and then if the number of files is greater or equal to the MAX_VERSIONS (numbers of files allowed w the... (1 Reply)
Discussion started by: thurft
1 Replies
3. Shell Programming and Scripting
Here is a simplified example of my problem. Say I have the following 3 sub-directories;
./folder1
A.txt
A.sh
./folder2
B.txt
./folder3
C.txt
C.sh
I would like to list the directory names which contain both '.txt' & '.sh' type extensions. I have came up with the following code;... (8 Replies)
Discussion started by: mmab
8 Replies
4. Shell Programming and Scripting
Hello forum members,
I hope you can help me with this I don't know hot to reach.
I have a list of files in "/home/MyPath1/" and in "/home/MyPath2/". The files have the same name in both folders.
(but different content, the content doesn't matter here I think)
/home/MyPath1/
filename1.txt... (4 Replies)
Discussion started by: Ophiuchus
4 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I have a bunch of files whose names start with 'xx'
The first line of each file looks something like:
a|...|...|...|... , ...
In order to rename all of these files to whatever's between the 4th | and the comma (in the first line of that particular file) , I have been using:
for... (2 Replies)
Discussion started by: juliette salexa
2 Replies
6. Shell Programming and Scripting
Hi I am trying to write a script which will loop through all files that end in ".txt" and ask user if they want to delete the file or not
#this print out all files
dir=/root/etc/
find $dir -name "*.txt"
output:
1.txt
2.txt
etc
but what i really want is
1.txt delete(Y/N):
2.txt ... (11 Replies)
Discussion started by: Calypso
11 Replies
7. UNIX for Dummies Questions & Answers
Hi all -
I'm trying to rename a large number of files all at once and need some help figuring out the command line syntax to do it. I've already done quite a bit of research with the rename and mv commands, but so far haven't found a solution that seems to work for me. So:
The files exist... (10 Replies)
Discussion started by: dave920
10 Replies
8. Shell Programming and Scripting
I have the following statement in script:
find ${LANDING_FILE_DIR}${BTIME_FILENAME_PATTERN2} -print | while read file; do
...
done
When there are no files located by the find comand it returns:
"find: bad status-- /home/rnitcher/test/....." to the command line
How do I get control in... (3 Replies)
Discussion started by: mavsman
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am new to Unix.I want to set the path and classpath setting for JDK1.4,Weblogic 9.2 and Oracle 9?
So i need to set those settings in setEnv.sh file.
But i am unable to find that file in my unix environment?
Pls. do tell me where this setEnv.sh is stored?
In which directory or path?... (8 Replies)
Discussion started by: sachin.tendulka
8 Replies
10. UNIX for Dummies Questions & Answers
Hello everyone,
I'm a unix noob. I have a powerbook running mac os x 10.4 and for one of my classes I need to install the latest version of php (5.0.5). I'm following the instructions at http://developer.apple.com/internet/opensource/php.html to install but I've run into a problem.
The... (2 Replies)
Discussion started by: kendokendokendo
2 Replies