Search Results

Search: Posts Made By: bd_joy
4,919
Posted By bd_joy
It works exactly as I need. Thanks!
It works exactly as I need. Thanks!
4,919
Posted By bd_joy
I'm not comfortable using ruby, as this is the...
I'm not comfortable using ruby, as this is the first time I have heard of it.
4,919
Posted By bd_joy
My apologizes, I should have been more specific. ...
My apologizes, I should have been more specific. The data looks like this:

Dataset1 Dataset2 Dataset3 etc etc etc A B C D E F G blah blah blah


Required output would then be:
...
4,919
Posted By bd_joy
Replace blanks with | (pipe)
Hello,

I'm trying to replace the first x number of spaces in a line with a |. Right now I'm using a very inefficient syntax to accomplish the task and was looking to simplify it.

I have...
7,691
Posted By bd_joy
They both work perfectly. Thank you so much! :b:...
They both work perfectly. Thank you so much! :b: :b: :b:
7,691
Posted By bd_joy
Adding carriage returns to file using sed/awk
Hello,
I need help adding carriage returns at specific intervals (say 692 characters) to a text file that's one continous string. I'm working in AIX5.3. Any quick help is appreciated.

Thanks!
16,651
Posted By bd_joy
Thanks for the reply! I'll test any post the...
Thanks for the reply! I'll test any post the results. :b:
16,651
Posted By bd_joy
How to find a count of a word within a file
Hello,
I'm looking for a wait to count the number of occurrences of a certain string of characters within a file. The file that I trying to parce has segments within the file that have a header and...
2,280
Posted By bd_joy
Here is also a reference to having both a body...
Here is also a reference to having both a body and an attachment in an e-mail:
https://www.unix.com/how-do-i-send-email/13766-send-mail-attachment-body.html
2,346
Posted By bd_joy
thanks
I will integrate into my script and test tomorrow as I'm walking about the door now. thank you for your help! :b:
3,699
Posted By bd_joy
I've used the following post as reference before:...
I've used the following post as reference before:

https://www.unix.com/unix-advanced-expert-users/14417-loops-within-ftp-comands.html

Hope it helps.
2,346
Posted By bd_joy
I appreciate your response! I put the...
I appreciate your response!

I put the following into a separate script (taic2.sh) to verify that the variable is being set properly:
errcnt=`awk '{if(/^Process/) { total+=$3}} END { print total}'...
2,346
Posted By bd_joy
SED command help
Hello,

I have a script that executes a batch job within our application and then e-mails the log file. What I'm looking to do is to use the sed command to extract a value from this log file and...
10,192
Posted By bd_joy
You can also use the $LOGIN variable... at least...
You can also use the $LOGIN variable... at least on AIX.
1,470
Posted By bd_joy
if $LOGIN found in file then execute X - help!
Hello,
I'm trying to do specific actions based on whether a string is contained within a file or not. More specifically, I'm using the $LOGIN variable to compare to a user_list plain text file to...
10,449
Posted By bd_joy
I've had the same issues with running a job...
I've had the same issues with running a job manually and running it from the cron. I've found environment variables used can be different between the scheduler and a manual log into the server. Do...
5,760
Posted By bd_joy
Thank you for your input. This is what I think...
Thank you for your input. This is what I think I'm going to do. I can't get the counter to work right, but I'll keep messing with it.

#!/bin/sh
EMAIL1="djoy3@nomail.com"
count=0
until ls...
5,760
Posted By bd_joy
I'm not sure what more this shows between the...
I'm not sure what more this shows between the two:

$ ps -ef |grep myscript.sh |grep -v grep
djoy3 606700 688184 0 09:27:57 pts/0 0:00 /bin/sh...
5,760
Posted By bd_joy
Script that checks for previous instances running
Hello,
I'm trying to write a script that checks for previous instances of the same script which may still be running (this script is scheduled to run every 30 minutes). I want to somehow use the...
15,199
Posted By bd_joy
I believe I figured out the problem. The echo...
I believe I figured out the problem. The echo command places a new line character at the end of each iteration thru the loop. I just needed to suppress the new line char for the last date. Lines...
15,199
Posted By bd_joy
cat -vet output: ... 09/20/06$ ...
cat -vet output:

...
09/20/06$
09/21/06$
09/22/06$
09/23/06$
09/24/06$
09/25/06$
09/26/06$
09/27/06$
09/28/06$
09/29/06$
09/30/06$
$
15,199
Posted By bd_joy
Won't a '^M' show using vi? I've come across the...
Won't a '^M' show using vi? I've come across the '^M' when files are ftp'd using the wrong mode.
15,199
Posted By bd_joy
the only thing that happens after the sed is an...
the only thing that happens after the sed is an echo with the date stamp so be can monitor start and end times of all our processes.
15,199
Posted By bd_joy
I think it's my text editor (UltraEdit)...
I think it's my text editor (UltraEdit) displaying the file improperly, because it I use VI there is not a lbank line. But my application is seeing a blank line also when reading this file. I'm...
15,199
Posted By bd_joy
This ended up deleting the 09/30/06 line, but the...
This ended up deleting the 09/30/06 line, but the blank line is still at the end of the file.

----------------------
...........
09/27/06
09/28/06
09/29/06
---{blank line}---...
Showing results 1 to 25 of 31

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