Search Results

Search: Posts Made By: chu816
2,827
Posted By jim mcnamara
Your example doesn't seem to match your...
Your example doesn't seem to match your requirement. I'll match the example:
if test appears in the line, look for duplicates (2 only, not 3)


awk ' /test/ {arr[$0]++}
END{ for(i in...
2,107
Posted By balajesuri
#! /bin/tcsh set filea=/blah1/blah2/blah3 ...
#! /bin/tcsh

set filea=/blah1/blah2/blah3
set fileb=/blah1/blah2/blah3/blah4
set filec=/blah1/blah2/blah3/blah4/blah5
foreach file ($filea $fileb $filec)
set numtabs=`echo $file | awk...
3,241
Posted By clx
what does the variable $test contains? If there...
what does the variable $test contains?
If there are "/" in variable, you should escape it or use another terminator.
sed "s|$test||g"
Showing results 1 to 3 of 3

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