Quote:
Originally Posted by DearWebby
Can I use something like that to cut the first n characters from each line?
|
That should have been covered in your class sessions or other course resources. LQ is here to help people when they get stuck, not to do people's homework. What have you tried so far?
EDIT:
BTW, if you changed the first character of every line the output would be (in CODE tags so it lines up nicely):
Code:
0-------------
0 1 0 0 1 0 0
0 1 1 0 0 0 0
0 1 1 1 1 1 1
0 1 1 1 1 1 1
0-------------
EDIT2:
Have you learned how to search the online manual database (the man pages) by keywords? Try
man -k cut to get a list of commands about cutting. The manual section 1 commands are the most relevant for introductory scripting. You can restrict the list to those with
man -k cut | grep '(1)'. When you want to know more about a listed command you can view its man page with, for example,
man cut