08-24-2010
Which commands did you try to use to empty this file?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All
Nice to meet you all here in this forum,
it's my 1rst time here
i'm asking about a little issue that i face
i added a ksh script that echo " please insert your name " and store the output to a login.log file.
the script is working fine with normal telnet
but Xstart is not working... (8 Replies)
Discussion started by: islam.said
8 Replies
2. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
3. Shell Programming and Scripting
Please show me how to make substitution over the contents of a file in a perl script.
In a perl script, the core part of substitution operation is
s/FINDPATTERN/REPLACEPATTERN/g;
However, I cannot figure out how to make the substitution occur over the contents of a file. The following... (3 Replies)
Discussion started by: LessNux
3 Replies
4. UNIX for Dummies Questions & Answers
Hi
I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this
Enter the line to... (1 Reply)
Discussion started by: sudeep.id
1 Replies
5. Shell Programming and Scripting
Hi
I want to delete a line from a txt file for which the line number is user input. Say when user selects 19, the 19th line would be deleted from the file. Can anyone please provide me with a sed one liner for the same... I tried sed -i. The interaction would be like this
Enter the line... (4 Replies)
Discussion started by: sudeep.id
4 Replies
6. Shell Programming and Scripting
I am new to bash/shell scripting.
I want to find all the files in directory and subdirectories, which are not ends with “.zip” and which are contains in the file name “*.log*” or “*.out*”.
I know below command to get the files which ends with “.log”; but I need which are not ends with this... (4 Replies)
Discussion started by: Mallikgm
4 Replies
7. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
8. Shell Programming and Scripting
Hi!
I am having 02 files.
In first file" X" I am having 02 Columns
TCP-5100 Sybase_5100
TCP-5600 Sybase_5600
Second file "Y" for example--
:services (
:AdminInfo (
:chkpf_uid ("{A2F79713-B67D-4409-83A4-A90804E983E9}")
:ClassName (rule_services)
)
:compound ()... (12 Replies)
Discussion started by: shahid1632
12 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
LEARN ABOUT MOJAVE
tcllib_interp
interp(n) Interpreter utilities interp(n)
__________________________________________________________________________________________________________________________________________________
NAME
interp - Interp creation and aliasing
SYNOPSIS
package require Tcl 8.3
package require interp ?0.1.1?
::interp::createEmpty ?path?
::interp::snitLink path methodlist
::interp::snitDictLink path methoddict
_________________________________________________________________
DESCRIPTION
This package provides a number of commands for the convenient creation of Tcl interpreters for highly restricted execution.
API
::interp::createEmpty ?path?
This commands creates an empty Tcl interpreter and returns it name. Empty means that the new interpreter has neither namespaces, nor
any commands. It is useful only for the creation of aliases.
If a path is specified then it is taken as the name of the new interpreter.
::interp::snitLink path methodlist
This command assumes that it was called from within a method of a snit object, and that the command mymethod is available.
It extends the interpreter specified by path with aliases for all methods found in the methodlist, with the alias directing execu-
tion to the same-named method of the snit object invoking this command. Each element of methodlist is actually interpreted as a
command prefix, with the first word of each prefix the name of the method to link to.
The result of the command is the empty string.
::interp::snitDictLink path methoddict
This command behaves like ::interp::snitLink, except that it takes a dictionary mapping from commands to methods as its input, and
not a list of methods. Like for ::interp::snitLink the method references are actually command prefixes. This command allows the
creation of more complex command-method mappings than ::interp::snitLink.
The result of the command is the empty string.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category interp
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.
KEYWORDS
alias, empty interpreter, interpreter, method, snit
CATEGORY
Programming tools
COPYRIGHT
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
interp 0.1.1 interp(n)