Search Results

Search: Posts Made By: Don Cragun
40,178
Posted By Don Cragun
Hi Dave, OK. So now we know that you are not...
Hi Dave,
OK. So now we know that you are not stupid (and please do not say that you are again) and, if you try to make some changes on your own, you get most of it right. As I said before, if you...
40,178
Posted By Don Cragun
Going back and removing significant portions of...
Going back and removing significant portions of your earlier posts (that provided information on which responses to those posts were based is VERY BAD FORM! Do Not Do That! People who read this...
40,178
Posted By Don Cragun
If we start from my script in post #32 in this...
If we start from my script in post #32 in this thread:
#!/bin/ksh
bad_found=0
dir='/files05/home/chgtprd/MXS/inb/CHTR/FTR/9/'
log='/files05/home/chgtprd/logfile.txt'

cd "$dir" && for file in *...
40,178
Posted By Don Cragun
Sorry, Although it won't affect the operation...
Sorry,
Although it won't affect the operation of the script, the last two lines in your script should not be indented.

I had a copy and paste error that dropped the last line of the script (which...
40,178
Posted By Don Cragun
Thank you for the much clearer specification. ...
Thank you for the much clearer specification. But, there are still a few things missing in your specification:

You didn't mention the pathname of the log file you want to create. (This script...
40,178
Posted By Don Cragun
The directories you are searching, the strings...
The directories you are searching, the strings you are matching, the names of the files you are processing in the directories you are searching, and the shell you are using seems to change with every...
40,178
Posted By Don Cragun
What you have shown us is that there are four...
What you have shown us is that there are four lines in each of the files:
VZW997.03.26.2010:06:10:12.000
VZW997.03.26.2010:06:33:46.007
VZW997.03.26.2010:06:37:47.004...
40,178
Posted By Don Cragun
That is not what grep -v BRE file... does. That...
That is not what grep -v BRE file... does. That grep command gives you a list of every line in each of the given file operands that does NOT contain a string matching the basic regular expression...
Showing results 1 to 8 of 8

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