There are more efficient ways to do this, but this seems to do what you want:
with the sample data you provided contained in a file named file, this produces the output:
These 2 Users Gave Thanks to Don Cragun For This Post:
Hi all,
if for example I had a variable containing the string 'hello', is the any way I can output, for example, the e and the 2nd l based on their position in the string not their character (in this case 2 and 4)?
any general pointers in the right direction will be much appreciated, at... (3 Replies)
Hi Please help me to refine my syntax. I want to delete the excess characters from the out put below.
-bash-3.00$ top -b -n2 -d 00.20 |grep Cpu|tail -1 | awk -F ":" '{ print $2 }' | cut -d, -f1
4.4% us
now i want to delete the % and us. How wil i do that to make it just 4.4.
Thanks (7 Replies)
Hi,
I've a csv file seperated by '|' from which I'm trying to remove the excess '|' characters more than the existing fields. My CSV looks like as below.
HRLOAD|Service|AddChange|EN
PERSONID|STATUS|LASTNAME|FIRSTNAME|ITDCLIENTUSERID|ADDRESSLINE1
10000001|ACTIVE|Testazar1|Testore1|20041|||... (24 Replies)
sed -e "s// /g" old.txt > new.txt
While I do know some control characters need to be escaped, can normal characters also be escaped and still work the same way? Basically I do not know all control characters that have a special meaning, for example, ?, ., % have a meaning and have to be escaped... (11 Replies)
helloo
I wonder if there's a way to cut characters out of a string and keep only
the last 2 by using sed.
For example if there's the todays' date:
2012-05-06
and we only want to keep the last 2 characters which are the day.
Is there a quick way to do it with sed? (2 Replies)
Hey guys,
I know that title is a mouthful - I'll try to better explain my struggles a little better...
What I'm trying to do is:
1. Query a db and output to a file, a list of column data.
2. Then, for each line in this file, repeat these values but wrap them with:
ITEM{
... (3 Replies)
Hi,
I have a xml file (Config.xml)
<Header name="" TDate="" PDate="">
<Config>
{"config" { "Nation" "Pri:|Sec:"}}
</Config>
</Header>
Now I wanted to printed all the strings between "". I tried the following
cat Config.xml | sed -n 's/.*\.*//p'
... (8 Replies)
Hi,
I hope you can help me out please?
I need to replace from character 8-16 with AAAAAAAA and the rest should stay the same after character 16
gtwrhtrd11111111rjytwyejtyjejetjyetgeaEHT
wrehrhw22222222hytekutkyukrylryilruilrGEQTH
hrwjyety33333333gtrhwrjrgkreglqeriugn;RUGNEURGU
... (4 Replies)
I have a file that looks like this:
>ID 1
AATAATTCCGGATCGTGC
>ID 2
TTTGACAGTAGAC
>ID 3
AGACGATGACGAT
I am using the following script to report if AATTCCGGATCG is present in any sequence:
awk 'FNR==1{n=substr(FILENAME,1,index(FILENAME,".")-1)} { print n "\t"... (10 Replies)
Discussion started by: Xterra
10 Replies
LEARN ABOUT DEBIAN
faad
FAAD(1)FAAD(1)NAME
faad -- Process an Advanced Audio Codec stream
SYNOPSIS
faad [options] [-w | -o <output_filename> | -a <output_filename>] input_filename
DESCRIPTION
This utility provides a command line interface to libfaad2. This program reads in MPEG-4 AAC files, processes, and outputs them in either
Microsoft WAV, MPEG-4 AAC ADTS, or standard PCM formats.
OPTIONS -a <filename>, --adtsout <filename>
Sets the processing to output to the specified file in MPEG-4 AAC ADTS format
-b <number>, --bits <number>
Set the output (individual) sample format. The number takes one of the following values:
1: 16-bit PCM data (default).
2: 24-bit PCM data.
3: 32-bit PCM data.
4: 32-bit floating-point data.
5: 64-bit floating-point data.
-d , --downmix
Set the processing to downsample from 5.1 (surround sound and bass) channels to 2 channels (stereo).
-f <number>, --format <number>
Set the output file format. The number takes one of the following values:
1: Microsoft WAV format (default).
2: Raw PCM data.
-g Set the processing to not perform gapless decoding.
-h , --help
Shows a usage summary.
-i , --info
Shows information about the about the input file.
-l <number>, --objecttype <number>
Sets the MPEG rofile and object type for the processing to use. The number takes one of the following values:
1: Main object type.
2: Low Complexity (LC) object type (default).
4: Long Term Prediction (LTP) object type.
23: Low Delay (LD) object type.
-o <filename>, --outfile <number>
Sets the filename for processing output.
-q , --quiet
Quiet - Suppresses status messages during processing.
-t , --oldformat
Sets the processing to use the old MPEG-4 AAC ADTS format when outputting in said format.
-w , --stdio
Sets the processing output to be sent to the standard out.
AUTHOR
Matthew W. S. Bell <matthew (at) bells23.org.uk>
SEE ALSO faac(1)faad 2.5 October 2006 FAAD(1)