Search Results

Search: Posts Made By: Don Cragun
2,495
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".
1,011
Posted By Don Cragun
So use: awk '{$2=$4=$5=x; print}'
So use:
awk '{$2=$4=$5=x; print}'
2,683
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
2,731
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
272
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...
272
Posted By Don Cragun
Add the user to the group(s) that are associated...
Add the user to the group(s) that are associated with the directories you want the user to be able to create files in.
1,058
Posted By Don Cragun
There are a few reasons why your original sed...
There are a few reasons why your original sed script can't work.

Your first asterisk in your RE needs a period before it.
There is nothing in your script to avoid printing lines that do not...
2,906
Posted By Don Cragun
I guess I still don't understand what output...
I guess I still don't understand what output you're trying to produce.

Everything in the second column of the output you showed us in the image you included in post #5 in this thread is identical...
2,906
Posted By Don Cragun
So from your description, you seem to be saying...
So from your description, you seem to be saying that the output you want instead of the output you've shown us would be just the two lines consisting of the one containing the dates and the line that...
3,245
Posted By Don Cragun
Hi rdrtx1, Unfortunately, the above script...
Hi rdrtx1,
Unfortunately, the above script won't match 80%, 90%, or 100%. One could use:
awk '/dev/ && $5 ~ /([7-9][1-9]|(8|9|10)0)%/' infile
but I find the suggestions provided by...
2,090
Posted By Don Cragun
I'm lost... What operating system are you...
I'm lost...

What operating system are you using?

What do you do on AIX that works on AIX but is not working on the OS you are using now?

On AIX find is a utility; not a function.
1,223
Posted By Don Cragun
Are you going to tell us that: if [[ $GAPNUM...
Are you going to tell us that:
if [[ $GAPNUM -ge 5 ]] then
isn't your code either?

There are at least two problems here that don't match with your description. If $GAPNUM expands to 0 as you...
1,127
Posted By Don Cragun
Hi rdrtx1, I guess I don't understand why you...
Hi rdrtx1,
I guess I don't understand why you posted this code. With the sample input provided, the above code copies the input file to the output (since no input line has more than 6 fields). ...
1,127
Posted By Don Cragun
The awk print statement says exactly what is to...
The awk print statement says exactly what is to be printed. Since fields 1, 2, and 3 (and the field separators following them) are not mentioned, they are not printed. The FNR==1 (with no specified...
1,127
Posted By Don Cragun
Wouldn't: awk -F'\t' 'NF>3 {print $4 FS $5 FS...
Wouldn't:
awk -F'\t' 'NF>3 {print $4 FS $5 FS $6} FNR==1' File
be easier?
1,078
Posted By Don Cragun
Hi arm, Please be very careful when posting...
Hi arm,
Please be very careful when posting your code. When I tried to run your script with the data you supplied, the output I got was:
United
(Note that there is a space at the end of that...
1,137
Posted By Don Cragun
Hi Corona688, That might be true in some...
Hi Corona688,
That might be true in some implementations. (And the BSD based awk on MacOS Version 10.14.5 does work that way.) However, the description of the awk RS variable in the standards is:
196
Posted By Don Cragun
You are setting PRIMARY_CONF in your shell script...
You are setting PRIMARY_CONF in your shell script and your script is seeing the value that you are setting. You are setting STANDBY_CONF in a shell that you are running on COB_HOST; not in the shell...
1,186
Posted By Don Cragun
I don't know of any OS that randomly picks the...
I don't know of any OS that randomly picks the next PID to use when creating a new process. But, it is theoretically possible to do it that way.

Most of the systems I have worked on have a...
1,524
Posted By Don Cragun
Similarly, if you change nezabudka's code from: ...
Similarly, if you change nezabudka's code from:
gawk '{u[$0]; l++} ENDFILE {print length(u), l, FILENAME; delete u; l=0}' * | sort -k1,1n

to:
gawk '{u[$0]; l++} ENDFILE {print l, length(u),...
1,524
Posted By Don Cragun
If you change: gawk '{l[$0]++} ENDFILE {for (i...
If you change:
gawk '{l[$0]++} ENDFILE {for (i in l) {if (l[i]==1) u++;t+=l[i]} print t, u, FILENAME; delete l; u=t=0}' *
to:
gawk '{l[$0]++} ENDFILE {for (i in l) {u++;t+=l[i]} print t, u,...
1,524
Posted By Don Cragun
You might note that the suggestion in post #5 in...
You might note that the suggestion in post #5 in this thread invokes awk (using only standard awk features) once and sort twice producing both of the requested sorted outputs. Unlike some of the...
1,524
Posted By Don Cragun
Please always tell us what shell and operating...
Please always tell us what shell and operating system you're using when you start a new thread. Don't assume that everyone who wants to help you has read all of your previous threads.
#!/bin/bash...
2,688
Posted By Don Cragun
Hi MadeInGermany, The original awk didn't have...
Hi MadeInGermany,
The original awk didn't have as many built-in variables as nawk. For example, if an original awk script used a variable named RS (which was not defined by the original awk but is...
230
Posted By Don Cragun
While I agree with what bakunin said in post #5...
While I agree with what bakunin said in post #5 in this thread, note that the find -newermt primary is not in the standards either.

This is why you are always asked to tell us the operating system...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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