Sponsored Content
Top Forums Shell Programming and Scripting Count the delimeter from a file and delete the row if delimeter count doesnt match. Post 302449858 by rdcwayx on Tuesday 31st of August 2010 08:16:57 PM
Old 08-31-2010
provide some sample input, and your expect O/P.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to read and parse the content of csv file containing # as delimeter into fields using Bash?

#!/bin/bash i=0 cat 1.csv | while read fileline do echo "$fileline" IFS="#" flds=( $fileline ) nrofflds=${#flds} echo "noof fields$nrofflds" fld=0 while do echo "noof counter$fld" echo "$nrofflds" #fld1="${flds}" trying to store the content of line to fields but i... (4 Replies)
Discussion started by: barani75
4 Replies

2. Shell Programming and Scripting

how to display column value in a row with space as delimeter

Hi I need to write a small script to kill the process id of particular job in one shot , Example > ps PID TTY TIME COMMAND 16280 pts/70 0:00 sh 16278 pts/70 0:00 rlogind 16197 pts/70 0:00 ps 1234 pts/70 0:00 runflow 2341 pts/70 0:00 runflow 12673 pts/70 ... (6 Replies)
Discussion started by: mani_isha
6 Replies

3. Shell Programming and Scripting

count identical strings print last row and count

I have a sorted file like: Apple 3 Apple 5 Apple 8 Banana 2 Banana 3 Grape 31 Orange 7 Orange 13 I'd like to search $1 and if $1 is not the same as $1 in the previous row print that row and print the number of times $1 was found. so the output would look like: Apple 8 3 Banana... (2 Replies)
Discussion started by: dcfargo
2 Replies

4. Shell Programming and Scripting

append delimeter count for each line in text file

Hi guys, plz tell me how to achieve this how to delete the lines in a file using sed command (6 Replies)
Discussion started by: hari908
6 Replies

5. Shell Programming and Scripting

Needed value after the last delimeter in a file with varying number of delimited columns

Hi All, My file has the records as below: aaa\bbb\c\dd\ee\ff\gg zz\vv\ww pp\oo\ii\uu How can I get the value after the last delimeter. My o/p: gg ww uu Thanks in Advance, (5 Replies)
Discussion started by: HemaV
5 Replies

6. Shell Programming and Scripting

Replacing the delimeter with other delimeter

Hi Friends, I have a file1.txt as below 29123973Ç2012-0529Ç35310124Ç000000000004762Ç00010Ç20Ç390ÇÇÇÇF 29123974Ç20120529Ç35310125Ç0000000000046770Ç00010Ç20Ç390ÇÇÇÇF 29123975Ç20120529Ç35310126Ç0000000000046804Ç00010Ç20Ç390ÇÇÇÇF 29123976Ç20120529Ç35310127Ç0000000000044820Ç00010Ç20Ç390ÇÇÇÇF i have a file2.txt... (4 Replies)
Discussion started by: i150371485
4 Replies

7. Shell Programming and Scripting

Split line of file from delimeter.

I have a below file. INPUT FILE select * from customer MERGE INTO Archive; delete from Employee; using select * from customer; delete from employee; select * from Employee; insert into employee(1,1); OUTPUT FILE select * from customer MERGE INTO Archive delete from Employee using... (5 Replies)
Discussion started by: Mohin Jain
5 Replies

8. UNIX for Beginners Questions & Answers

Count the number of files to delete doesnt match

Good evening, need your help please Need to delete certain files before octobre 1 2016, so need to know how many files im going to delete, for instance ls -lrt file_20160*.lis!wc -l but using grep -c to another file called bplist which contains the list of all files backed up doesn match... (7 Replies)
Discussion started by: alexcol
7 Replies

9. Shell Programming and Scripting

How to change comma delimeter in the file to number?

I have a file H,20180624200732,VPAS,TRANS_HDR,20180724, VPAS.TRANS_HDR.20180724.01.txt, ,93, T,1, I have to change and instead first comma put ",1" like below H,20180624200732,VPAS,TRANS_HDR,20180724, VPAS.TRANS_HDR.20180724.01.txt,1,93, T,1, I made sed "2s/, /,1/"... (8 Replies)
Discussion started by: digioleg54
8 Replies

10. Shell Programming and Scripting

Large File masking incorrectly happening Ç delimeter issue

The OS version is Red Hat Enterprise Linux Server release 6.10 I have a script to mask some columns with **** in a data file which is delimeted with Ç , I am using awk for the masking , when I try to mask a small file the awk works fine and masks the required column , but when the file is... (6 Replies)
Discussion started by: LinuxUser8092
6 Replies
tapset::tcpmib(3stap)													     tapset::tcpmib(3stap)

NAME
tapset::tcpmib - systemtap tcpmib tapset DESCRIPTION
tcpmib_get_state Get a socket's state See function::tcpmib_get_state(3stap) for details. tcpmib_local_addr Get the source address See function::tcpmib_local_addr(3stap) for details. tcpmib_remote_addr Get the remote address See function::tcpmib_remote_addr(3stap) for details. tcpmib_local_port Get the local port See function::tcpmib_local_port(3stap) for details. tcpmib_remote_port Get the remote port See function::tcpmib_remote_port(3stap) for details. tcpmib.ActiveOpens Count an active opening of a socket See probe::tcpmib.ActiveOpens(3stap) for details. tcpmib.AttemptFails Count a failed attempt to open a socket See probe::tcpmib.AttemptFails(3stap) for details. tcpmib.CurrEstab Update the count of open sockets See probe::tcpmib.CurrEstab(3stap) for details. tcpmib.EstabResets Count the reset of a socket See probe::tcpmib.EstabResets(3stap) for details. tcpmib.InSegs Count an incoming tcp segment See probe::tcpmib.InSegs(3stap) for details. tcpmib.OutRsts Count the sending of a reset packet See probe::tcpmib.OutRsts(3stap) for details. tcpmib.OutSegs Count the sending of a TCP segment See probe::tcpmib.OutSegs(3stap) for details. tcpmib.PassiveOpens Count the passive creation of a socket See probe::tcpmib.PassiveOpens(3stap) for details. tcpmib.RetransSegs Count the retransmission of a TCP segment See probe::tcpmib.RetransSegs(3stap) for details. SEE ALSO
function::tcpmib_get_state(3stap), function::tcpmib_local_addr(3stap), function::tcpmib_remote_addr(3stap), function::tcpmib_local_port(3stap), function::tcpmib_remote_port(3stap), probe::tcpmib.ActiveOpens(3stap), probe::tcpmib.AttemptFails(3stap), probe::tcpmib.CurrEstab(3stap), probe::tcpmib.EstabResets(3stap), probe::tcpmib.InSegs(3stap), probe::tcpmib.OutRsts(3stap), probe::tcpmib.OutSegs(3stap), probe::tcpmib.PassiveOpens(3stap), probe::tcpmib.RetransSegs(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::tcpmib(3stap)
All times are GMT -4. The time now is 08:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy