Search Results

Search: Posts Made By: gaur84
1,613
Posted By gaur84
vi f1;vi f2
vi f1;vi f2
36,275
Posted By gaur84
You can extract the word from this scripts ...
You can extract the word from this scripts

awk '{for(i=1;i<=NF;i++) {if($i ~/[0-9]/) {print $i}}}' filename
31,468
Posted By gaur84
Try out this one if it could solve the problem ...
Try out this one
if it could solve the problem

awk '{gsub(/\",\"/,"|",$0);gsub(/,\"/,"|",$0);gsub(/\",/,"|",$0)}1'


Use code tags, please!
2,261
Posted By gaur84
try this grep -v "^#" 2 |grep -v...
try this
grep -v "^#" 2 |grep -v "^$"
Forum: OS X (Apple) 05-08-2010
12,541
Posted By gaur84
you can use write command also it will message to...
you can use write command also it will message to specific user only
o r u can use echo
echo "hi" dev/pts/0
2,390
Posted By gaur84
Try this if it could help you out awk...
Try this if it could help you out
awk '$1~/^020/{$4=substr($4,1,1)"#"substr($4,3,1)"#"substr($4,5,1)"#"substr($4,7,1)"#"}{print }' 1
2,862
Posted By gaur84
try this ,i think it will help you out awk...
try this ,i think it will help you out

awk '$1 ~/RECORD/{sub("RECORD","GRID",$0)}1' 1
Forum: AIX 05-04-2010
5,878
Posted By gaur84
you can do this by awk also ls -lrt |awk...
you can do this by awk also

ls -lrt |awk '{x=substr($1,9,1)}{if(x=="w"){print $0}}'
2,300
Posted By gaur84
sed '{ s/D\$mhtt/D\$mhtt \\\ -s \"J\"/g ...
sed '{
s/D\$mhtt/D\$mhtt \\\
-s \"J\"/g
}' FILENAME
2,206
Posted By gaur84
awk -F "," '/module/ {for(i=1;i<=NF;i++) {if...
awk -F "," '/module/ {for(i=1;i<=NF;i++) {if ($i!~"temp") {print $i}}}' 1
for single as well as newline try this
2,206
Posted By gaur84
for single line u can try this one awk -F...
for single line
u can try this one
awk -F "," '{for(i=1;i<=NF;i++) {if ($i!~"temp") {print $i}}}' FILENAME
3,060
Posted By gaur84
TRY THIS sed '1,4d' FILENAME| awk...
TRY THIS

sed '1,4d' FILENAME| awk '{a[$1]+=$NF} END {for(i in a) {printf %d i,a[i]}}'
2,939
Posted By gaur84
sed -n '/^Fred/s/$/***/p' 1
sed -n '/^Fred/s/$/***/p' 1
1,438
Posted By gaur84
sed '/\*/d' filename
sed '/\*/d' filename
1,438
Posted By gaur84
sed 's/\*//g' FILENAME
sed 's/\*//g' FILENAME
15,520
Posted By gaur84
awk '{split($0,a,410530)} {for(i in a)...
awk '{split($0,a,410530)} {for(i in a) {if(i>=2){print 410530 a[i]}}}' 1212
2,058
Posted By gaur84
awk -v a="in" '{if(a=="=") {print hi} else print...
awk -v a="in" '{if(a=="=") {print hi} else print "bye"}'
3,982
Posted By gaur84
sed 's/\([a-z].*\)\([1-9].*\)\.\([a-z].*\)/\1\2/'...
sed 's/\([a-z].*\)\([1-9].*\)\.\([a-z].*\)/\1\2/' e
2,287
Posted By gaur84
head -1 21|awk -F "=" '{print $3}' |sed...
head -1 21|awk -F "=" '{print $3}' |sed 's/\"//g'
1,390
Posted By gaur84
sed '/.*-/!d' a| awk -F "-" '{print $1}'
sed '/.*-/!d' a| awk -F "-" '{print $1}'
4,068
Posted By gaur84
sed 's/^usb */match /g' a
sed 's/^usb */match /g' a
33,909
Posted By gaur84
ls -lrt | awk '{if($9 ~ /ABC/) print $9}'
ls -lrt | awk '{if($9 ~ /ABC/) print $9}'
5,272
Posted By gaur84
grep -f file2 file1
grep -f file2 file1
Showing results 1 to 23 of 23

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