Search Results

Search: Posts Made By: bjdamon
1,497
Posted By bjdamon
That worked perfectly!!! Thank you so much - you...
That worked perfectly!!! Thank you so much - you guys rule
1,497
Posted By bjdamon
Yes that is exactly what I am trying to do. When...
Yes that is exactly what I am trying to do. When I attempted to use your script above I am getting the following error:

sed: command garbled: a \
1,497
Posted By bjdamon
This worked to a point - it did not pass in the...
This worked to a point - it did not pass in the original lines from the list.txt file - just wrote out the 3 new lines for every line in the file - I need all 4 lines in final output. Sorry but I am...
1,497
Posted By bjdamon
Add 3 new lines for every line in a file
I have a file that I need to add 3 new lines of text for every line in the file - when I attempt the sed scripting below I keep getting 'command garbled' errors. Any suggestions would be greatly...
Forum: Solaris 07-25-2013
2,306
Posted By bjdamon
Changing TZ worked - thanks so much for your help
Changing TZ worked - thanks so much for your help
Forum: Solaris 07-25-2013
2,306
Posted By bjdamon
Setting Date Variable +1 date
I need to set a date varable within ksh that will set the date to the next day in the format 25-JUL-2013 - any help would be appreciated.
11,319
Posted By bjdamon
Ok - I have it working now - thanks so much for...
Ok - I have it working now - thanks so much for your help.
11,319
Posted By bjdamon
I just prints line with matching string - not...
I just prints line with matching string - not previous 2 lines
11,319
Posted By bjdamon
Yes - when FAILED - I want to print two previous...
Yes - when FAILED - I want to print two previous lines - I was showing what I didn't want to see and an example - I tried using grep 'string' -B 2 FILE but that is not working
11,319
Posted By bjdamon
Use the -B option with grep
I am trying to parse out a file using grep - I would like to use the -B option so that the grep command prints the previous 2 lines if/when my string is matched - listed below are two examples - one...
Forum: Solaris 01-22-2013
1,552
Posted By bjdamon
Works perfectly now! Thank you so much!!!
Works perfectly now! Thank you so much!!!
Forum: Solaris 01-22-2013
1,552
Posted By bjdamon
The input is a file with a different number on...
The input is a file with a different number on each line (es.out) - I want to add the numbers for a total in the output file (es.cnt)

Input -

252
428
1174
12
...
Forum: Solaris 01-22-2013
1,552
Posted By bjdamon
I tried that just now - same result.
I tried that just now - same result.
Forum: Solaris 01-22-2013
1,552
Posted By bjdamon
[Solved] Using awk withing a shell script
I am trying to use an awk command within a ksh script but it is not working - I am able to run from command line with no problem. It does not err out - it just does not produce a file with final...
Forum: Solaris 01-10-2012
1,874
Posted By bjdamon
Example of a few lines of input file ...
Example of a few lines of input file

/prod/feeds/intl/toyo/scripts/toyo_ftp.ksh
/prod/feeds/intl/twn/scripts/ftp.ksh
/prod/feeds/intl/twn/scripts/check_flag.ksh

I am replace the name of the...
Forum: Solaris 01-10-2012
1,874
Posted By bjdamon
Replacing a string in a long list of files
I have a script that needs to read a file with a long list of /path/filenames - replace the name of the server in each file - and write the file to the same path with a date extension. This is the...
2,388
Posted By bjdamon
That made me check the Reference_File - someone...
That made me check the Reference_File - someone had added lines that contained a special character - I removed the lines and now the 'egrep' is working as designed. Thanks!
2,388
Posted By bjdamon
egrep: syntax error
egrep: syntax error
2,388
Posted By bjdamon
egrep syntax error
I have a script that has been running fine for about a month - now all of a sudden I am getting a syntax error using the egrep command. The command I am using is comparing two files and printing...
3,220
Posted By bjdamon
Thanks all for your very timely responses! The...
Thanks all for your very timely responses! The last post was the first I tried and it worked beautifully!
3,220
Posted By bjdamon
Deleting lines of a file if they exist in another file
I have a reference file that needs to remain static and another file that may or may not have duplicate rows that match the reference file. I need help with a command that will delete any duplicate...
Showing results 1 to 21 of 21

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