Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Changing Text with sed or awk Post 302504891 by hal8000 on Tuesday 15th of March 2011 05:15:00 PM
Old 03-15-2011
Thank you very much, script works perfectly, will read up on capture element \1 using sed
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Changing text with sed?

Hi everyone, Having trouble with sed. I searched the board and found some stuff, but still unclear. I have a file named "userfile" which stores the users info in this form: email:username:password: I want the user to be able to change their password. i tried with sed s/oldpass/newpass/g... (2 Replies)
Discussion started by: primal
2 Replies

2. Shell Programming and Scripting

text processing ( sed/awk)

hi.. I have a file having record on in 1 line.... I want every 400 characters in a new line... means in 1st line 1-400 in 2nd line - 401-800 etc pl help. (12 Replies)
Discussion started by: clx
12 Replies

3. Shell Programming and Scripting

text transformation with sed or awk

Hi there, I'm trying to extract automatically opening hours from a website. The page displaying the schedules is http://www.natureetdecouvertes.com/pages/gener/view_FO_STORE_corgen.asp?mag_cod=xxx with xxx going from 101 to 174 I managed to get the following output : le lundi de 10.30 à... (4 Replies)
Discussion started by: chebarbudo
4 Replies

4. Shell Programming and Scripting

sed or awk to parse this text

I am just beginning with sed and awk and understand that they are "per" line input. That is, they operate on each line individually, and output based on rules, etc. But I have multi-line text blocks that looks as follows, and wish to ONLY extract the text between the first hyphen (-) and the... (13 Replies)
Discussion started by: bulgin
13 Replies

5. Shell Programming and Scripting

changing files content with sed or awk

Hi, Example File: (jumped, bumped, ) how to jumped, FROM tree; EXIT I have some hundreads of files like this with the different words and I want to remove the comma before the bracket and also I have to remove the comma before FROM word. I am trying to use this command : awk '... (5 Replies)
Discussion started by: rajshashi
5 Replies

6. Shell Programming and Scripting

sed/awk changing values

Can somebody help me out and provide me with a SED or AWK solution that converts TO_DATE CLAUSE -> TIMESTAMP I need to keep the PARTION value (HISTORY_20110417) and DATE/TIME value (2011-04-18 00:00:00) the same for every line PARTITION HISTORY_20110417 VALUES LESS THAN (TO_DATE('... (3 Replies)
Discussion started by: BeefStu
3 Replies

7. UNIX for Advanced & Expert Users

Need help either with awk or sed to get text between words

Hello All, My requirement is to get test between two words START & END, something like html tags Eg. Input file: START Line1 Line2 Line3 CLOSE START Line4 Line5 Line6 END START Line7 START Line8 (7 Replies)
Discussion started by: konerusuneel
7 Replies

8. Debian

Using awk and sed to replace text

Good Day Every one I have a problem finding and replacing text in some large files that will take a long time to manually edit. Example text file looks like this #Example Large Text File unix linux dos squid bind dance bike car plane What im trying to do is to edit all the... (4 Replies)
Discussion started by: linuxjunkie
4 Replies

9. Shell Programming and Scripting

awk or sed? rows text to co

Hello Friends! I would like to help the masters ... I have a file with the entry below and would like a script for that output: Input file: 001 1 01-20152142711532-24S 1637909825/05/2015BAHIA SERVICOS R F, ... (1 Reply)
Discussion started by: He2
1 Replies

10. Shell Programming and Scripting

Text replacement with awk or sed?

Hi guys, I worked for almost a half-day for the replacement of some text automatically with script. But no success. The problem is I have hundred of files, which need to be replaced with some new text. It's a painful work to work manually and it's so easy to do it wrong. For example, I... (2 Replies)
Discussion started by: liuzhencc
2 Replies
UVCCAPTURE(1)						      General Commands Manual						     UVCCAPTURE(1)

NAME
uvccapture - USB UVC Video Class snapshot software SYNOPSIS
uvccapture [options] DESCRIPTION
This manual page documents briefly the uvccapture command. The purpose of uvccapture is to capture an image from a USB webcam at a specified interval, and save it to a JPEG file, no other formats are supported, imagemagick can handle anything else you might need. OPTIONS
A summary of options is included below. -h Show summary of options. -v Verbose output. -o<filename> Output filename (default is snap.jpg) -d<device> V4L2 Device (default is /dev/video0) -x<width> Image Width (must be supported by device) (>960 activates YUYV capture) -y<height> Image Height (must be supported by device) (>720 activates YUYV capture) -c<command> Command to run after each image capture (executed as <command> <output_filename>) -t<integer> Take continuous shots with <integer> seconds between them (0 for single shot) -q<percentage> JPEG Quality Compression Level (activates YUYV capture) -r Use read instead of mmap for image capture -w Wait for capture command to finish before starting next capture -m Toggles capture mode to YUYV capture -B<integer> Brightness -C<integer> Contrast -S<integer> Saturation SEE ALSO
http://linux-uvc.berlios.de/ AUTHOR
uvccapture was written by Gabriel A. Devenyi <ace@staticwave.ca>. This software is based of the package luvcview by Laurent Pinchart and Michel Xhaard. This manual page was written by Krzysztof Burghardt <krzysztof@burghardt.pl>, for the Debian project (but may be used by others). 28th March, 2008 UVCCAPTURE(1)
All times are GMT -4. The time now is 01:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy