i face the following problem as i use sed to ignore some columns of an output.
the command i use is
sed 's/^\([A-Za-z0-9]*\) \([A-Za-z0-9]*\).*/\1 \2/'
as i only want the 2 first columns the command finger returns
the problem is that for some lines the results are fine but for other lines
it only prints the 1 column and totally ignores the 2nd..
when i change the order like this
sed 's/^\([A-Za-z0-9]*\) \([A-Za-z0-9]*\).*/\2 \1/'
as i'm trying to find out what's wrong with these lines,the output of the column 1 is ok but for those lines column 2 did not appear before,now it appears as a white space.