11-28-2007
me works too
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
HI all,
i want to run various Unix cmds thru a java prg. following is the code which i have written.
-------------------------------------------------------------------
import java.io.*;
class Run
{
public static void main(String args)
{
String ls_str;
try{
Process cmd_su =... (1 Reply)
Discussion started by: sonbag_pspl
1 Replies
2. Shell Programming and Scripting
Hi,
i wan to search the file starting with Admin into the directory Output. I am running below command:
find /appl/Output -name "Admin*" -prune
but this command is going into the sub directories present under output. I do not want to search under sub directories. Any help will be highly... (6 Replies)
Discussion started by: Vishal123
6 Replies
3. Shell Programming and Scripting
i have a list of files below:
rwxrwxrwx 1 pipe pipe 180 Mar 4 22:47 del_0n_Date
-rwxrwxrwx 1 pipe pipe 472 Mar 4 22:58 mail_Check
-rw-r--r-- 1 pipe pipe 92 Mar 4 22:58 minfo.txt
-rwxrwxrwx 1 pipe pipe 609 Mar 5 05:12... (6 Replies)
Discussion started by: ali560045
6 Replies
4. Shell Programming and Scripting
I am trying to copy 2 types of files so I can archive them. I tested with a set of commands:
touch -t $(date -d "-60 day" +%Y%m%d) WORKDIR/REF
find TARGETDIR/ -type f -maxdepth 1 -iname \*.out\* -or -iname \*.log\* ! -newer WORKDIR/REF -exec ls -l {} \;
This correctly lists any files in the... (2 Replies)
Discussion started by: prismtx
2 Replies
5. Programming
Hello, I want know about building a product on Sun solaris and Redhat Linux.
Product would contain C,C++, Java, UNIX Shell scripts and so on. It will not be a client server programme.
Thanks!
Shafi (5 Replies)
Discussion started by: shafi2all
5 Replies
6. UNIX for Advanced & Expert Users
Can someone please help me out here.
I have SunSolaris server that has a ridiculous about of space on it. several hundred gigabytes of space. There are lots of partitions on this server that has at least 100Gs on them.
I want to mount just one of these partitions on my Linux server so I can... (4 Replies)
Discussion started by: SkySmart
4 Replies
7. Red Hat
how unix users able to change their password even if they have only read permissions and how backend process will be happening can u explain me which are files need to involved in this process (3 Replies)
Discussion started by: ponmuthu
3 Replies
8. Windows & DOS: Issues & Discussions
Hi,
I am trying to connect to a remote server using Plink tool. Both my local and remote machines are Windows. On remote server, I have OpenSSH server installed. I am able to run commands on remote machine but there is some problem with long UNC path, which I noticed today.
For... (3 Replies)
Discussion started by: Technext
3 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I'm having a trouble with the find cmd.
I would like to find all the java versions on my systems.
I have solaris 9 & 10 RHEL and SUSIE.
java -version
doesn't give all the versions on the server.
So I am trying to use the find command to find them all
find / -name java
I would... (7 Replies)
Discussion started by: bitlord
7 Replies
10. Shell Programming and Scripting
Hi,
I am having trouble in sending a mail with html body and attachment (csv file). We don't have uuencode or mutt (not allowed to install as well)
The below code is perfectly working for sending the html body alone:
export MAILTO=abc@xyz.com
export CONTENT="/home/abc/list.html"... (2 Replies)
Discussion started by: close2jay
2 Replies
LEARN ABOUT DEBIAN
txt2regex
TXT2REGEX(1) General Commands Manual TXT2REGEX(1)
NAME
txt2regex - a Regular Expression Wizard, written with bash2 builtins
SYNOPSIS
txt2regex
txt2regex --nocolor|--whitebg
txt2regex --all|--prog <p1,p2,...,pN>
txt2regex --showmeta|--showinfo <program>
txt2regex --make <target>
txt2regex --history <value>
DESCRIPTION
txt2regex is a Regular Expression "wizard", all written with bash2 builtins, that converts human sentences to regexes.
With a simple interactive interface, you just answer to questions and build your own regex for a large variety of programs, like awk,
emacs, grep, perl, php, procmail, python, sed and vim. There are more than 20 supported programs.
It's bash so download and run, no compilation needed.
Please visit the program homepage at http://txt2regex.sf.net.
OPTIONS
--all works with all registered programs
--help prints the help message and quit
--history <value>
prints to STDOUT a regex from a history data
--make <target>
prints a ready regex for a common pattern
--nocolor
self-explanatory
--prog <p1,p2,...>
choose which programs to use (separated by commas)
--showinfo <program>
prints regex info about the program
--showmeta
prints a complete metachar table for all programs
--version
prints the program version and quit
--whitebg
colors adjusted to white background terminals
By default, all options are turned OFF. Just call it with no options to launch the default interactive interface.
DETAILS
--all is cool but requires lots of lines (~35)
--nocolor is strong, so it kills --whitebg
--showmeta rules, try it
--showinfo uses reverse video output, --nocolor turns it off
--history is getting useful, stay tunned
--make is a remedy for headaches
--prog is nice to use your favorite programs, mix it with --make and --history
EXAMPLES
Calling the program on the default interactive interface
$ txt2regex
Calling the program on a white terminal
$ xterm -fg black -bg white ; txt2regex --whitebg
Getting information
$ txt2regex --showmeta
Getting specific information
$ txt2regex --showinfo sed
Calling it for specific programs
$ txt2regex --prog vim,sed,grep,python
Applying a history data
$ txt2regex --history '16421x:01x:'
Getting ready regexes!
$ txt2regex --make hour
$ txt2regex --make number3 --prog perl
$ txt2regex --make date2 --all
INTERFACE
The program interface is simple and easy to use. This is its contents:
+---------------------------------------+
| -> Top menu |
| -> Group menu |
| |
| -> Regexes of the programs selected |
| ... |
| ... |
| |
| -> History |
| -> Your prompt |
| |
| -> The question |
| -> The answers |
| ... |
| ... |
+---------------------------------------+
All the basic commands can be used on the numeric pad on the keyboard, but remember to turn ON the NumLock key.
Command Description
. Quit the program (with confirmation)
0 Reset the Regular Expression
1-9 Answers the questions
* Toggles color ON/OFF
/ Add/remove programs on/from the list
| Insert an alternation (where allowed)
( Open a new group (where allowed)
) Close the opened group (if any)
BUGS
Bug reports and contributions are VERY welcome! Please send them to the author.
AUTHOR
Written and maintained by Aurelio Marinho Jargas <verde@aurelio.net>
COPYRIGHT
Copyright (C) 2000, 2001, 2002, 2003, 2004 Aurelio Marinho Jargas
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
September, 28th - 2004 TXT2REGEX(1)