Search Results

Search: Posts Made By: chronics
Forum: Solaris 06-04-2011
7,598
Posted By chronics
thanks jlliagre for your elaboration this has...
thanks jlliagre for your elaboration this has given me some usefull insight into grep. I opened a thread on the less issue a while ago and concluded that it was just due to being an obsolete version...
Forum: Solaris 06-03-2011
7,598
Posted By chronics
Thanks for the responses. SunOS 5.10 - Bash...
Thanks for the responses.

SunOS 5.10 - Bash - It does seem to have obsolete utils though such as a less that does not seem to know what is a real newline as opposed to a newline on the console...
Forum: Solaris 06-03-2011
7,598
Posted By chronics
solaris redirection
Hi

I am using solaris 10. When running a grep command with multiple files the output is the same as the order of the input. As soon as I pipe the output to another command then it seems that...
2,393
Posted By chronics
hi again birei This works on linux and...
hi again birei

This works on linux and cygwin but doesn't on solaris 10. On solaris i get the error output is being passed onto sed which wasnt happening before but the order is still wrong as the...
2,393
Posted By chronics
Birei I dont want to get rid of grep's error...
Birei

I dont want to get rid of grep's error message, i just want it to come out in the same order as the input files it recieves ie what happens when you do grep -c
2,393
Posted By chronics
grep output
hi

i am running grep -c on a bunch of files some of which may be non existent. The output i get is in the same order as the files grep checks and this is what i want as i need to copy the output...
1,808
Posted By chronics
Thanks tene Makes a bit more sense now. Was...
Thanks tene

Makes a bit more sense now. Was confused as to what the ++ was incrementing.
1,808
Posted By chronics
awk arrays
Hi

Can someone please explain the logic of awk arrays. I have been doing some reading but I dont understand this:

#!/usr/bin/gawk -f

{
arr[$2]++;
}
end
{
for(i in arr)
{
...
3,529
Posted By chronics
ok thanks vgersh will try this out.
ok thanks vgersh will try this out.
3,529
Posted By chronics
Thanks will use functions vgersh99 posted. I take...
Thanks will use functions vgersh99 posted. I take it there is no simple way setting fs to a single character then, at least in solaris versions of awk/nawk
3,529
Posted By chronics
Ideally i would like to use gawk fieldwidths...
Ideally i would like to use gawk fieldwidths variable so i can extract data from fixed width files but as that is not available i just want each character (including white spaces) to be a represent a...
3,529
Posted By chronics
awk - setting fs to equal any single character
Hi
Does anyone know how to set any character as the field separator with awk/nawk on a solaris 10 box. I have tried using /./ regex but this doesnt work either and im out of ideas.

thanks
11,387
Posted By chronics
more and less have the problem but tail works...
more and less have the problem but tail works good. Thanks purdym. It does seem to be due to an obsolete less version but cant do anything about that. Strange though for this to be installed on...
11,387
Posted By chronics
Most lines are hundreds of characters across. I'm...
Most lines are hundreds of characters across. I'm also wandering if a line feed is added by less to wrap the text. Anyone know of any ssh clients/terminals that dont do this or allow you to copy a...
11,387
Posted By chronics
copying less output with putty
I am attempting to copy long lines from "less" to notepad++ logged into remote system using putty but im having all sorts of problems. When i run "less filename" the lines wrap so when i copy and...
Showing results 1 to 15 of 15

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