Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: shamrock
Forum: AIX 10-26-2018
6,051
Posted By shamrock
Can you post here what nmon shows? It'd...
Can you post here what nmon shows?

It'd typically show all processes running on your system.
Are you having a performance problem or just interested in finding processes that are consuming ~75%...
458
Posted By shamrock
Can you post what you've tried to solve...
Can you post what you've tried to solve this...and what about records that are less than the current date
581
Posted By shamrock
Good catch...so here's the updated awk recipe: ...
Good catch...so here's the updated awk recipe:
awk '{if($NF==0 || $NF+0) print $NF}' file
581
Posted By shamrock
Yet another awk recipe... awk '{if($NF+0) print...
Yet another awk recipe...
awk '{if($NF+0) print $NF}' file
593
Posted By shamrock
Here's another way to do the same thing using ex:...
Here's another way to do the same thing using ex:
ex -s file2 <<eof
/call Update_Status/ r file1
wq
eof
Assumes the text you want inserted from file1 goes directly above the call to subroutine...
759
Posted By shamrock
Apart from what RudiC suggested you can print out...
Apart from what RudiC suggested you can print out the pattern space to individual files that are uniquely IP'd and after gawk finishes you can catenate them all into a single output file...
655
Posted By shamrock
Provide a sample of your input file....
Provide a sample of your input file....
889
Posted By shamrock
Because we're dealing with 2 different things...
Because we're dealing with 2 different things here...one is the kernel view of the file which is an unformatted stream of bytes...and another is the application's view of the file. Some applications...
1,432
Posted By shamrock
What language are you using?
What language are you using?
1,268
Posted By shamrock
You can use Don's example to cobble up...
You can use Don's example to cobble up something...and yes you can change the printf specifier so it'll take variable length fields instead of fixed length ones that may exceed the maximum specified...
13,302
Posted By shamrock
Something you can try to do is determine the...
Something you can try to do is determine the sizeof a dir entry on your system...it's a simple C program to write and it'd give you how much storage each dir entry takes up...although the "no. of...
851
Posted By shamrock
Does FileA have an asterisk as its trailing...
Does FileA have an asterisk as its trailing character... "FileA*" or is it simply "FileA"?
918
Posted By shamrock
Hope this helps... awk '{x[NR]=$0} END { ...
Hope this helps...
awk '{x[NR]=$0} END {
for (i=1;i<=NR;i++) {
if (length(x[i]) >= 18)
print x[i]
else
print x[i],x[++i]
}
}' file
306
Posted By shamrock
Great question...except that the inventors of awk...
Great question...except that the inventors of awk should be the target audience of this query
1,049
Posted By shamrock
Can you post what you've tried to solve this...
Can you post what you've tried to solve this...
797
Posted By shamrock
And just for nawks... awk '{sub("^...
And just for nawks...
awk '{sub("^ *","");s=(s?s " " $0:$0);if($0~".*]), ?$"){print s;s=""}}' file
1,374
Posted By shamrock
IMO you need to supply a suitable anchor for the...
IMO you need to supply a suitable anchor for the pattern you are looking for in order to filter out lines that are similar but don't match your criteria...
grep '^FILE1-FILE1TEST[^a-zA-Z]' output.out
1,673
Posted By shamrock
What do you mean by an empty file...a file with...
What do you mean by an empty file...a file with size zero bytes or one that is filled with zeros?
1,036
Posted By shamrock
No need for the while loop...first remove...
No need for the while loop...first remove everything that follows the comma on each line of the pattern file with awk and pipe its output to grep...
awk -F, '{print $1}' pattern_file | xargs grep {}...
640
Posted By shamrock
Hopefully this sed one liner might work... sed...
Hopefully this sed one liner might work...
sed -e 's/\([0-9]\)\([A-Z]\)/\1 \2/g;s/\([a-z]\)\([A-Z]\)/\1 \2/g;s/\([A-Z]\)\([A-Z]\)\([a-z]\)/\1 \2\3/g;s/^\([0-9]*\) //' file
562
Posted By shamrock
If you use a cross compiler then you can take...
If you use a cross compiler then you can take your source code and produce an object file for both SunOS and RHEL machines...
Forum: Solaris 09-22-2016
3,684
Posted By shamrock
I'm not trying to start a flame war here but IMO...
I'm not trying to start a flame war here but IMO a nudge in the right direction isn't snarky :cool:
Forum: Solaris 09-22-2016
3,684
Posted By shamrock
The reason for such an answer is to encourage the...
The reason for such an answer is to encourage the OP to come up with a solution instead of having others write it for them...the forumites are here to help but dont expect us to spoon feed others...
3,115
Posted By shamrock
I get the desired output by tweaking the FS in...
I get the desired output by tweaking the FS in your "first awk"...
awk -F"\"[,:]* *\"*" '{
for (i=1; i<NF; i++) {
if ($i ~ "path") print $(i+1)
else if ($i ~ "Sample Name")...
1,069
Posted By shamrock
Can you tell us what you mean by Rejects any...
Can you tell us what you mean by Rejects any images that are incorrectly named perhaps by providing examples of bad filenames...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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