Search Results

Search: Posts Made By: Don Cragun
8,660
Posted By Don Cragun
Hi yash_message, I have marked your thread as...
Hi yash_message,
I have marked your thread as "solved". But, please note that there is no need to ask anyone to do this for you. You can add a "solved" tag to any thread you create by hitting the...
8,660
Posted By Don Cragun
If the output you get from the command: ps -eo...
If the output you get from the command:
ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
is in the format you want, then the likely cause of your problem is the utility you are using to read the...
12,656
Posted By Don Cragun
Do you have a login account on the server that is...
Do you have a login account on the server that is hosting the NFS filesystem?

You could be getting that error because the NFS filesystem host doesn't recognize you as a member of group "group1".
14,420
Posted By Don Cragun
Are you willing to show us what output you get...
Are you willing to show us what output you get from the command: ulimit -a?
14,420
Posted By Don Cragun
OK. Since you won't answer my questions, there...
OK. Since you won't answer my questions, there is nothing I can do to help.

I leave it up to you to figure out what about line 11 in your shell script doesn't work with big files.
14,420
Posted By Don Cragun
OK. My mistake. The diagnostic was not from...
OK. My mistake. The diagnostic was not from awk, it was from your shell script.

What are the contents of file containing your shell script?

Was there any output from awk before you got that...
6,029
Posted By Don Cragun
I only see the two files printed side by side. I...
I only see the two files printed side by side. I do not see any other combinations of either input file in your desired output.

I'm obviously not contributing anything here, so I'll be quiet and...
14,420
Posted By Don Cragun
What awk script were you running when you got the...
What awk script were you running when you got the diagnostic: line 11: 7605 killed?

How big were the two files you were having awk read into memory when you got that diagnostic.

How much memory...
14,420
Posted By Don Cragun
I guess I wasn't clear enough in my request. ...
I guess I wasn't clear enough in my request. Please explain what diagnostics or erroneous output you have received from awk that make you believe awk is unable to process large files on your system....
6,029
Posted By Don Cragun
You say you aren't trying to go that route, but...
You say you aren't trying to go that route, but that is exactly what your "desired output" and your "re-looping" show in post #1 in this thread.

I don't know what "pipe hex the python script to...
6,029
Posted By Don Cragun
I don't understand what you're trying to do. ...
I don't understand what you're trying to do.

If your input files are over a 1Gb, which we might assume means that there are millions of lines in each file, are you saying that you want to produce...
14,420
Posted By Don Cragun
In general, awk can open large files. If you...
In general, awk can open large files.

If you are having problems trying to open a large file with awk, please give us details on what you are tying to do, how big the file is, what operating...
5,633
Posted By Don Cragun
Have you tried: #!/bin/bash expect -c " ...
Have you tried:
#!/bin/bash

expect -c "

set multilinetext 'first one two
second one two three
third one
fourth one two three four
fifth one two'

;"?
118,731
Posted By Don Cragun
Hi Chubler_XL, That might work with some...
Hi Chubler_XL,
That might work with some versions of bash, but it won't work with 3.2.57 (which comes with the most recent release of macOS Mojave) since the read built-in in that version doesn't...
118,731
Posted By Don Cragun
It is pretty easy in C with fseek(stdin, 0,...
It is pretty easy in C with fseek(stdin, 0, SEEK_END);, but I don't know of any portable (or even any way without explicit keyboard actions initiated by the user at the terminal) way to do that with...
6,358
Posted By Don Cragun
As well as adding code tags (as required by forum...
As well as adding code tags (as required by forum rules), please remember that only one topic is to be discussed in a thread.

Please start a new thread to discuss this new problem.

This thread...
8,722
Posted By Don Cragun
So use: awk '{$2=$4=$5=x; print}'
So use:
awk '{$2=$4=$5=x; print}'
6,358
Posted By Don Cragun
P.S. You might also note that the following code...
P.S. You might also note that the following code will produce the same results as the code shown in post #6:
for (i=msgtkn_20_lnno; i<msg_lnno; i++) {
sub("^[{]5:[{]", "5:", msg_arr[i]);
print...
6,358
Posted By Don Cragun
OK. First, use /usr/xpg4/bin/awk or nawk;...
OK.

First, use /usr/xpg4/bin/awk or nawk; not awk when you're using any Solaris/SunOS system. (I strongly recommend /usr/xpg4/bin/awk since it meets all of the POSIX standard's requirements.)
...
6,358
Posted By Don Cragun
With what you have shown us, we have to do a lot...
With what you have shown us, we have to do a lot of guessing to try to figure out what might be going wrong. Please, whenever you start a thread, tell us what operating system and shell you're...
11,389
Posted By Don Cragun
Please do not use two threads to discuss one...
Please do not use two threads to discuss one topic.

Please do not use one thread to discuss two topics. The second topic in this thread is already being discussed in the thread sed inside the awk...
19,699
Posted By Don Cragun
I guess I am confused. You have a company...
I guess I am confused.

You have a company policy that says you can't download software from the internet.

You are using a server that is not connected to the internet.

Why are you surprised...
Forum: What is on Your Mind? 08-19-2019
13,714
Posted By Don Cragun
Hi peasant, Welcome to the moderating team. ...
Hi peasant,
Welcome to the moderating team.
This is a well-deserved promotion.

Cheers,
Don
6,038
Posted By Don Cragun
Is this a homework assignment? Homework and...
Is this a homework assignment? Homework and coursework questions can only be posted in this forum (https://www.unix.com/homework-coursework-questions/) under special homework rules...
5,999
Posted By Don Cragun
The ls -ld directory... command will show you the...
The ls -ld directory... command will show you the group IDs associated with the directories you name. The users who are assigned to the various groups on your system are maintained in the file...
Showing results 1 to 25 of 500

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