Search Results

Search: Posts Made By: Mahesh_RPM
1,716
Posted By Don Cragun
I thought you said you also wanted to changed Off...
I thought you said you also wanted to changed Off (or in your sample input file off) to On. Maybe you need something more like:
sed 's/^Delete_[0-9]*_//;s/|[Oo]ff|/|On|/' file
which, if file...
1,716
Posted By rangarasan
Well, What have you tried so far? Anyways,...
Well, What have you tried so far?

Anyways, Here it is..

sed 's/^Delete_[0-9]*_//' file_name


-Ranga
1,628
Posted By zaxxon
You have lots of answers with examples of basic...
You have lots of answers with examples of basic mechanisms how to parse a file in your other threads like https://www.unix.com/shell-programming-scripting/183279-read-values-file.html
So what have...
8,572
Posted By Corona688
You can use a shell loop to do this without...
You can use a shell loop to do this without running sed 6 times to process one file...

#!/bin/bash

exec 5<configfile

IFS="="

while read VAR VALUE
do
echo "'${VAR}' => '${VAR//...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 08:08 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy