01-10-2010
It works ok, but there is a feature I never encountered before. What's the purpose of the 1 at the end. Without it does not work when I redirect the output to a file. So it must be quite important!!!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
Can any one tell me what is the command to find out the row id or row number for a particular record
Thanks
sri (6 Replies)
Discussion started by: laxmi131
6 Replies
2. Shell Programming and Scripting
hello All,
i have to two files package.today and package.yesterday , the extension of the files says what day the file belongs to .
contents of the file change little bit everyday .
i am taking only the package and sub package from the files
awk '/^/{print $0}' Packages.today
82 ... (0 Replies)
Discussion started by: posner
0 Replies
3. UNIX for Dummies Questions & Answers
Hello Everyone,
My issue is that I want to traverse a database table row by row and do some action on the value retrieved in each row.
I have gone through a lot of shell script questions/posts. I could find row by row traversal of a file but not a database table.
Please help.
Thanks &... (5 Replies)
Discussion started by: ahsan.asghar
5 Replies
4. Shell Programming and Scripting
Hi Power User,
I'm trying to compute this kind of text file format:
file1:
jakarta 100 150
jakarta 170 210
beijing 220 250
beijing 260 280
beijing 290 320
new_york 330 350
new_york 370 420
tokyo 430 470
tokyo 480 ... (2 Replies)
Discussion started by: anjas
2 Replies
5. Shell Programming and Scripting
Hi, I want to move a new row to another table if the field from new row doesn't have the first word that I categorized (like: IRC blablabla, PTM blablabla, ADM blablabla, BS blablabla).
I already use this script but doesn't work as I expected.
CHECK_KEYWORD="$( mysql -uroot -p123456 smsd -N... (7 Replies)
Discussion started by: jazzyzha
7 Replies
6. Shell Programming and Scripting
Hi, I already succeed moving a new row to another table if the field from new row doesn't have the first word that I categorized (like: IRC blablabla, PTM blablabla, ADM blablabla, BS blablabla).
But it can't delete the old row. Please help me with the script.
my php script:
INSERT INTO... (2 Replies)
Discussion started by: jazzyzha
2 Replies
7. Shell Programming and Scripting
Hello,
I need some help to reformat this table-by-row to matrix?
infile:
site1 A:o,p,q,r,s,t
site1 C:y,u
site1 T:v,w
site1 -:x,z
site2 A:p,r,t,v,w,z
site2 C:u,y
site2 G:q,s
site2 -:o,x
site3 A:o,q,s,t,u,z
site3 C:y
site3 T:v,w,x
site3 -:p,routfile:
SITE o p q r s t v u w x y... (7 Replies)
Discussion started by: yifangt
7 Replies
8. Shell Programming and Scripting
Hi.
How can we print those rows of file2 which are mentioned in file1. first character of file1 is a row number.. for eg
file1
1:abc
3:ghi
6:pqr
file2
a abc
b def
c ghi
d jkl
e mno
f pqr
... (6 Replies)
Discussion started by: Abhiraj Singh
6 Replies
9. Shell Programming and Scripting
Hi
I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field.
The source file is pipe delimited and looks something like
1|net|ABC Letr1|1530|||
1|net|EXP_1040 ABC|1121|||
1|net|EXP_TG1224|1122|||
1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
5 Replies
10. Shell Programming and Scripting
I pass a number to my script. Passing "1" below.
./getfile.sh 1
echo "User entered: $1"
ls -ltr *.conf | sed -n '$p'
I wish to use ls -ltr i.e list files in ascending order of time the latest showing at the bottom of the output.
Number 1 should get me the last row of ls -ltr output i.e... (9 Replies)
Discussion started by: mohtashims
9 Replies
LEARN ABOUT DEBIAN
dv4lstart
DV4LSTART(1) General Commands Manual DV4LSTART(1)
NAME
dv4lstart - redirect V4L API to access a camcorder from a V4L program
SYNOPSIS
dvlstart [options] command [argument ...]
DESCRIPTION
dv4lstart enables command to access a dv1394 (Firewire) camcorder by using the video4linux (V4L) API. dv4lstart uses the LD_PRELOAD facil-
ity to intercept calls to the V4L API and make the camcorder's videostream available.
Check that LD_PRELOAD works in your environment by starting
$ dv4lstart ls -l /dev/video0
The resulting output should look like
crw-rw---- 0 root video 81, 0 Jan 1 1970 /dev/video0
Check your 1394 driver config by starting
$ gst-launch-0.10 dv1394src ! dvdemux ! dvdec ! xvimagesink
from your shell. After turning on your camera, a video window should appear. If this works, dv4lstart should work as well.
Inside command, use /dev/video0. Any existing, real V4L device named /dev/video0 can not be accessed from an application started with
dv4lstart (applications started normally can access the real /dev/video0)
OPTIONS
-c, --color-correction
Set this option if red objects look blue.
-n, --new-dev
Tell dv4lstart to simulate a new video device rather than overriding /dev/video0. Set this option if your application needs to
access other video devices.
-r, --rgb-only
Set this option to prevent V4L applications from choosing YUV palettes. Try this option if you get low frame rates.
-v, --verbose level
Set the amount of debugging messages. A level of 0 means no output at all, 1 is the default, 3 enables all messages.
-h, --help
displays a help message
EXAMPLES
The command
$ dv4lstart v4l-info
outputs some information about the simulated V4L device.
$ dv4lstart -c gqcam -v /dev/video0
starts the gqcam webcam viewer, swapping red and blue colors.
LIMITATIONS
Programs using exotic ways to access the V4L API will not work.
Some environments don't allow the use of LD_PRELOAD for security reasons. dv4lstart will not work there.
If dv4lstart does not work, try dv4l instead.
SEE ALSO
dv4l(1)
DV4LSTART(1)