1

I'm trying to remove columns 75 through 85. The colrm command works, but the problem is that it stops whenever it finds an extended ASCII character in the file.

So, my question is this: is there anyway to delete those columns from files that have extended ASCII in them?

1
  • 1
    “Extended ASCII” is just confusing terminology for “non-ASCII”. What encoding is the file in? Do you want to remove those columns counting in bytes or characters? Mar 18, 2016 at 21:17

1 Answer 1

1

This command will remove columns 75 to 85 (counting bytes) from input.txt:

cat input.txt | cut -b 75-85 --complement
2
  • 1
    A side note: formulating your rather short answer as a question brings it straight to Low-quality queue. I suggest you to write answers in affirmative tone. I made an edit to give you an example, you can re-edit your answer if you like. Mar 18, 2016 at 13:06
  • The command you submitted works perfectly. Thank you.
    – ignatius
    Mar 19, 2016 at 1:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .