Search Results

Search: Posts Made By: JavaHater
10,391
Posted By JavaHater
awk -vFS= '{$5=$5".";$26=$26"."}1' OFS=...
awk -vFS= '{$5=$5".";$26=$26"."}1' OFS= file
23,562
Posted By JavaHater
awk '!/^,,,,/' file
awk '!/^,,,,/' file
6,068
Posted By JavaHater
echo livingroom-110111105637.avi | sed -r...
echo livingroom-110111105637.avi | sed -r 's@(.*-......)(..)(..)(..)@\1-\2.\3.\4@'
1,463
Posted By JavaHater
awk -vRS="TAG END" -vFS="\n"...
awk -vRS="TAG END" -vFS="\n" '/LOCATION/{gsub(/\047/,"`",$1);gsub(/\042/,"``",$1);print}' ORS="TAG END" file
2,758
Posted By JavaHater
awk -vFS= -vj=0 '{ for(i=1;i<=NF;i++){ ...
awk -vFS= -vj=0 '{
for(i=1;i<=NF;i++){
j++;
if($i~/[cC]/){
print j
}
}
}' file
7,092
Posted By JavaHater
-v option...
-v option (http://www.gnu.org/manual/gawk/html_node/Quoting.html#Quoting)
7,092
Posted By JavaHater
Regexp...
Regexp (http://www.gnu.org/manual/gawk/html_node/Regexp.html#Regexp) Patterns and Actions (http://www.gnu.org/manual/gawk/html_node/Patterns-and-Actions.html#Patterns-and-Actions)
1,869
Posted By JavaHater
#!/bin/bash var="/path/*.{doc,odt}"
#!/bin/bash
var="/path/*.{doc,odt}"
7,092
Posted By JavaHater
awk -F"|" '$1~/BELL-1180-1180-81/ &&...
awk -F"|" '$1~/BELL-1180-1180-81/ && $2!~/:10[12]$/' file
1,316
Posted By JavaHater
awk -vRS="" -vFS="\n" '/Age/{re=$1} $0~re{print...
awk -vRS="" -vFS="\n" '/Age/{re=$1} $0~re{print }' file
2,418
Posted By JavaHater
awk '$4{f=1;exit}END{ print f?"problem":"fine"}'...
awk '$4{f=1;exit}END{ print f?"problem":"fine"}' file
7,710
Posted By JavaHater
awk '/000+/{print}' file
awk '/000+/{print}' file
1,978
Posted By JavaHater
awk -F"." '{u[$1]=$0}END{for(i in u) print...
awk -F"." '{u[$1]=$0}END{for(i in u) print u[i]}'
5,040
Posted By JavaHater
awk '/IM/{h=$0};/B2/{print h"\n"$0;exit}'...
awk '/IM/{h=$0};/B2/{print h"\n"$0;exit}' file
2,346
Posted By JavaHater
sed -r 's/^(.).*/\1/' file sed -rn...
sed -r 's/^(.).*/\1/' file
sed -rn 's/^[[:space:]]*([[:alpha:]]).*/\1/p' file
2,346
Posted By JavaHater
sed -r 's/^(.).*/\1/' file
sed -r 's/^(.).*/\1/' file
4,076
Posted By JavaHater
@mtomar, don't do other people's homework....
@mtomar, don't do other people's homework. Besides, your solution is a perfect example of shoddy programming.
Showing results 1 to 17 of 17

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