Search Results

Search: Posts Made By: benalt
5,095
Posted By benalt
Can ksh read records with blank fields
I have a tab delimited file with some fields potentially containing no data. In ksh 'read' though treats multiple tabs as a single delimiter. Is there any way to change that behavior so I could...
2,321
Posted By benalt
Well, a small test quickly showed me that a named...
Well, a small test quickly showed me that a named pipe would not be an easy solution. As long as one process has the pipe open, another process gets the message "ksh: fifo: cannot open [Device or...
2,321
Posted By benalt
Processing a file list via named pipe
I have a ksh93 script I use that processes a file list in the order that they exist in the list. I would like to speed up processing of the list by having multiple processes handle it at once. I was...
5,567
Posted By benalt
Thank you for all your responses. I think the...
Thank you for all your responses. I think the fraction of a second pauses will work for me. For some reason I thought the minimum time for sleep was 1s but 0.1s should be okay.
5,567
Posted By benalt
I already tried a loop and it didn't work. The...
I already tried a loop and it didn't work. The bell rings once. In fact my loop was almost identical to yours. Googling around had me find a line like this:
cat `cygpath -W`/Media/ding.wav >...
5,567
Posted By benalt
How to ring the system bell many times without pause?
I am writing a ksh script in cygwin though it could just as easily be bash and am trying to make an alert for myself where the bell rings many times like
print '\a'or
echo '^G'except I want it to...
13,935
Posted By benalt
Thanks. I was hoping there would be...
Thanks.

I was hoping there would be something like I would do in shell:
echo ${var%?}or
echo ${var%:}or similar.

---------- Post updated at 11:46 AM ---------- Previous update was at 11:40...
13,935
Posted By benalt
gawk to remove last character in a line or string
I am outputting a line like this
print $2 "/" $4The last character though is a ":" and I want to remove it. Is there any neat way to remove it? Or am I forced to do something like this:
print $2...
22,628
Posted By benalt
Assuming the list only contains numbers (not the...
Assuming the list only contains numbers (not the '12K' currently there which you haven't said how to interpret) you could do it in ksh93 like this:
set $(<b22)
s=0
for i; do ((s += $i)); done...
1,324
Posted By benalt
As a quick update to this problem. I ran my ksh93...
As a quick update to this problem. I ran my ksh93 script at home on CentOS and had the same puzzling results. I did a od -cx on the files after a quick look at the results, what stood out was the...
1,324
Posted By benalt
Firstly, thanks for the response. While I did...
Firstly, thanks for the response. While I did mention I was using ksh I should have mentioned that I am using both ksh93 and cygwin. I am assuming there is something not right with this combination....
1,324
Posted By benalt
shell script output problem
Hello, I am writing a script in ksh to output a data file that is pipe delimited (not my choice). In any case, it has me scratching my head since the output is not as expected.
exec 3<acc.txt #...
1,744
Posted By benalt
Thanks. I realize the result. I am trying to work...
Thanks. I realize the result. I am trying to work out why. I know that $0 is being set to the last character because the field separator has been set to null and $0 is being set to the last field....
1,744
Posted By benalt
figuring out an awk one liner
I have googled around a bit and could not find an answer to how this works:
echo $STRING | awk '$0=$NF' FS=

I know what each part is doing. The record is being set to equal the last field and...
Showing results 1 to 14 of 14

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