06-18-2010
thanks a lot it is exactly what I wanted to know...
but I am little bit surprised that I got answer right from you, because yesterday I saw Fight club and today you are here, answering me ... so I am little bit scared that I wrote that answer by myself
.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I am using GnuWin32 sed and am having trouble with the regexp - i.e., they don't behave the same way as in UNIX (POSIX and and all that). I have a stream of data, e.g.:
11111'222?'22'33?'333'44444'55555'
I want to insert a \n after those apostrophes that are *not* preceded by a ?.
... (2 Replies)
Discussion started by: Simerian
2 Replies
2. UNIX for Advanced & Expert Users
Hi guys,
does anyone know how to test for a regular expression - i want to include it in a script to make sure the variable is a regexp
cheers (1 Reply)
Discussion started by: penfold
1 Replies
3. Shell Programming and Scripting
Hello Experts,
Can someone help me here:
I have a variable which contains a string with "".
set var1 {a}
set str1 {a is the element i want to match}
Now "regexp $var1 $str1" does not work?
("regexp {a\} $str1" works, but var1 gets it's value automatically from another script)
Is... (6 Replies)
Discussion started by: sumitgarg
6 Replies
4. Shell Programming and Scripting
I'd like to know if there is a catchall line for renaming the following patterns:
s01e03 -> 01x03
s4e9 -> 04x09
s10e08 ->10x08
and possibly even:
318 -> 03x18
1002 ->10x02
if its the first 3 or first digit number in the string.
thanks! (0 Replies)
Discussion started by: TinCanFury
0 Replies
5. UNIX for Dummies Questions & Answers
Good Day,
Im new to scripting especially awk and sed. I just would like to ask help from you guys about a sed command that prints the line immediately after a regexp, but not the line containing the regexp.
sed -n '/regexp/{n;p;}' filename
What if my regexp is 3 word or a sentence. Im... (3 Replies)
Discussion started by: ownins
3 Replies
6. Shell Programming and Scripting
Hello,
I cannot see what's wrong in my code.
When I run code below, it just print an empty string.
my $test = "SWER~~ERTGSDFGTHAS_RTAWGA_DFAS.x4-234253454.in";
if ($test = ~ m/\~{1,2}.*4/) {
print "$1\n";
}
else {
print "No match...\n";
}
Anyone know what I'm doing wrong?
... (4 Replies)
Discussion started by: urandom
4 Replies
7. Shell Programming and Scripting
Hi folks. I would like to remove the full parent (outer) xml tag from a file given a matching child (inner) tag, in a bash shell.
To be more specific, this is what I have so far:
$ cat myFile.xml
<Sometag></Sometag>
<Outer>
<Inner>1</Inner>
</Outer>
<Outer>
<stuff>alot</stuff>
... (3 Replies)
Discussion started by: BatManWSL
3 Replies
8. Shell Programming and Scripting
Hi, I have text file:
Name: xyz
Gender: M
Address: "120_B_C; ksilskdj; lsudlfw"
Zip: 20392
Name: KLM
Gender: F
Address: "65_D_F; wnmlsi;lsuod;,...."
Zip:90233I want to insert 2 new lines before the 'Address: ' line deriving value from this Address line value
The Address value in quotes... (1 Reply)
Discussion started by: ysrini
1 Replies
9. Shell Programming and Scripting
Hello,
I have two files file 1 and file 2 each having result of a query on certain database tables and need to compare for Col1 in file1 with Col3 in file2, compare Col2 with Col4 and output the value of Col1 from File1 which is a) not present in Col3 of File2 b) value of Col2 is different from... (2 Replies)
Discussion started by: RasB15
2 Replies
10. Shell Programming and Scripting
Using the awk below I am able to combine all the matching dates in $1, but I can not seem to remove the non-matching from the file. Thank you :).
file
20161109104500.0+0000,x,5631
20161109104500.0+0000,y,2
20161109104500.0+0000,z,2
20161109104500.0+0000,a,4117... (3 Replies)
Discussion started by: cmccabe
3 Replies
LEARN ABOUT DEBIAN
faxanswer
FAXANSWER(8) System Manager's Manual FAXANSWER(8)
NAME
faxanswer - tell a HylaFAX server to answer the telephone
SYNOPSIS
/usr/sbin/faxanswer [ -q queue-dir ] [ -h how ] modem
DESCRIPTION
faxanswer sends a message to the HylaFAX faxgetty(8) process servicing modem telling it to answer the telephone. This is useful, for exam-
ple, when a modem is used on a shared phone line and the server is configured to not normally answer the phone.
The specified modem can either be the name (typically the last component of the terminal port the modem is attached to), or the full name
of the associated FIFO named pipe file, e.g. ``FIFO.ttym2''.
OPTIONS
-q dir Use a spooling area other than /var/spool/hylafax.
-h Specify exactly how the phone should be answered. By default, the server process is instructed to answer the phone and accept
any kind of call (voice, data, fax). Discrimination of the type of call is dependent on a modem's adaptive-answer support. The
-h option can be used to force the server to answer the phone for particular type of call: one of fax, data, voice, any, extern
(to force faxgetty to invoke an external application to to handle the call), or dialX (where X is a dialstring to dial before
initiating a fax reception). If using dialX, the specified dialstring will likely need to end with a semicolon (``;'').
FILES
/var/spool/hylafax default spooling area
/var/spool/hylafax/FIFO fifo for contacting faxq
Consult hylafax-server(5) for a complete discussion of the structure and content of the spooling area.
SEE ALSO
hylafax-server(5), faxgetty(8)
May 23, 1996 FAXANSWER(8)