Search Results

Search: Posts Made By: walid2mi
28,161
Posted By walid2mi
while IFS=, read a b c d e do echo $e ...
while IFS=, read a b c d e
do
echo $e
echo yes
done < $FILE
1,252
Posted By walid2mi
untested: sed '/1701/!s/.*/& 1701\x22/' file
untested:
sed '/1701/!s/.*/& 1701\x22/' file
4,301
Posted By walid2mi
or: BEGIN{ FS="Jane " } \ /123/ \ {print...
or:

BEGIN{ FS="Jane " } \
/123/ \
{print $2}
8,121
Posted By walid2mi
untested: sed "s/=.*/=Actual Address/"...
untested:
sed "s/=.*/=Actual Address/" file
2,567
Posted By walid2mi
echo '/xyz/123/348/file1' | sed 's;.*/;/;'
echo '/xyz/123/348/file1' | sed 's;.*/;/;'
1,469
Posted By walid2mi
while IFS=_ read o c; do sudo chown "$o" "$c" ;...
while IFS=_ read o c; do sudo chown "$o" "$c" ; done < .owners
18,650
Posted By walid2mi
a variant: paste f1 f2 | awk '{$4=$7;$7=""}1'...
a variant:
paste f1 f2 | awk '{$4=$7;$7=""}1' OFS="\t"
3,290
Posted By walid2mi
try with $4 awk...
try with $4
awk '/fasta$/{split($NF,m,".");printf m[1]}/SCORE/{printf " %s\n",$4}' file
3,290
Posted By walid2mi
awk '/fasta$/{split($NF,m,".");printf...
awk '/fasta$/{split($NF,m,".");printf m[1]}/SCORE/{printf " %s\n",$3}' file
3,411
Posted By walid2mi
sed '/.*:$/d' filin
sed '/.*:$/d' filin
2,070
Posted By walid2mi
untested sed 's/-input_code M/-input_code m/'...
untested
sed 's/-input_code M/-input_code m/' file
7,983
Posted By walid2mi
or @echo off >#.vbs echo wsh.echo "Set...
or

@echo off
>#.vbs echo wsh.echo "Set Nextsaturday="^&dateAdd("d",7-Weekday(Date),date)
for /f "delims=" %%_ in ('cscript /nologo #.vbs') do %%_
del #.vbs

set Nextsaturday
4,499
Posted By walid2mi
sed -n '/point/,/\/point/!p' file
sed -n '/point/,/\/point/!p' file
2,025
Posted By walid2mi
try this "untested" : awk...
try this "untested" :


awk '/^>/{print;getline};!/>/' file
1,003
Posted By walid2mi
with awk: echo "7.5.aa.sss.dddd_ROLD" | awk...
with awk:

echo "7.5.aa.sss.dddd_ROLD" | awk -F_ '{print $1}'
Showing results 1 to 15 of 15

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