Search Results

Search: Posts Made By: revax
7,173
Posted By revax
Splitting a file into unequal parts
How do I split a file into many parts but with different amounts of lines per part? I looked at the split command but that only splits evenly.

I'd like a range specified to determine how many...
8,495
Posted By revax
removing non-printable chars from multiple files
How do I remove non-printable characters from all txt files and output the results to one file?

I've tried the following:
tr -cd '[:print:]\n' < *.txt > out.txt
and it gives ambiguous redirect...
3,361
Posted By revax
Thanks. Seems like awk is easier for this task....
Thanks. Seems like awk is easier for this task. :)
3,361
Posted By revax
Delete lines that contain 3 or more words?
How can I delete lines that contain 3 or more words?
I have a file, old.txt, that has multi-word phrases in it and I want to remove the lines with 3 words or more and send the output to new.txt.
...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy