09-03-2008
Quote:
Originally Posted by
vidyadhar85
try sed..
I'm looking in my unix reference book...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hey gents,
I'm working on something that will use snmpwalk to query the devices on my network and retreive the device name, device IP, device model and device serial. I'm using Nmap for the enumeration and sed to clean up the results for use by snmpwalk. Once i get all the data organized I'm... (8 Replies)
Discussion started by: mitch
8 Replies
2. Shell Programming and Scripting
Hello,
I have two files that I need to compare and print out the line from file2 that has the first 6 fields matching the first 6 fields in file1. Complicating this are the following restrictions
1. file1 is only a few thousand lines at most and file2 is greater than 2 million
2. I need to... (7 Replies)
Discussion started by: gillesc_mac
7 Replies
3. Shell Programming and Scripting
Hi -
I have a file that contains data in this format:-
#comment
value1 value2 value3
#comment
value4 value5 value6 value7
#comment
value8 value9
I need to read value1, value2 and value3 into one array, value4 value5 value6 and value7 into another array and value8 and value9 into a 3rd... (2 Replies)
Discussion started by: sniper57
2 Replies
4. Shell Programming and Scripting
Hi all
I have spent half a day trying to create a shell script which reads a configuration file on a line by line basis.
The idea of the file is that each will contain server information, such as IP address and various port numbers. The line could also be blank (The file is user created). Here... (1 Reply)
Discussion started by: haggismn
1 Replies
5. Shell Programming and Scripting
Hi all,
I have a single line output like below
echo $ips
10.26.208.28 10.26.208.26 10.26.208.27
want to convert above single line output as below format. Pls advice how to do ?
10.26.208.28
10.26.208.26
10.26.208.27
Regards
Kannan (6 Replies)
Discussion started by: kamauv234
6 Replies
6. Shell Programming and Scripting
example:
comment Now_TB.table column errac is for error messages
1 - first
2 - second
3 -third ;
in this example I need to be able to grab the comment as first word and ; as the last word and it might span a few lines. I need it to be put all in one line without line breaks so I can... (4 Replies)
Discussion started by: wambli
4 Replies
7. Shell Programming and Scripting
here is what i want to achieve.. i have a file with below contents
cat fileName
blah blah blah
.
.DROP this
REJECT that
.
--sport 7800 -j REJECT --reject-with icmp-port-unreachable
--dport 7800 -j REJECT --reject-with icmp-port-unreachable
.
.
.
more blah blah blah
--dport 3306... (14 Replies)
Discussion started by: vivek d r
14 Replies
8. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 Replies
9. Shell Programming and Scripting
Hello,
I have below format log file,
Comparing csv_converted_files/2201/9747.1012H67126.5077292103609547345.csv and csv_converted_files/22019/97447.1012H67126.5077292103609547345.csv
Comparing csv_converted_files/2559/9447.1012H67126.5077292103609547345.csv and... (6 Replies)
Discussion started by: arvindshukla81
6 Replies
10. Shell Programming and Scripting
I am looking for help in processing of those options: '-n' or '-p'
I understand what they do and how to use them.
But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.)
I did try it and -n works on 2 files.
Question is:
- is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies
LEARN ABOUT DEBIAN
qrencode
QRENCODE(1) General Commands Manual QRENCODE(1)
NAME
qrencode - Encode input data in a QR Code and save as a PNG or EPS image.
SYNOPSIS
qrencode [OPTION]... [STRING]
DESCRIPTION
Libqrencode is a library for encoding data in a QR Code symbol, a kind of 2D symbology that can be scanned by handy terminals such as a
mobile phone with CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and has high robustness.
Qrencode is a utility software using libqrencode to encode string data in a QR Code and save as a PNG or EPS image.
OPTIONS
-h, --help
display help message.
-o FILENAME, --output=FILENAME
write image to FILENAME. If '-' is specified, the result will be output to standard output. If -S is given, structured symbols are
written to FILENAME-01.png, FILENAME-02.png, ... (suffix is removed from FILENAME, if specified)
-s NUMBER, --size=NUMBER
specify the size of dot (pixel). (default=3)
-l {LMQH}, --level={LMQH}
specify error collectin level from L (lowest) to H (highest). (default=L)
-v NUMBER, --symversion=NUMBER
specify the version of the symbol. (default=auto)
-m NUMBER, --margin=NUMBER
specify the width of margin. (default=4)
-d NUMBER, --dpi=NUMBER
specify the DPI of the generated PNG. (default=72)
-t {PNG,EPS,ANSI,ANSI256}, --type={PNG,EPS,ANSI,ANSI256}
specify the type of the generated image. (default=PNG)
-S, --structured
make structured symbols. Version must be specified.
-k, --kanji
assume that the input text contains kanji (shift-jis).
-c, --casesensitive
encode lower-case alphabet characters in 8-bit mode. (default)
-i, --ignorecase
ignore case distinctions and use only upper-case characters.
-8, --8bit
encode entire data in 8-bit mode. -k, -c and -i will be ignored.
-M, --micro
encode in a Micro QR Code. (experimental)
-V, --version
display the version number and copyrights of the qrencode.
[STRING]
input data. If it is not specified, data will be taken from standard input.
EXAMPLES
qrencode -l L -v 1 -o output.png 'Hello, world!'
encode into a symbol version 1, level L.
qrencode -iSv 1 --output=output.png
read standard input and encode it into a structured-appended symbols in case-insensitive mode.
AUTHOR
Written by Kentaro Fukuchi.
RESOURCES
Main Web Site: http://fukuchi.org/works/qrencode/
Source code repository: https://github.com/fukuchi/libqrencode/
COPYRIGHT
Copyright (C) 2006-2012 Kentaro Fukuchi.
qrencode 3.3.0 Feb. 29, 2012 QRENCODE(1)