10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear All,
Can someone help to command or program to transfer the file from windows to Unix server and from one unix server to another Unix server in secure way.
I would request no samba client. (4 Replies)
Discussion started by: yadavricky
4 Replies
2. UNIX for Dummies Questions & Answers
hi everybody.
please help me in understanding this code.
echo "************* starting job on `date +\"%d/%m/%Y at %T\"` **************"
#
scriptdir=`dirname $0`
. ${scriptdir}/env_params.sh
#
SHLIB_PATH=${ORACLE_HOME}/lib:
export SHLIB_PATH
export... (1 Reply)
Discussion started by: gokulj
1 Replies
3. UNIX for Dummies Questions & Answers
i have two requirement
a file1 has field CNT=1000
i want to take count on file2 which can be like 2000
and replace in file1 so it becomes CNT=2000
a file1 has field TSTMP=2008-11-06-15.54.20.000000
i want to take the file creation date on file2 which can be like... (1 Reply)
Discussion started by: er_zeeshan05
1 Replies
4. Shell Programming and Scripting
Hi Gurus
I am very new to Unix Shell Prog. I have a file in format
Q1 Dirname-FileName Score Remarks
i.e. containing columns separated by space. I want to read Column 1 and 2 and then join them to make a string that would be a path to a file. I will use this string to fetch the files and... (4 Replies)
Discussion started by: kimskams80
4 Replies
5. UNIX for Dummies Questions & Answers
I was wondering what command lines i could use to do the following.
1. mail a file to a user with a subject line "HELLO". Also, send a Blind carbon copy to a different user?
2. Display the number of files AND directories in a given directory?
3. Display the last 5 files in a given... (4 Replies)
Discussion started by: tragic54
4 Replies
6. UNIX for Dummies Questions & Answers
cdfcxvvbbvnbjmjnhjml. (1 Reply)
Discussion started by: sree11
1 Replies
7. UNIX for Dummies Questions & Answers
Hey Guys,,
Have just got started with Unix , I need UNIX Terminal to practise commands.
Does any website host such services ?
Happy Holidays... (9 Replies)
Discussion started by: rrover1977
9 Replies
8. Shell Programming and Scripting
Hi folks,
I have written down a UNIX script which actually FTP the file to other server. What is happening now , this script is not working only for 1 server , as it is working for 32 different FTP server .
In this particular server , we are getting message “FTp:550 access denied”... (1 Reply)
Discussion started by: khan1978
1 Replies
9. UNIX for Dummies Questions & Answers
i recently install redhat linux as a dual boot with win2000. after i log in my unix account. i tried to get window unix by typing startx or xinit. both gave me error. display message among other thing was something like fatal error. any help?
thanks (12 Replies)
Discussion started by: bb00y
12 Replies
10. UNIX for Dummies Questions & Answers
i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies
textutil::split(3tcl) Text and string utilities, macro processing textutil::split(3tcl)
__________________________________________________________________________________________________________________________________________________
NAME
textutil::split - Procedures to split texts
SYNOPSIS
package require Tcl 8.2
package require textutil::split ?0.7?
::textutil::split::splitn string ?len?
::textutil::split::splitx string ?regexp?
_________________________________________________________________
DESCRIPTION
The package textutil::split provides commands that split strings by size and arbitrary regular expressions.
The complete set of procedures is described below.
::textutil::split::splitn string ?len?
This command splits the given string into chunks of len characters and returns a list containing these chunks. The argument len
defaults to 1 if none is specified. A negative length is not allowed and will cause the command to throw an error. Providing an
empty string as input is allowed, the command will then return an empty list. If the length of the string is not an entire multiple
of the chunk length, then the last chunk in the generated list will be shorter than len.
::textutil::split::splitx string ?regexp?
This command splits the string and return a list. The string is split according to the regular expression regexp instead of a simple
list of chars. Note that if you parentheses are added into the regexp, the parentheses part of separator will be added into the
result list as additional element. If the string is empty the result is the empty list, like for split. If regexp is empty the
string is split at every character, like split does. The regular expression regexp defaults to "[\t \r\n]+".
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
regexp(3tcl), split(3tcl), string(3tcl)
KEYWORDS
regular expression, split, string
CATEGORY
Text processing
textutil 0.7 textutil::split(3tcl)