Search Results

Search: Posts Made By: newboy
1,426
Posted By Ygor
Try...awk 'BEGIN{FS=OFS="\t"}$3~s{$6=r}1'...
Try...awk 'BEGIN{FS=OFS="\t"}$3~s{$6=r}1' s='common/bin/my/home' r='happy Home' sample.rpt
9,128
Posted By jawsnnn
If you don't want to rely on properly formatted...
If you don't want to rely on properly formatted code, here is a script that keeps track of left and right parentheses counts to do this


#!/bin/ksh
count_prev=0
count=0
mask=false
while read...
9,128
Posted By Scrutinizer
Hi, it is a "range pattern" consisting of two...
Hi, it is a "range pattern" consisting of two regexes, /HOME.*(/ and /^)/.
9,128
Posted By Scrutinizer
Try: sed '/HOME.*(/,/^)/d' infile
Try:
sed '/HOME.*(/,/^)/d' infile
Showing results 1 to 4 of 4

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