Search Results

Search: Posts Made By: rich@ardz
2,337
Posted By Scrutinizer
Try: awk -F'[ \t,_:.]*' '{print...
Try:
awk -F'[ \t,_:.]*' '{print $5","$9":"$10":"$11"."$15}' infileawk -F'[ \t,_:.]*' '{print $5","$9":"$10":"$11"."$12","$15}' infile
3,731
Posted By Scrutinizer
sed...
sed 's/\(^\|[^[:alnum:]]\)\(rich\|RICH\|Rich\)\([^[:alnum:]]\|$\)/\1NICK\3/g' infile
5,617
Posted By ygemici
# ./justdoit 1) one 2) two 3) three 4)...
# ./justdoit
1) one
2) two
3) three
4) four
5) five
6) quit
Please input your choice..1

This is f1 function

1) one
2) two
3) three
4) four
5) five
6) quit
Please input your...
5,617
Posted By clx
That's a good point. for i in $choice do ...
That's a good point.

for i in $choice
do
echo "run function $i"
f${i}
done

should do the things.
5,617
Posted By clx
Try something like: f1 () { echo...
Try something like:


f1 () {
echo running fn1
}

f2 () {
echo running fn2
}

f3 () {
echo running fn3
}

f4 () {
echo running fn4
}

echo "enter choice -- multiple...
1,624
Posted By rdcwayx
sed 's/\(Person\(id=\|:\|ID:\)\).*/\1XXXXXX/'...
sed 's/\(Person\(id=\|:\|ID:\)\).*/\1XXXXXX/' infile

For second question,you need provide some sample inputs and expect output first.
6,831
Posted By bartus11
Does it have to be sed? perl -pe...
Does it have to be sed?
perl -pe 's/(?<![a-z])jo(?![a-z])/bo/ig' file
6,831
Posted By bartus11
sed 's/user=.*/user=xxx/' and: sed...
sed 's/user=.*/user=xxx/'
and:
sed 's/^am$/jo/i'
89,485
Posted By Scott
Um, no! Sorry my mistake. I've updated my...
Um, no!

Sorry my mistake. I've updated my previous post :o
89,485
Posted By Scott
Hi. Then you can either use ed, or write to...
Hi.

Then you can either use ed, or write to a temporary file:


function Replace
{
ls | while read f; do
sed 's/JAM/BUTTER/g;s/BREAD/CRACKER/g;s/SCOOP/FORK/g;s/SPREAD/SPLAT/g' "$f" >...
17,471
Posted By radoulov
Sorry, 1 is one day, so you need 1/24: perl...
Sorry, 1 is one day, so you need 1/24:

perl -MFile::Find -le'
find {
wanted => sub {
-f and 1 / 24 >= -M and print $File::Find::name;
}
}, shift
' ...
3,215
Posted By anbu23
function search { cd $logsloc ...
function search
{
cd $logsloc
echo "Enter date in format YYYYMMDD (enter to exit):"
read dateToLookFor
echo $dateToLookFor | grep -q ...
Showing results 1 to 12 of 12

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