04-15-2004
awk - storing data in variables
In AWK script how do I store data in variables for later use.
I have a multiline input and I do not want to print the data read on the console
Thnaks in advance.
Nilotpal.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
How to store datas of the file into a string?
Thanks in advance.. (1 Reply)
Discussion started by: Fr0z3n999
1 Replies
2. Shell Programming and Scripting
Hi,
I have a file in the given format:
|aaa |hhh |fat hat chat |make sure
I need to get store in a variable,say 'error' the value of the string 'fat hat chat'
In short,
echo $error should give the result
fat hat chat
Is this possible using awk?
Also, can this be split.For... (10 Replies)
Discussion started by: jisha
10 Replies
3. Shell Programming and Scripting
Hi All,
I need some help with arrays. I need to take input from the user for hostname, username and password until he enters .(dot) or any other character and store the values in the variable array.
I would further connect to the hostname using username and passwd and copy files from server to... (7 Replies)
Discussion started by: nua7
7 Replies
4. Shell Programming and Scripting
Hi I'm trying to store commands in variables... like so..
# lastcmd=" $t1 | $t2 | $t3 | $t4 | sort | uniq"
t1="sed -e 's/http:/<li><a href=\"http:/'"
t2="sed -e 's/http:.*/&\">&<\/a>Web Link<br>/'"
t3="sed -e 's/.*. mailto:/<li><a href=\"mailto:/'"
t4="sed -e... (7 Replies)
Discussion started by: Paulw0t
7 Replies
5. Shell Programming and Scripting
hi
this is an example of code:
use strict;
use warnings;
open FILE, "/tmp/result_2";
my $regex="\\ Starting program ver. (.*)";
my $res="Program started, version <$1> - OK.\n";
while (<FILE>) {
if ($_ =~ /($regex)/) {
print "$res";
}
}
close FILE;
This finds $regex and print... (3 Replies)
Discussion started by: xist
3 Replies
6. Shell Programming and Scripting
Hi all,
Currently, i have a log file seperated by 'tab' and each record starting with a new line. i managed to retrieve the column that i'm interested in. (source_ip_address: xxx.xxx.xxx.xxx).
example of awk output: '{ print $43 }' assuming the field is at column 43.
10.10.10.10... (4 Replies)
Discussion started by: faelric
4 Replies
7. Shell Programming and Scripting
File having data in following format :
file name : file.txt
--------------------
111111;name1
222222;name2
333333;name3
I want to read this file so that I can split these into two paramaters i.e. 111111 & name1 into two different variables(say value1 & value2).
i.e val1=11111 &... (2 Replies)
Discussion started by: sjoshi98
2 Replies
8. UNIX for Dummies Questions & Answers
Hello
Apologies for not having the most accurate of thread titles.. I'm using IBM Rational Synergy CM software. I use the Synergy commands in tandem with Unix commands.
I have a directory containing source code objects:
bash-3.00$ ccm ls *.fmb *.rdf *.pll *.mmb
cre_applications.fmb-1... (1 Reply)
Discussion started by: Glyn_Mo
1 Replies
9. Shell Programming and Scripting
I need to know how to store output from one command so that it can initiate another command.
chktraf -s | cut -c1-4
output would look like
321
142
256
342
123
Then if the value of the output = 0, then initiate next command.
if
then
for xx in 01 02 03 04 05 06 07 08 09 10
do
... (4 Replies)
Discussion started by: Shaun74
4 Replies
10. Shell Programming and Scripting
Requirement 1) I need to execute 15 SQL queries in oracle through linux script. All these query results needs to be stored in array variables.
Requirement 2) And these 15 queries needs to be executed in parallel.
Requirement 3) Once all the queries executed then the shell script should... (3 Replies)
Discussion started by: Niranjancse
3 Replies
LEARN ABOUT DEBIAN
w3af_console
w3af(1) w3af console user interface manpage w3af(1)
NAME
w3af_console - Web Application Attack and Audit Framework with console interface
SYNOPSIS
w3af_console [-h] [-s <script-file>] [-p <profile-file>] [-i <metasploit-path>]
DESCRIPTION
w3af is a Web Application Attack and Audit Framework. The project goal is to create a framework to find and exploit web application vulner-
abilities that is easy to use and extend. This is the console user interface manpage.
OPTIONS
-h Print help message.
-s <script-file>
Execute a script file. Example: "w3af_console -s script/web_spider.w3af".
-p <profile-file>
Run with the selected profile. Example: "w3af_console -p profiles/OWASP_TOP10.pw3af".
-i <metasploit-path>
Directory where MSF is installed (only used to install the virtual daemon)
SEE ALSO
w3af(1), w3af_gui(1)
User Guide
To learn more about w3af please read the w3af users guide, which is available with your installation (readme/w3afUsersGuide.pdf) and also
online at http://w3af.sourceforge.net/documentation/user/w3afUsersGuide.pdf .
BUGS
The framework is still under development and has reported bugs. To read a complete list of them, or to submit a bug, please point your
browser to https://sourceforge.net/tracker/?group_id=170274&atid=853652 .
w3af 01 September 2008 w3af(1)