Sponsored Content
Top Forums Shell Programming and Scripting RE or Sed to manipulate a document Post 302263970 by phpfreak on Tuesday 2nd of December 2008 09:06:24 PM
Old 12-02-2008
anybody know of how to do this to help me from having to edit each of the over 2500 lines?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Manipulate files

Hi everybody: I have a problem. I have a output files which have this pattern: number1 --space block1a - 7rows/10columns/65elements --space block1b - 7rows/10columns/65elements --space block1c - 7rows/10columns/65elements --space number2 --space block2a - 7rows/10columns/65elements... (0 Replies)
Discussion started by: tonet
0 Replies

2. Shell Programming and Scripting

sed or other tool to manipulate data, including email addresses

I have a list of names and email addresses, like this. The <tab> markers are actually tabs. joe.blow <tab> joe.blow@wherever.com tom.t.hall <tab> tom.t.hall@wherever.com john.r.smith <tab> john.r.smith@wherever.com sally.jones <tab> sally.jones@state.or.us I want to parse the data so that... (3 Replies)
Discussion started by: manouche
3 Replies

3. UNIX for Dummies Questions & Answers

using sed to manipulate text in files

Hi, I have a slight problem in trying to manipulate the text within a file using the "sed" command in that the text i need changed has "/" slashes in. I have a .sh script that scans the "/db/sybbackup/" directories for any .dmp file older than 2 days and then to >> the information to a file called... (3 Replies)
Discussion started by: Jefferson333
3 Replies

4. Shell Programming and Scripting

Sed command to find, manipulate and replace a number

Hi, Im very new to the world of sed so I'm really not even sure if this is possible. What i need to do is read from a flat file and every time i see this line: VAL=123,456 I need to change 456 to 457 for every occurence of this line in the file. The numbers 123 and 456 are different for... (6 Replies)
Discussion started by: LT_2008
6 Replies

5. Shell Programming and Scripting

manipulate postscript via sed

dear all, on solaris10 for x86 i am trying to modify the creation date of a postscript file with sed in a csh script. sed is driving me crazy though...i think due to the spaces in the string i am trying to substitute?? part of the postscript file: %!PS-Adobe-3.0... (3 Replies)
Discussion started by: lada niva
3 Replies

6. Shell Programming and Scripting

Manipulate lines with sed/awk

Hey All, I need to reorganize a file's text. Here is the source: host John_Doe filename "config.cfg"; hardware ethernet 98:10:3d:13:8f:98; fixed-address 10.10.10.29; } host Jane_Doe filename "config.cfg"; hardware ethernet 98:13:11:fd:5a:57; fixed-address 10.10.5.24; } host... (2 Replies)
Discussion started by: TheBigAmbulance
2 Replies

7. Shell Programming and Scripting

sed script to manipulate the /etc/passwd file

Hi. Can anybody help me with a script to extract usernames, shell and home_directory from the /etc/passwd file. I am stuck (2 Replies)
Discussion started by: Pauline mugisha
2 Replies

8. Shell Programming and Scripting

Here document inside a here document?

Can we use a here document inside a here document? Something like this ssh user@remotehost << REMOTE sudo vserver vsernamename enter << VSERVER perform actions on vserver. VSERVER REMOTE (6 Replies)
Discussion started by: mnanavati
6 Replies

9. Shell Programming and Scripting

Manipulate columns using sed

Hello, I would like to remove the first column of lines beginning by a character (in my case is an open square bracket) and finishing by a space (or any other delimiter). For example: string1 string2 string3 to string2 string3 I found this previous topic: ... (1 Reply)
Discussion started by: stoyanova
1 Replies

10. Shell Programming and Scripting

Manipulate "&" in sed

Is it possible to manipulate the ampersand in sed? I want to sum +1 to all numbers in a file. Example that doesn't work:sed "s/\{1,2\}/$(expr & + 1)/g" filenameAlso, how to return 02 instead of 2 from expr? (8 Replies)
Discussion started by: teresaejunior
8 Replies
DMASCC_CFG(1)						     Linux Programmer's Manual						     DMASCC_CFG(1)

NAME
dmascc_cfg - Configure dmascc devices SYNOPSIS
dmascc <interface> [<options>] DESCRIPTION
dmascc_cfg is used to configure dmascc devices such as PI2 and PackeTwin cards. The --show option can be used by any user, all other options must be used by root. OPTIONS
--speed frequency Set frequency of baud rate generator to frequency. A value of 0 disables the baud rate generator and the digital PLL. Use the --show option to check whether the frequency you selected could be approximated with sufficient accuracy. --nrzi [0|1] 0 selects NRZ mode, 1 selects NRZI mode. --clocks integer Set the clock mode. You may OR together three choices (other values are not supported and may cause strange results). TX clock pin: 0x00 input 0x05 output TX clock * 0x06 output baud rate generator * 0x07 output digital PLL * TX clock source: 0x00 RX clock pin 0x08 TX clock pin # 0x10 baud rate generator 0x18 digital PLL + RX clock source: 0x00 RX clock pin 0x20 TX clock pin 0x40 baud rate generator 0x60 digital PLL + * Not allowed on PI2 Port A if J3 is installed. # TX clock pin must be configured as input. + Speed must be equal to 32 times the baud rate. --txdelay milliseconds Set transmit delay to milliseconds. Maximum is 2500 ms. --txtime seconds Set maximum time the transmitter may be active to seconds. --sqdelay milliseconds Set the squelch delay to milliseconds. Maximum delay is 2500 ms. --slottime milliseconds Set the slot time to milliseconds. Maximum slottime is 2500 ms. --waittime milliseconds Set the minimum time between the transmitter turning off to when it turns on to milliseconds. Maximum wait time is 2500 ms. --persist f Set the persistance parameter to f. Must be between 0 and 255 (inclusive). --dma channel Set the DMA channel to channel. Can be 1 or 3. Setting to 0 disables DMA. BUGS
dmascc_cfg does not check the parameters for validity. The driver or kernel may crash if you specify invalid values. AUTHORS
Klaus Kudielka This manual page written by Craig Small <csmall@small.dropbear.id.au> Linux 30 June 1999 DMASCC_CFG(1)
All times are GMT -4. The time now is 09:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy