list(n) Tcl Built-In Commands list(n)
__________________________________________________________________________________________________________________________________________________NAME
list - Create a list
SYNOPSIS
list ?arg arg ...?
_________________________________________________________________DESCRIPTION
This command returns a list comprised of all the args, or an empty string if no args are specified. Braces and backslashes get added as
necessary, so that the lindex command may be used on the result to re-extract the original arguments, and also so that eval may be used to
execute the resulting list, with arg1 comprising the command's name and the other args comprising its arguments. List produces slightly
different results than concat: concat removes one level of grouping before forming the list, while list works directly from the original
arguments.
EXAMPLE
The command
list a b "c d e " " f {g h}"
will return
a b {c d e } { f {g h}}
while concat with the same arguments will return
a b c d e f {g h}
SEE ALSO
lappend(n), lindex(n), linsert(n), llength(n), lrange(n), lrepeat(n), lreplace(n), lsearch(n), lset(n), lsort(n) |
KEYWORDS
element, list
Tcl list(n)
Check Out this Related Man Page
list(3tcl) Tcl Built-In Commands list(3tcl)__________________________________________________________________________________________________________________________________________________NAME
list - Create a list
SYNOPSIS
list ?arg arg ...?
_________________________________________________________________DESCRIPTION
This command returns a list comprised of all the args, or an empty string if no args are specified. Braces and backslashes get added as
necessary, so that the lindex command may be used on the result to re-extract the original arguments, and also so that eval may be used to
execute the resulting list, with arg1 comprising the command's name and the other args comprising its arguments. List produces slightly
different results than concat: concat removes one level of grouping before forming the list, while list works directly from the original
arguments.
EXAMPLE
The command
list a b "c d e " " f {g h}"
will return
a b {c d e } { f {g h}}
while concat with the same arguments will return
a b c d e f {g h}
SEE ALSO lappend(3tcl), lindex(3tcl), linsert(3tcl), llength(3tcl), lrange(3tcl), lrepeat(3tcl), lreplace(3tcl), lsearch(3tcl), lset(3tcl), |
lsort(3tcl)KEYWORDS
element, list
Tcllist(3tcl)
Hi guys, lets make this more interesting... I'm sure you listen to something when your working on a project or something... I know, I do, helps with concentration.
Track: ±¯¸èÖ®Íõ (King of sad songs)
Artist: -îǧ‹Ã Miriam Yeung
Lovely forum BTW! :D (33 Replies)
This isn't working for multiple files. It works for one file though.
exists1=$(ls | grep gspp*)
for FILES in $exists1
do
echo "Loading $exists1"
... (23 Replies)
Hi All
This is not class assignment . I would like to know awk script how to
list all the duplicate name from a file ,have a look below
Sl No Name Dt of birth Location
1 aaa 1/01/1975 delhi
2 bbb 2/03/1977 mumbai
3 aaa 1/01/1976 mumbai
4 ... (22 Replies)
Folks,
I have a textfile with the config of my router. Part of that config looks like this:
router config
...
ip access-list extended MyAccessList
remark this is my security rule
permit host 10.0.0.1 any
deny host 10.0.0.2 any
...
ip access-list extended YourAccessList
... (25 Replies)
Lets start a list of programming challenges, and include a difficulty level for each program(easy, medium, or hard). Basiclly, you need to say what the program needs to do, any special features, whatever. Please post your files as an attachment, or host it and put a link to it, so to not spoil the... (28 Replies)
Hi All,
Ok, so I'm fairly new to Unix, but would like to think I'm grasping things fairly ok (Well until now ;) ), BUT with this one I'm going in circles ... LOL .. really can't work out why? So sorry for this post if it seems a little "dumb" .. But here goes.
In short I'd like to achieve the... (55 Replies)
Hi, I have a text file with 1500 words. Could it be a script that will keep the words that only have all these letters:
n i o m s c t a
If you could show me the way I would be greatful! (32 Replies)
dear all.
how can i copy a list of files with different names into others directory have the same name
like i have 3 files
10_10
10_10_11
10_10_11_12
and i have 3 directories
10_10
10_10_11
10_10_11_12
how can i make a loop to cp this files into the directory have the same name like... (31 Replies)
Hi,
I try to list all files in a folder, including all the subdirs (and their subdirs) and all files contained in each of these folders. I then print it to a simple txt file.
I use ls -R -1 >test.txt
This sort of does what I need, yet, the result is something like:
It reasonably comes... (53 Replies)
how to run an already developed script run against a list of ip addresses solaris 8 question.
the script goes away and check traffic information, for example
check_GE-VLANStats-P3 1.1.1.1
and returns the results ok.
how do I run this against an ip list? i.e a list of 30 ip addresses (26 Replies)