Search Results

Search: Posts Made By: mschpers
10,475
Posted By Corona688
You agreed not to bump posts when you registered....
You agreed not to bump posts when you registered.

How about awk? It has built-in split-on-string abillities.
echo "a;;;b;;;c;;;d;;;" | awk 'BEGIN {RS=";;;" ; N=1 } { f=sprintf("comment%d.txt",...
10,475
Posted By Corona688
Put quotes around /;;;/ In she shell it's a...
Put quotes around /;;;/

In she shell it's a seperator, you could do echo a ; echo b to run two commands on one line. so it has special meaning to the shell and needs quoting to put it in a string.
10,475
Posted By jim mcnamara
Try csplit - not I'm not completely clear on your...
Try csplit - not I'm not completely clear on your requirements but this is close:

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

This will create comment0001 -> comment9999, one file for...
10,475
Posted By jim mcnamara
my bad - '/;;;/' you need single quotes...
my bad - '/;;;/'

you need single quotes around the regex... see above
Showing results 1 to 4 of 4

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