07-07-2011
Any relatively updated distribution will do. For the ease of installation and later usage I would recommend Ubuntu installed in VirtualBox
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In a ~4GB file there are lines like,
13.13.4.3 Googe.com - Jan/23/2011:00:00:00 +0000 "URL Google HTTP/1.1" 45 56 208 - "http://www.gogle.com/webhp?hl=en&tab=nw#hl=en&source=hp&biw=1366&bih=667&q=hello&aq=f&aqi=&aql=&oq=&fp=c432485467934a89" ".Net; Fox" -
13.145.3.3 Goge.com -... (3 Replies)
Discussion started by: gameboy87
3 Replies
2. Shell Programming and Scripting
Hi
I am trying to search and replace a multi line pattern in a php file using awk.
The pattern starts with
<div id="navbar">
and ends with
</div>
and spans over an unknown number of lines.
I need the command to be a one liner.
I use the "record separator" like this :
awk -v... (8 Replies)
Discussion started by: louisJ
8 Replies
3. Shell Programming and Scripting
I would like to print result of multiple search pattern invoked from an one liner. The code looks like this but won't work
gawk -F '{{if ($0 ~ /pattern1/) pat1=$1 && if ($0 ~ /pattern2/) pat2=$2} ; print pat1, pat2}'
Can anybody help getting the right code? (10 Replies)
Discussion started by: sdf
10 Replies
4. Shell Programming and Scripting
Hi, I'm writing a ksh script and trying to use an awk / sed / or perl one-liner to remove the last 4 characters of a line in a file if it begins with a period.
Here is the contents of the file... the column in which I want to remove the last 4 characters is the last column. ($6 in awk). I've... (10 Replies)
Discussion started by: right_coaster
10 Replies
5. Shell Programming and Scripting
can someone help me translate the following command, from:
/usr/bin/awk "/^$TOFDAYM $TOFDAYD /,0" $LOGFILE
to something like
perl -e .....
basically, i want to use perl to do awk functions within a shell script. i want to do the above awk, using perl.
any suggestions? (9 Replies)
Discussion started by: SkySmart
9 Replies
6. UNIX for Dummies Questions & Answers
I have an array containing bunch of characters. I have to check this array for specific character and if "Not Found than" use a goto statement to go to USAGE
set options = (A B C D E F)
@ i = 0
while ($i <= ${#options})
if ($options != "F" || $options != "D") then
goto USAGE
endif
@... (1 Reply)
Discussion started by: dixits
1 Replies
7. Shell Programming and Scripting
hello,
I want to replace awk with a perl one liner in unix.
i use in awk REGEX and FS ( field separator) because
awk syntaxes in different unix os versions have not the same behaviour.
Awk, Nawk and GNU Awk Cheat Sheet - good coders code, great reuse
i have a file named "file" and want... (5 Replies)
Discussion started by: bora99
5 Replies
8. UNIX for Dummies Questions & Answers
Not quite a unix question but problem in a perl command. Taking a chance if someone knows about the error
cat 1
a b c d
perl -p -e 's/a/b/g' 1
b b c d
What is the problem here??
perl -p -i -e 's/a/b/g' 1
Can't remove 1: Text file busy, skipping file. (2 Replies)
Discussion started by: analyst
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am a newbie to awk. Here is my problem. Looking for an awk 1-liner to solve it:
My Computing Environment:
- Solaris10
- I prefer to use csh or sh shells
1. Lets say my input file is File1.dat (delimter = | ) and looks as follows:
(File1.dat)
... (1 Reply)
Discussion started by: andy b
1 Replies
10. Shell Programming and Scripting
hi,
I am using PERL one liner for oracle database connection as :
$PERL -e "use DBI; DBI->connect(qw(DBI:Oracle:SID user passwd));"
is there a way to append select statement to this connection ? i.e. DB connection and select stmt in one line ?
how to do sysdba connection using one lines... (1 Reply)
Discussion started by: talashil
1 Replies
LEARN ABOUT DEBIAN
numm.getting-started
getting-started(7) Numm Tutorials getting-started(7)
NAME
getting started - numm installation and usage
SYNOPSIS
numm-run FILE
import numm
DESCRIPTION
numm is a python library -- the bastard child of Processing.org and MATLAB, if you will -- that fuses python, numpy, and gstreamer together
to create a numerical-computing environment for multimedia generation, analysis, and interaction.
Installation
A Debian package is provided for ease of installation on Debian and derivative operating systems, such as Ubuntu; we recommend you abandon
alternative systems and install Debian, but in the interim direct your attention to virtualization software such as VirtualBox.
The following command downloads and installs numm:
% wget http://numm.org/numm/releases/python-numm_0.1-1_all.deb
% sudo dpkg -i python-numm_0.1-1_all.deb
Usage
At its simplest, numm provides three pairs of invertable functions that connect common media formats with numpy:
Images represented as (height, width, color) numpy.uint8 arrays.
o image2np(path) -> np
o np2image(np, path)
Sounds as (frames, channels) numpy.int16s
o sound2np(path) -> np
o np2sound(np, path) # XXX: must be .wav
Videos as (frames, height, width, color) numpy.uint8s
o video2np(path) -> np
o np2video(np, path) # XXX: must be .mkv
For rapid-prototyping of interactive numpy-based audio-visual experiments, the numm package has a real-time mode. The numm package
installs a program named numm-run, which launches (and reloads on modification) python scripts that may implement any subset of the follow-
ing functions, which are asynchronously called as needed:
o video_in(a) # webcam
o video_out(a) # mutate a in-place to set video
o audio_in(a) # mic
o audio_out(a) # mutate a for audio output
o mouse_in(type, px, py, button)
o keyboard_in(type, key)
SEE ALSO
numm-run(1), numm.one-bit-instrument(7), numm.spectral-analysis(7)
numm February 2012 getting-started(7)