I want to change a line like
CPM_THRESHOLD 0.8 //
to a new value using sed
I am trying
sed -i "s/CPM_THRESHOLD/CPM_THRESHOLD\t$COH\t\t\/\//" $INPUT_4
but how can i substitute the whole line begining with CPM_THRESHOLD and substitute it? (2 Replies)
Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line.
... (1 Reply)
#!/bin/bash
dir=/home/andre/Documents/Scripts/Copy1/
f1=file1
f2=file2
f3=file3
check= ( cd $dir && ls | grep file? ) #the idea is to check if files file1-3 exists, has been copied, are there already, whatever :D
if ; then
mkdir Copy1
echo " has created folder "
else
echo "... (2 Replies)
Hello All,
I have something like below
LDC100/rel/prod/libinactrl.a
LAA2000/rel/prod/libinactrl.a
I want to remove till first forward slash that is outputshould be as below
rel/prod/libinactrl.a
rel/prod/libinactrl.a
How can I do that ??? (8 Replies)
I created a shell with sed -i option. It is giving error - No such file or directory
Ex -
sed -i 's/yes/no' yes.txt
sed -i 's/why/where' yes.txt
sed -i 's/when/how' yes.txt
Error - :No such file or directory
When I run single line in my script say sed -i 's/yes/no' yes.txt... (10 Replies)
hi guys,
im trying to add the following line in my xml file
<dbrollbacksegs <oa_var="s_db_rollback_segs">NOROLLBACK</dbrollbacksegs>
when ever i find the following line
<dbsharedpool oa_var="s_dbsharedpool_size">300000000</dbsharedpool>
I have succedded till adding a new line... (1 Reply)
My input file gfile values is CTRY=GM&PROJTYPE=SP&PROJECTTYPE=Small+Project
If i am giving PROJECTTYPE then it must give Small Project
awk -F"&" '{for (i=1; i<=NF; i++) if ($i ~ "^"PAT) {sub ("^"PAT"=", "", $i); sed 's/'+'/""/' $i ; print $i }}' PAT=$1 ... (6 Replies)
Hi all,
I ahve a program which has to delete a line in a file... if i run the sed command through shell prompt it works fine. But if run it using code its throwing error. May i know where i am doing wrong.
the file has 3 lines
# cat /root/.ssh/known_hosts... (4 Replies)
Hello, everyone. Thanks for taking the time to read my post.
I have nagios config files for which I'm adding the custom variable _mac_address. I have a sed script that places this variable into an existing file. The problem I'm having is if a line in the file is commented out, I don't want the... (2 Replies)
Hi all
OS - RHEL6.4
I have input file -f1.txt
I need to search line which starts with \Start and read next line till it gets blank line and join them all. I need to trim any trailing spaces for each line.So output.txt should be..
\Start\now\fine stepwatch this space for toolsends... (7 Replies)
Discussion started by: krsnadasa
7 Replies
LEARN ABOUT DEBIAN
ch_lab
CH_LAB(1) BSD General Commands Manual CH_LAB(1)NAME
ch_lab -- change/copy label files
SYNOPSIS
ch_lab [-S frame spacing] [-start time] [-end time] [-ext file extension] [-extract file] [-extend time] [-f sample frequency]
[-lf sample frequency] [-itype file type] [-key key file] [-lablist list of labels] [-length time] [-map map file]
[-name feature name] [-class class] [-o output file] [-otype file type] [-pad high | low] [-pos list of labels] [-q timestep]
[-range range] [-sed sed file] [fl shift time delta] [-style output stype] [-vocab vocab file] [-verify] [-nopath] [-base] [-combine]
[-divide] [-h] input files ...
DESCRIPTION
ch_lab copies from one or more input label files to an output label file, optionally performing various operations along the way.
The following option flags are recognized:
-h Print a summary of usage to standard output.
-S frame spacing
frame spacing of output
-start time
start time, in seconds, for label extraction
-end time
end time, in seconds, for label extraction
-ext file extension
filename extension to use for multiple output files
-extract file
extract a single file from a list of files
-extend time
extend track file by time seconds beyond label file
-f sample frequency
sample frequency of label file
-lf sample frequency
sample frequency for labels
-itype file type
type of input label file: esps htk ogi
-key key file
key label file
-lablist list
list of labels to be considered as blank
-length time
length of track produced, in seconds
-map map file
label mapping file
-name feature name
eg. Fo Phoneme
-class class
name of class defined in op file
-o output file
output file name
-otype file type
output file type: xmg, ascii, esps, htk
-pad high | low
pad with high or low values
-pos list
list of labels to be regarded as 'pos'
-q timestep
quantize label timings to nearst value
-range range
difference between high and low values
-sed sed file
perform regex editing using sed file
fl shift time delta
shift the times of the labels
-style output style
output style e.g. track
-vocab file
file containing list of words in vocabulary
-verify
check that only labels in vocab file are in label file
-nopath
ignore pathnames when searching label lists
-base
use base filenames for lists of label files
-combine
-divide
SEE ALSO ch_wave(1)ch_track(1)Edinburgh Speech Tools April 5, 2001 Edinburgh Speech Tools