09-29-2012
Is this about the case construct?
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Lets say I wanted to add a ; before the last 6 characters of my variable how would I do this? (2 Replies)
Discussion started by: puttster
2 Replies
2. Shell Programming and Scripting
I have logs which is having strings like below,
errorMsg;;
errorMsg;bad input;
so I need to grep from logs file which searches for errorMsg followed by semicolon followed by any text and then ending again with semicolon.
More importantly, I should not get errorMsg and having nothing... (4 Replies)
Discussion started by: gopikrish81
4 Replies
3. Shell Programming and Scripting
Hello,
I'm trying to remove an arbitrary number of semicolons at the end of each line in the input file.
Input:
44;I;1000031;;;B;0137;0;;01.02.2008;03.02.2009;;;;;;;;;;;;;0028-101746;;;
45;I;1000031;;;B;0137;0;;01.02.2008;03.02.2009;;;;;;;;;;;;;0028-101746;;;;;
... (6 Replies)
Discussion started by: uioreanu
6 Replies
4. Shell Programming and Scripting
Hi Gurus!
Example file:
1;AAA;BBB
2;CCC;DDD
We want to replace semicolons to tabulators.
Like this:
1 AAA BBB
2 CCC DDD
We have tried these codes.
With PERL:
#!/bin/bash
for i in `find /folder1/ -name "*.CSV"`
do
bi="`basename $i awk -F"." {'print $1'}`"
cat... (2 Replies)
Discussion started by: JanneN
2 Replies
5. UNIX for Dummies Questions & Answers
There are some 40 files created by accident with filenames with semicolons, as well as other non-printable characters. I can not find a correct way to delete them. This is what I tried:
bash-2.03# ls bad|head -1
000025;001;1377795616;
bash-2.03# rm "bad/000025;001;1377795616;???"
rm:... (17 Replies)
Discussion started by: migurus
17 Replies
6. Shell Programming and Scripting
Hello experts,
I have below file:
1
2
3
4
5
6
;
7
8
9
10
XXXX
1
;
2
3 (4 Replies)
Discussion started by: manuswami
4 Replies
LEARN ABOUT DEBIAN
pdsend
pdsend(1) General Commands Manual pdsend(1)
NAME
pdsend - send messages to pd on this or a remote machine
SYNOPSIS
pdsend port-number [hostname] [udp|tcp]
DESCRIPTION
Pdsend sends messages to pd(1), via a socket conection, from pdsend's standard input. This input can be any stream of Pd messages sepa-
rated by semicolons. This is probably the easiest way to control pd from another application. The protocol used is easy to implement and
is called FUDI.
The port number should agree with the port number of a "netreceive" object within pd. The hostname is "localhost" by default and can be a
domain name or an IP address. The protocol is "tcp" by default; this does a handshake to guarantee that all messages arrive complete and
in their correct order; if you are sending messages locally or point-to-point you can often get away with the faster udp protocol instead.
You can also use this to talk to a Max "pdnetreceive" object or even just a "pdreceive" in another shell. If you're writing another pro-
gram you're welcome to just grab the sources for pdsend/pdreceive and adapt them to your own ends; they're part of the Pd distribution.
SEE ALSO
pd(1), pdreceive(1)
GNU
1996 Mar 20 pdsend(1)