07-11-2013
What do you mean by 'created in the same script file'?
8 More Discussions You Might Find Interesting
1. Solaris
Is there a way to reset the netstat counters in solaris 8? Specifically, the error counters? (1 Reply)
Discussion started by: tjlst15
1 Replies
2. UNIX for Dummies Questions & Answers
Which performance counters you might to define as "The most important counters in checking unix performance" (3 Replies)
Discussion started by: gen4ik
3 Replies
3. UNIX for Dummies Questions & Answers
I am trying to write a program in a script .sh
I have a list of coordinates ie
e1=123 n1=123
e2=456 n2=456
e3=789 n3=789
I have a counter starting at 1
for (( i=1; i<=2; i++))
i need coordinate=123,123
then on the second loop
coordinate=456,456 etc...
I tried doing:
#e=0 n=0 <... (3 Replies)
Discussion started by: gazz1982
3 Replies
4. Shell Programming and Scripting
Hi Everybody.
I need an urgent help, it would be great if somebody will help me out in this regard. See below sample file
1525 805 26 2036 219644. 2598293.
1525 805 126 2327
1525 805 226 ... (6 Replies)
Discussion started by: syahmed
6 Replies
5. Shell Programming and Scripting
Hi there,
If I have the following:
and want to print the first column based on the uniqe value of the second column, so the output would be something like:
how would I do that, using AWK and the piping technique?
Thanks in advance (12 Replies)
Discussion started by: Abdulelah
12 Replies
6. Shell Programming and Scripting
For below lines in a file.
68078971 dance routine (jess far back corner) 13902786
368079527 dance routine 13902786
368081191 dance routine (jess far back) 13902786
I am looking for output as below
68078971, "dance routine (jess far back corner)", 13902786... (4 Replies)
Discussion started by: Anjan1
4 Replies
7. UNIX for Beginners Questions & Answers
Morning,
I have an issue to print files based on file name
my input file
20170516_WATERSONGS.txt
20170509_MULTIFLAG.txt
every file consist of list of number, for ex 20170516_WATERSONGS.txt
7281370247390
7281370605338
7281370836600
7281370840039
7281372341119
7281372821958... (1 Reply)
Discussion started by: radius
1 Replies
8. UNIX for Beginners Questions & Answers
Morning,
I have an issue to print files based on file name
my input file
20170516_WATERSONGS.txt
20170509_MULTIFLAG.txt
every file consist of list of number, for ex 20170516_WATERSONGS.txt
7281370247390
7281370605338
7281370836600
7281370840039
7281372341119
7281372821958... (3 Replies)
Discussion started by: radius
3 Replies
script(1) General Commands Manual script(1)
NAME
script - Makes a transcript of terminal session
SYNOPSIS
script [-a] [file]
The script command makes a transcript of everything printed on your terminal.
OPTIONS
Appends the transcript to file rather than writing it to file.
OPERANDS
The name of an output file that will contain the transcript of the session. If this parameter is omitted, the file typescript is written.
DESCRIPTION
The transcript is written to file, or appended to file if the -a option is given. If no file name is given, the transcript is saved in the
file typescript.
The script ends when the forked shell exits.
This program is useful when you are using a CRT and want a hard-copy record of the dialog (for example, a technical writer might create an
example of a working session this way).
If you specify the -a option and the file does not exist, it is created.
If you do not specify the -a option and the file exists, it is replaced.
RESTRICTIONS
The script command requires a streams based terminal. In single user mode, streams may not be enabled. Under these circumstances, script
will exit with no action. If you are the superuser and need to run this command in single user mode, use the following special instruc-
tions.
Enabling Streams
If it is necessary to enable a streams environment in the single user mode, enter the command /sbin/init.d/streams. This command is avail-
able to the superuser only.
SEE ALSO
Commands: autopush(8), cat(1), echo(1), strsetup(8), tee(1)
System Administration
script(1)