Sponsored Content
Top Forums Shell Programming and Scripting Removing text from a line in a file Post 302164404 by outthere_3 on Monday 4th of February 2008 10:26:21 PM
Old 02-04-2008
Error Removing text from a line in a file

Hi All,

I would like to know how to remove text from a line in a file.

eg

[na *oparea* check 0 nul 6376000 nlr 6374000 eul 318000 elr 320000]

to

[na *oparea* check 0]

The 4 sets of numbers are not static ie they change on each line in each different file so if anyone can help that would be great.

Jeremy
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

removing commas from text file

Dear all I have a file which looks like this xxxxxxxxxxxxxx,xxx,xxxxxxxxxx xxxxxxxxxxxxxx,xxx,xxxxxxxxxx etc basically 14 characters then a comma, three characters, then a comma then 10 characters. We are uploading this file to our mainframe and they want the commas removed, so it... (6 Replies)
Discussion started by: hcclnoodles
6 Replies

2. Shell Programming and Scripting

Removing lines in a text file.

Here is my problem I'm hoping you guru's can help me figure out. I have a text file that contains comma delimited columns. What I'm looking to do is see if the 24th column on each row in the file contains a value (not null), and then write/append that line to a different file. I've been... (4 Replies)
Discussion started by: WABonnett
4 Replies

3. Shell Programming and Scripting

Removing a particular line from a text file

Hi, I have a file called inp.txt the contents of the file are as follows MANI123|23|41 MANI123|96|23 I want to reove the first line of this file. How can I do it. Thanks in advance (5 Replies)
Discussion started by: sendhilmani123
5 Replies

4. Shell Programming and Scripting

Sed question (Removing a line of text)

I am working with bash on HP-UX server at school. As practice for scripting, I am trying to make a pretend server admin script that adds a user to the system, deletes a user from the system, and lists all users of the pretend system. I have accomplished this with a select loop. Adding users, and... (2 Replies)
Discussion started by: masterscout1977
2 Replies

5. UNIX for Dummies Questions & Answers

Removing a string of text from a file - help please

Hey Folks, I have a file that contains data that I am working with, sometimes this file has a very long string of text that messes with an awk command in a script i am trying to build. I would like to cut this string of text out of a file and then redirect everything except that string to a new... (5 Replies)
Discussion started by: deepslp
5 Replies

6. Shell Programming and Scripting

Help with removing line from text

Hey everyone, I kinda new to shell programming and learning bits and pieces of stuff from tutorials. I got this problem, where I asked my user to enter a string, which will delete a specific line in the string, which I'm unable to do it. Text file(BookDB.txt) as shown: Three Little... (4 Replies)
Discussion started by: aLHaNz
4 Replies

7. Shell Programming and Scripting

Removing zero values from text file

Hi all, I wrote the following code to remove the value which are 0 in the input file (a columns if numbers). awk 'BEGIN { for (i=1; i<=NF; i++) if ($i) printf("%13.6e\n",$i) }' $1 >> $2 The script works if the zeros are written as 0.0000 but not as 0.000000e+00 In... (10 Replies)
Discussion started by: f_o_555
10 Replies

8. Windows & DOS: Issues & Discussions

Removing anything from text file except specific string

So, I have a text file that looks like this: 0,0: (168,168,176) #A8A8B0 srgb(168,168,176) 1,0: (168,168,176) #A8A8B0 srgb(168,168,176) 2,0: (166,166,174) #A6A6AE srgb(166,166,174) 3,0: (166,166,174) #A6A6AE srgb(166,166,174) 4,0: (168,168,176) #A8A8B0 srgb(168,168,176) 5,0:... (0 Replies)
Discussion started by: pasc
0 Replies

9. UNIX for Dummies Questions & Answers

Removing PATTERN from txt without removing lines and general text formatting

Hi Everybody! First post! Totally noobie. I'm using the terminal to read a poorly formatted book. The text file contains, in the middle of paragraphs, hyphenation to split words that are supposed to be on multiple pages. It looks ve -- ry much like this. I was hoping to use grep -v " -- "... (5 Replies)
Discussion started by: AxeHandle
5 Replies

10. UNIX for Dummies Questions & Answers

Removing \n from a text file

Hi All, I have a question regarding text substitution. I have a file that contains a lot of text. Some of the text is separated with a \n like: TEST\nTEST2\nTEST3 BLA\nBLA2\nBLA3 So there are both actual newlines and 'used to be newlines' in the text. using tr tr "\n" "," or... (5 Replies)
Discussion started by: JaapSchuurman
5 Replies
LV2FILE(1)						      General Commands Manual							LV2FILE(1)

NAME
lv2file - Apply LV2 effects to audio files SYNOPSIS
lv2file -l|--list -n|--nameports PLUGIN -i INFILE -o OUTFILE [ OPTIONS ] PLUGIN DESCRIPTION
lv2file is aprogram which you can use to apply effects to your audio files without much hassle. Possible use cases are: * To apply an effect without having to open a GUI or start a project. * To apply effects to a large number of files, or in an automated manner. * A deterministic environment to debug a plugin. * Audio editing in a command-line only environment lv2file uses the LV2 plugin format (http://lv2plug.in/) for the effects it uses. OPTIONS
lv2file follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. -l, --list List and number all available plugins. -n --nameports PLUGIN List all the input and control ports for the specified plugin. -i FILE Input the audio from a given FILE. Most common sampled audio formats are supported. -o FILE Output to given FILE. -c, --connect CHANNEL:PORT Connect the channel CHANNEL in the input file to the audio port PORT of the plugin. If you connect multiple channels to the same port, they will be mixed together. The -c option is often not necessary, as lv2file will try to guess how you would like to connect the ports. It is possible to run multiple instances of a plugin using the syntax "-c 5:2.left" which, for example, would connect the fifth channel of audio to the port labeled "left" in the second copy of the plugin. You don't need to specify how many plugins to run, lv2file automatically makes enough according to the connections you make. -p, --parameters PORT:VALUE Pass values to the control ports of the plugin, essentially telling the effect how to handle the audio. PORT is the name of the control port, and VALUE is the value to set it to. For example "-p volume:1" sets the effects "volume" control to 1. You should note that because lv2file uses LV2 plugins, the VALUES will always be floating point numbers. It is not possible to vary a parameter with time. It is also not possible to have different control values for multiple plugin instances. Instead, split up the channels of your audio files, and process them in batches whose parameters are all the same. [ -m --mono ] Mix down all of the channels together and pass them to the plugin. This will only work if the plugin has only a single audio input. This is to be used instead of manually specifying connections. [ -b, --blocksize N ] The size of the chunks the audio is processed in. This might have implications for speed of processing. N is measured in frames, not samples. The default is 512. [ --ignore-clipping ] By default, lv2file will check every sample for clipping and will warn the user if any clipping occurs. However, if know that the effect won't produce clipping, or you don't care if it does, you can use this option to turn off the check for clipping. This will make lv2file run slightly faster. AUTHOR
lv2file was written by Jeremy Salwen <jeremysalwen@gmail.com>. This manual page was written by Jeremy Salwen <jeremysalwen@gmail.com>, for the Debian project (and may be used by others). March 14, 2011 LV2FILE(1)
All times are GMT -4. The time now is 04:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy