One (1) shiny internet point

To the first person who can guess what I’m doing.

(Hint: it is tedious and yet catastrophically likely to go wrong)

$fileArray = @()

pushd D:workspaceclientsrcclient2

$fileArray += ls -r *.c

pushd

D:workspaceclientincludeclient2

$fileArray += ls -r *.h

$reservedArray =
(
   "asm",
   "catch",
   "class",
   "const_cast",
   "delete",
   "dynamic_cast",
   "friend",
   "inline",
   "new",
   "operator",
   "private",
   "protected",
   "public",
   "reinterpret_cast",
   "static_cast",
   "template",
   "this",
   "throw",
   "try",
   "typeid",
   "typename",
   "virtual"
)

foreach($word in $reservedArray)
{
   $word | out-file -filepath “d:scriptOutreservedWords.txt” -append
   $fileArray | sls $word | out-file -filepath “d:scriptOutreservedWords.txt” -append
}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s