Hi people
I am trainee at a new job which requires me to use UNIX, am more than comfortable dealing with processes and so on, problem I am having is that files get to big 1000s of lines, and I am trying to number these lines using a script so I can deal with these files without losing track of which lines am looking at, problem is I cant get the number to go in front of the lines.
For example assume the file has the contents as follows:
Line of text One
Line of text Two
Line of text Three
Line of text Four
I want it to look like this
1)Line of text One
2)Line of text Two
3)Line of text Three
4)Line of text Four
But what I keep getting is
1)
2)
3)
4)
Line of text One
Line of text Two
Line of text Three
Line of text Four
My employer doesn’t want me using SED or AWK
, which is a shame because I got it to work easy with either of them.
Also temp variables wont do as the system is restarted every 2hrs, and the process am trying to achieve has to be automated.
Any tips or suggestions will greatly appreciated.
thanks