Search Results

Search: Posts Made By: vikramsinghnegi
3,007
Posted By vikramsinghnegi
i was thinking of something like this: proc...
i was thinking of something like this:

proc main{argv argc}
{
set path [lindex $argv 0]
for file in $(find $path -name "root.txt" -type f)
do
genrb.exe $file -d $(dirname $file)
done
}...
3,007
Posted By vikramsinghnegi
Thanks a lot. It is working fine now. One last...
Thanks a lot. It is working fine now.
One last query.
How can i pass a windows folder path as a param.

this is my func

for file in $(find c:\\temp\\ -name "root.txt" -type f)
do
genrb.exe...
3,007
Posted By vikramsinghnegi
Hi The command that i have to run has to...
Hi

The command that i have to run has to run when the working directory is where the txt is.

So, a script which traverses through a dir structure and runs the command whenever it finds a .txt...
3,007
Posted By vikramsinghnegi
Script to run a command on all txt files present in a dir structure
Hi,

I have a directory structure like the one given below

root\a\b1
root\a\b2
root\b\b1
root\b\b2
.
.
.
root\j\b1
root\j\b2

Now, there are a txt files in each dir and subdir,...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy