10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Team,
I have a requirement in such a way that need to split the file into two based on which column particular value appears.Please find my sample file below.
Lets consider the delimiter of this file as either comma or two colons.(:: and ,). So I need to split the file in such a way that all... (2 Replies)
Discussion started by: ginrkf
2 Replies
2. UNIX for Advanced & Expert Users
Hello All,
I have records in a file in a pattern A,B,B,B,B,K,A,B,B,K
Is there any command or simple logic I can pull out records into multiple files based on A record? I want output as
File1: A,B,B,B,B,K
File2: A,B,B,K (9 Replies)
Discussion started by: deal1dealer
9 Replies
3. Shell Programming and Scripting
I need to split the file
Conditions:
Ignore any record that either starts with 1 or 9
Split the file at position 404 , if position 404 is abc or def then write all the records in a file > File 1 , the remaining records should go in to a file > File 2
Further I want to split the... (7 Replies)
Discussion started by: protech
7 Replies
4. UNIX for Dummies Questions & Answers
i have file1.txt
asdas|csada|130310|0423|A1|canberra
sdasd|sfdsf|130426|2328|A1|sydney
Expected output : on eaceh third and fourth colum, split into each two characters
asdas|csada|13|03|10|04|23|A1|canberra
sdasd|sfdsf|13|04|26|23|28|A1|sydney (10 Replies)
Discussion started by: radius
10 Replies
5. Shell Programming and Scripting
I have a file with data records separated by multiple equals signs, as below.
==========
RECORD 1
==========
RECORD 2
DATA LINE
==========
RECORD 3
==========
RECORD 4
DATA LINE
==========
RECORD 5
DATA LINE
==========
I need to filter out all data from this file where the... (2 Replies)
Discussion started by: Finja
2 Replies
6. Shell Programming and Scripting
Hi Friends,
Below is my requirement. I have a file with the below structure.
0001A1....
0001B1..
....
0001L1
0002A1
0002B1
......
0002L1
..
the first 4 characters are the sequence numbers for a record, A record will start with A1 and end with L1 with same sequence number. Now the... (2 Replies)
Discussion started by: diva_thilak
2 Replies
7. Shell Programming and Scripting
Arun kumar something somehting Enterting in to the line
.
.
.
.
Some text text Finshing the sentence
Some other text
.
.
.
.
Again something somehting Enterting in to the line
.
.
.
.
.
.
Again text text Finshing the sentence (6 Replies)
Discussion started by: arukuku
6 Replies
8. UNIX for Dummies Questions & Answers
Hi
a.123
a.136
a.146
B.124
B.39
C.24
I have the files in above format ;
I want to list out the files which has maximum value in each group as pipe delimited :
a.146|B.124|C.24
Please help me in this.
Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies
9. Shell Programming and Scripting
I've got these 2 files, FILE.txt and SPLIT_BY.txt:
FILE.txt contents:
FILE01
FILE02
FILE03
FILE04
FILE05
FILE06
FILE07
FILE08
FILE09
FILE10
FILE11
FILE12
FILE13
FILE14
FILE15SPLIT_BY.txt contents:
2
5 (4 Replies)
Discussion started by: byte711
4 Replies
10. Shell Programming and Scripting
Hi, unix Gurus,
I want to split file based on sub_title. for example:
original file
fruit
apple
watermelon
meat
pork
fish
beef
expected result file
file1
fruit
apple
watermelon
file2
meat
pork
fish
beef. (4 Replies)
Discussion started by: ken002
4 Replies