04-15-2016
thanks a lot ravinder
One more thing, I will validate the number of delimiters based on the very first row of the file that is the header. So can we include that as well in the check with the script u gave.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ,
I need to get the delimiter "-" count in a particular string.
string= SYS_NAME-123-S5-2008-10-20.LOG
the delimit "-" count is 5 .
Using sed or awk can I know the count ?
I have seen how to get the count for delimiter in a file but not a string :(
Thanks,
Priya (8 Replies)
Discussion started by: priyam
8 Replies
2. Shell Programming and Scripting
Hi,
I have below sample data file. I want to count the delimiter no of times repeated and replace with new line characters. The new line characters appear somtimes in between of the records and end of the record:
input file:
jack;1500;manager;boston\n
jim;2000;\n
developer;texas\n... (7 Replies)
Discussion started by: dsubha
7 Replies
3. Shell Programming and Scripting
I have several hundred files that look like this:
ABB110405110000.rawfma8
AAB110405110001.rawhr32
If I use the statement ls | awk '{x=$0;gsub("","",x)
I see that all characters other than 0-9 are eliminated but how do I eliminate all characters including numbers after the "."
In my mind I... (1 Reply)
Discussion started by: rdburg
1 Replies
4. Shell Programming and Scripting
Hello All,
I got a requirement when I was working with a file. Say the file has unloads of data from a table in the form
1|121|asda|434|thesi|2012|05|24|
1|343|unit|09|best|2012|11|5|
I was put into a scenario where I need the field count in all the lines in that file. It was simply... (6 Replies)
Discussion started by: PikK45
6 Replies
5. Shell Programming and Scripting
Hi I wrote shell script for count the deleimeters and send it to reject file
which are exeeseding number of count.
But script is not working properly...
Can you please check the below script and modify it as required.
ex :
1,abc
2,mno
3,pqr
4,xyz,error
As per the requiredment last... (3 Replies)
Discussion started by: victory
3 Replies
6. Shell Programming and Scripting
Hi All,
I'm stuck-up in finding a way to skip the delimiter which come within double quotes using awk or any other better option. can someone please help me out.
Below are the details:
Delimited: |
Sample data: 742433154|"SYN|THESIS MED CHEM PTY.... (2 Replies)
Discussion started by: BrahmaNaiduA
2 Replies
7. Shell Programming and Scripting
Hi
I want to check delimiter in file. Delimiter in my file is ~|*
sample of file :
ABC~|*edgf~|*T1J333~|*20121130
ABC~|*sdaf~|*T1J333~|*20121130
ABC~|*fsdg~|*T1J333~|*20121130
ABC~|*dfsg~|*T1J333~|*20121130
in this i want to count number delimiter occur is 4 in each row if count is... (21 Replies)
Discussion started by: MOHANP12
21 Replies
8. Shell Programming and Scripting
The input file is a .dat file which is delimited by null (^@ in Linux). On a windows PC it looks something like this (numbers are masked with 1).
https://i.imgur.com/nta2Gqp.jpg
The entire file is in one row but it has multiple records - each record contains 80 fields i.e. there are 81 counts... (9 Replies)
Discussion started by: digitalnirvana
9 Replies
9. Shell Programming and Scripting
I have a huge file (around 4-5 GB containing 20 million rows) which has text like:
<EOFD>11<EOFD>22<EORD>2<EOFD>2222<EOFD>3333<EORD>3<EOFD>44<EOFD>55<EORD>66<EOFD>888<EOFD>9999<EORD>
Actually above is an extracted file from a Sql Server with each field delimited by <EOFD> and each row ends... (8 Replies)
Discussion started by: amvip
8 Replies
10. UNIX for Advanced & Expert Users
I got a requirement where I need to compare two files wrt to each columns and write the corresponding difference in another file along with some identification showing mismatched columns. Pointing out the mismatched columns is my main problem statement. For example we have files like:
File 1 ... (8 Replies)
Discussion started by: piyush pankaj
8 Replies
FCALL(3) Library Functions Manual FCALL(3)
NAME
fcall - recreate packet delimiters
SYNOPSIS
Fctlfd = open(".../ctl", ORDWR);
Fwrite(ctlfd, "push fcall", 10);
DESCRIPTION
Fcall is a stream module (see stream(3)) that can be pushed onto a connection to a 9P file server. The function of the module is to recre-
ate packet delimiters lost in transmission. The 9P protocol demands that network connections preserve delimiters between messages written
to the file server. Stream based protocols, like TCP, are unable to preserve delimiters. The delimiters must be recreated by the receiver
before a packet is read by a file system.
Fcall examines a data stream and identifies 9P messages from their type. The length of the message is computed from the header. Data is
collected and buffered by the stream module until an entire 9P message has been assembled. A single message is then delimited and sent
upstream to be read by a file server.
SEE ALSO
stream(3), ip(3), exportfs(4), srv(4)
SOURCE
/sys/src/9/port/stfcall.c
FCALL(3)