Search Results

Search: Posts Made By: sapient
2,819
Posted By sapient
Vbe I cant directly output in a file as...
Vbe
I cant directly output in a file as $htmlfile has a extension of .html ( for example it $htmlfile = a/b/c/d/123.html ) , I need to create a .txt file with the same name and on the same...
2,819
Posted By sapient
ok I think I need help here. I need to redirect...
ok I think I need help here.
I need to redirect the output to a file with the same name and location as html file

for htmlfile in "$SOURCE_DIR"/*.html
do
$($EXE_DIR"/program "$htmlfile") >>...
2,819
Posted By sapient
Aha, Got the common sense of shell scripting...
Aha, Got the common sense of shell scripting now:) I was trying to do

for htmlfile in 'find $SOURCE_DIR -name *.html '

So the idea is to get the result return by 'find' in a variable.
...
2,819
Posted By sapient
Thanks Franklin52 and Vbe for the reply. I...
Thanks Franklin52 and Vbe for the reply.

I was trying to use 'Find' as my My SOURCE_DIR have mulitple directories and which in turn have html and other files. For example:
SOURCE_DIR= /a/b/c
-c...
2,819
Posted By sapient
New to Shell scripting: Can you check it?
I am trying to write a script to get all the html files under a source directory and and for each html file, run a program with html file as an argument. This program generates an output which I need...
Showing results 1 to 5 of 5

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