Search Results

Search: Posts Made By: shamrock
Forum: AIX 10-26-2018
17,746
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%...
1,077
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
1,385
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
1,385
Posted By shamrock
Yet another awk recipe... awk '{if($NF+0) print...
Yet another awk recipe...
awk '{if($NF+0) print $NF}' file
1,192
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...
1,610
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...
1,346
Posted By shamrock
Provide a sample of your input file....
Provide a sample of your input file....
3,505
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...
3,181
Posted By shamrock
What language are you using?
What language are you using?
3,907
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...
35,933
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...
2,744
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"?
1,854
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
672
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,431
Posted By shamrock
Can you post what you've tried to solve this...
Can you post what you've tried to solve this...
1,507
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
2,392
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
3,269
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?
2,386
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 {}...
944
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
902
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
6,945
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
6,945
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...
4,952
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,990
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

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