Skip to main content
edited title
Link
tshepang
  • 67.8k
  • 94
  • 227
  • 297

Is there a way to filtermodify a file in place-place?

Tweeted twitter.com/#!/StackUnix/status/57414867900043264
edited body; edited tags; edited title
Source Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k

Is there a way to filter a file in situplace?

I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns - is there a way to do this without using another file?

Let's say I want to filter out all the lines containing "foo:"foo: for example...

Is there a way to filter a file in situ?

I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns - is there a way to do this without using another file?

Let's say I want to filter out all the lines containing "foo:" for example...

Is there a way to filter a file in place?

I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns is there a way to do this without using another file?

Let's say I want to filter out all the lines containing foo: for example...

rm apology
Source Link
tshepang
  • 67.8k
  • 94
  • 227
  • 297

probably a simple question for you all - I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns - is there a way to do this without using another file?

Let's say I want to filter out all the lines containing "foo:" for example...

probably a simple question for you all - I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns - is there a way to do this without using another file?

Let's say I want to filter out all the lines containing "foo:" for example...

I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns - is there a way to do this without using another file?

Let's say I want to filter out all the lines containing "foo:" for example...

Source Link
Nim
  • 1k
  • 1
  • 9
  • 13
Loading