Search Results

Search: Posts Made By: mschpers
4,060
Posted By mschpers
I hate to be a pain, but I'm still getting the...
I hate to be a pain, but I'm still getting the return "awk: illegal statement at source line 3
context is
{print > "comment" >>> c <<< ".txt"}" when I run this code. Does anyone know how what is...
4,060
Posted By mschpers
They are attached now. Monica.txt is the full...
They are attached now. Monica.txt is the full file, and comment0001.txt and comment0002.txt are samples of desired output.

I should also mention that I don't care if the ;;; is present in the...
4,060
Posted By mschpers
I tried this and got: awk: illegal...
I tried this and got:

awk: illegal statement at source line 3
context is
{print > "comment" >>> c <<< ".txt"}

Does anyone know what this means and how to fix this?
4,060
Posted By mschpers
LINUX to UNIX... changes needed?
I developed the following in LINUX:
cat monica.txt | sed 's/;;;/\n;;;/g'> fixed.txt
csplit -f comment -n 4 fixed.txt '/;;;/' {*}

Basically, I want it to take the file monica.txt and put every...
10,336
Posted By mschpers
I apologize. I did not realize that editing a...
I apologize. I did not realize that editing a post would bump my post. I thought I had to actually put up a new reply for that. Please know that I did not intend to violate the rules.

That said,...
10,336
Posted By mschpers
When I run csplit -f comment -n 4...
When I run

csplit -f comment -n 4 Me_thread_spell.txt '/;;;/'

It only separates the main file into 2 files (which aren't text files), rather than the 2500 times that the actual ;;; occurs in...
10,336
Posted By mschpers
syntax error?
It appears that

csplit -f comment -n 4 Me_thread_spell.txt /;;;/

is exactly what I need, but when I run it, I get an error:

-bash: syntax error near unexpected token `;;;'

Any ideas?
10,336
Posted By mschpers
Split and Rename files using Terminal and bin/bash
I have a file named Me_thread_spell.txt that I want to split into smaller files. I want it to be split in each place there is a ;;;. For example,

blah blah blah ;;;
blah bhlah hlabl
awasnceuir...
Showing results 1 to 8 of 8

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