I have one file in which some commands have written line line
i have to read lines from this file(file name passed as avariable)
and then i have to execute these commands..
how can i do it? (5 Replies)
Hi Guys,
I am trying to write a perl script to search a string "Name" in the file "FILE" and also want to create a new file and push the searched string Name line along with 10 lines following the same.
can anyone of you please let me know how to go about it ? (8 Replies)
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
i have a file1 with many lines. i have a script that will let me input a string. for example, APPLE. what i need to do is to copy all lines from file1 where i can find APPLE or any string that i specify and paste in on file 2
thanks in advance! (4 Replies)
Can someone tell me how I can do this?
e.g:
a=$(echo -e wert trewt ertert ertert ertert erttert
erterte
rterter
tertertert
ert)
How do i replace the STRING with $a?
I try this:
sed -i 's/STRING/'"$a"'/g' filename.ext
but this don' t work (2 Replies)
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Hi all, the value in the following file is just an example. It could be a different value/network addresses.
Here is my example of initial output in a file name net.txt
Initial Output, net.txt
The goal is to produce the following format which is to convert from CIDR to Netmask... (6 Replies)
I have a file where every line includes four expressions with a caret in the middle (plus some other "words" or fields, always separated by spaces). I would like to extract from this file, all those lines such that each of the four expressions containing a caret appears in at least four different... (9 Replies)
Discussion started by: uncleMonty
9 Replies
LEARN ABOUT REDHAT
reset
RESET(7) SQL Commands RESET(7)NAME
RESET - restore the value of a run-time parameter to a default value
SYNOPSIS
RESET variable
RESET ALL
INPUTS
variable
The name of a run-time parameter. See SET [set(7)] for a list.
ALL Resets all settable run-time parameters to default values.
DESCRIPTION
RESET restores run-time parameters to their default values. Refer to SET [set(7)] for details. RESET is an alternate spelling for
SET variable TO DEFAULT
The default value is defined as the value that the variable would have had, had no SET ever been issued for it in the current session. The
actual source of this value might be a compiled-in default, the postmaster's configuration file or command-line switches, or per-database
or per-user default settings. See the Administrator's Guide for details.
See the SET manual page for details on the transaction behavior of RESET.
DIAGNOSTICS
See under the SET [set(7)] command.
EXAMPLES
Set DateStyle to its default value:
RESET DateStyle;
Set geqo to its default value:
RESET GEQO;
COMPATIBILITY
RESET is a PostgreSQL extension.
SQL - Language Statements 2002-11-22 RESET(7)