07-27-2009
Thanks dan it worked one shot
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I've an input file as follows:
*START
1001 a1
1002 a2
1003 a3
1004 a4
*END
*START
1001 b1
1002 b2
1004 b4
*END
*START
1001 c1
1004 c4
*END (6 Replies)
Discussion started by: kbirde
6 Replies
2. Shell Programming and Scripting
Please help me out and drag me out the deadlock I am stuck into:
I have a file. I want the statements under a if...then condition be listed in a separate file in the manner condition|statement.Following are the different input pattern and corresponding output parameters.any generic code to... (7 Replies)
Discussion started by: joyan321
7 Replies
3. Shell Programming and Scripting
I have a file name in $f. If $f has "-" at the beginning, or "=", or does not have extension ".ry" or ".xt" or ".dat" then cerr would not be empty.
Tried the following but having some problems.
set cerr = `echo $f | awk '/^-|=|!.ry|!.xt|!.dat/'` (4 Replies)
Discussion started by: kristinu
4 Replies
4. UNIX for Dummies Questions & Answers
%%%%% (9 Replies)
Discussion started by: lucasvs
9 Replies
5. Shell Programming and Scripting
At the top of the XYZ file, I need to insert the ABC data value of column 2 only when ABC column 1 matches the prefix XYZ file name (not the ".txt"). Is there an awk solution for this?
ABC Data
0101 0.54
0102 0.48
0103 1.63
XYZ File Name
0101.txt
0102.txt
0103.txt
... (7 Replies)
Discussion started by: ncwxpanther
7 Replies
6. UNIX for Dummies Questions & Answers
Hello :)
I am in this situation:
Input: two tab-delimited files, `File1` and `File2`. `File2` (`$2`) has to be parsed by patterns found in `File1` (`$1`).
Expected output: tab-delimited file, `File3`. `File3` has to contain the same rows as `File2`, plus the corresponding value in... (5 Replies)
Discussion started by: dovah
5 Replies
7. Shell Programming and Scripting
Hi All,
I have scenario where I need to zip huge number of DB audit log files newer than 90 days and delete anything older than that. If the files are too huge in number,zipping will take long time and causing CPU spikes. To avoid this I wanted to segregate files based on how old they are and... (2 Replies)
Discussion started by: veeresh_15
2 Replies
8. Shell Programming and Scripting
Hi ,
I have a situation where I need to search an xml file for the presence of a tag
<FollowOnFrom> and also , presence of partial part of the following tag <ContractRequest _LoadId and if these 2 exist ,then
extract the value from the following tag <_LocalId> which is
"CW2094139". There... (2 Replies)
Discussion started by: paul1234
2 Replies
9. Shell Programming and Scripting
Delete patterns matching
OS version: RHEL 7.3
Shell : Bash
I have a file like below (pattern.txt). I need to delete all lines starting with the following words (words separated by comma below) and ) character.
LOGGING, NOCOMPRESS, TABLESPACE , PCTFREE, INITRANS, MAXTRANS, STORAGE,... (3 Replies)
Discussion started by: John K
3 Replies
10. Shell Programming and Scripting
Hello,
I need to know all IP range (ip_prefix), associated with us-west-2 region only from this link - https://ip-ranges.amazonaws.com/ip-ranges.json (it can be opened in wordpad for better visibility)
Please suggest, how would I do it. If vi, awk or sed is needed, I have downloaded it on my... (7 Replies)
Discussion started by: solaris_1977
7 Replies
LEARN ABOUT CENTOS
dvcont
DVCONT(1) General Commands Manual DVCONT(1)
NAME
dvcont - send control commands to DV cameras
SYNOPSIS
dvcont <command1> [ <command2> ... ]
DESCRIPTION
dvcont is a command line tool to send control commands via an IEEE1394 link to a device that implements the AV/C specifications by the 1394
Trade Association. Or for the non-techies: dvcont lets you remote control your DV camera via a Firewire cable. The following commands are
understood:
dev <number>
Select device number on chain to use. (dvcont tries to automatically detect the camera. Use the dev command BEFORE any other com-
mands for manual control.)
play Tell the camera to play. If already playing, it toggles slow-motion.
reverse
Tell the camera to play in reverse. If already playing, it toggles slow-motion.
trickplay < -14 to +14 >
Tell the camera to play at various speeds. 0 = forward play, -14 = fastest reverse, -8 = 1X reverse, -1 = slowest reverse, 1 =
slowest forward, 8 = 1X forward, 14 = fastest forward. (Not supported by all cameras.)
stop Tell the camera to stop playing.
rewind Tell the camera to rewind. (Use in stop or play mode.)
ff Tell the camera to fast forward. (Use in stop or play mode.)
pause Tell the camera to toggle pause play.
next Tell the camera to go to the next frame. (Use in pause mode.)
nextindex
Tell the camera to search for the next scene. (Use in pause or play mode.)
prev Tell the camera to go to the previous frame. (Use in pause mode)
previndex
Tell the camera to search for the previous scene. (Use in pause or play mode)
record Tell the camera to record. (Use with caution!)
eject Tell the camera to eject the tape. (Not supported by all cameras.)
timecode
Report the timecode on tape in the format HH:MM:SS:FF (hours, minutes, seconds, intra-second frames).
seek <timecode>
Tell the camera to go to the timecode, given in format HH:MM:SS:FF as above.
status Report the status of the device.
pluginfo
Report available plugs.
verbose
Tell the program to tell you debug info.
version
Tell the program to tell you the program version.
help Tell the program to show you a help screen.
AUTHORS
dvcont was written by Jason Howard <jason@spectsoft.com> and Dan Dennedy <dan@dennedy.org>. This man page was written with the help of
help2man by Daniel Kobras <kobras@debian.org> for the Debian GNU/Linux distribution (but may be used by others). Updated by Dan Dennedy
<dan@dennedy.org>.
September 2002 DVCONT(1)