I'm not looking to remove the files, but to remove the text string
"../../Templates/" from those files.
-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com
----- Original Message -----
From: "Mike Hammett" <[EMAIL PROTECTED]>
To: "WISPA General List" <[email protected]>
Sent: Saturday, December 15, 2007 9:45 AM
Subject: [WISPA] Linux command question
Would the following command remove ../../Templates/ from all files in the
/home/devicsil/public_html/Templates directory?
for file in ls /home/devicsil/public_html/Templates ; do
sed -e 's/..\/..\/Templates\///g' "$file"
echo ----------------------------------------------------------------
done
-----
Mike Hammett
Intelligent Computing Solutions
http://www.ics-il.com
--------------------------------------------------------------------------------
WISPA Wants You! Join today!
http://signup.wispa.org/
--------------------------------------------------------------------------------
WISPA Wireless List: [email protected]
Subscribe/Unsubscribe:
http://lists.wispa.org/mailman/listinfo/wireless
Archives: http://lists.wispa.org/pipermail/wireless/
--------------------------------------------------------------------------------
WISPA Wants You! Join today!
http://signup.wispa.org/
--------------------------------------------------------------------------------
WISPA Wireless List: [email protected]
Subscribe/Unsubscribe:
http://lists.wispa.org/mailman/listinfo/wireless
Archives: http://lists.wispa.org/pipermail/wireless/