Search Results

Search: Posts Made By: ltomuno
1,165
Posted By ltomuno
awk '{ORS=" ";print}' input
awk '{ORS=" ";print}' input
9,521
Posted By ltomuno
sed -n '/CASSI1802I/,$p' input
sed -n '/CASSI1802I/,$p' input
16,575
Posted By ltomuno
sed -n 's/"\|","/\n/gp' input
sed -n 's/"\|","/\n/gp' input
6,324
Posted By ltomuno
awk...
awk '{if(NR==1){while(i<NF){i++;a[i]=$i;}}else{for(i in a){print a[i]" (gg) "$1" = "$(i+1)}}}' input
8,911
Posted By ltomuno
sed -n 's/DN[0-9]\{2\}-[0-9]\{3\} //p' input|awk...
sed -n 's/DN[0-9]\{2\}-[0-9]\{3\} //p' input|awk '{ORS="";gsub("\\.",".\n\r");print}'
5,300
Posted By ltomuno
find . -type d \( -name "\\proc" -o -name "\\sys"...
find . -type d \( -name "\\proc" -o -name "\\sys" \)Please use code tags!
1,231
Posted By ltomuno
echo 123 | sed -n 's/1/2/g;s/2/3/gp'
echo 123 | sed -n 's/1/2/g;s/2/3/gp'
3,287
Posted By ltomuno
nc -vw2 localhost 1000-1050
nc -vw2 localhost 1000-1050
1,259
Posted By ltomuno
echo "123 index" sed -n 's/123/\n/gp' 1|awk...
echo "123 index"
sed -n 's/123/\n/gp' 1|awk 'BEGIN{i=1}{i+=length($0);a[NR]=i;i+=3}END{for(i in a){print a[i]}}'|sort -n
echo "456 index"
sed -n 's/456/\n/gp' 1|awk...
6,221
Posted By ltomuno
too many swaping
too many swaping
1,682
Posted By ltomuno
sed -n 's/[a-zA-Z]*[0-9]*/&\n/gp' input | sed...
sed -n 's/[a-zA-Z]*[0-9]*/&\n/gp' input | sed '/^$/d'
9,084
Posted By ltomuno
echo '/ and \' | sed 's/[/|\]//g'
echo '/ and \' | sed 's/[/|\]//g'
2,643
Posted By ltomuno
sed 's/ /\n/g' inputfile | sed -n...
sed 's/ /\n/g' inputfile | sed -n 's/"//g;s/binariesURL=//p'
1,290
Posted By ltomuno
echo 'para1#para2#para3' | awk 'NF+=0' FS=#...
echo 'para1#para2#para3' | awk 'NF+=0' FS=# OFS='\n'
2,497
Posted By ltomuno
echo '85743975945738' | awk '{print...
echo '85743975945738' | awk '{print substr($0,0,4)"-"substr($0,5,4)"-"substr($0,9)}'
2,218
Posted By ltomuno
sed -n 's/\*/\\*/gp' input
sed -n 's/\*/\\*/gp' input
8,086
Posted By ltomuno
sed -n 's/[0-3]//;s/ //;p' inputfile | awk -v...
sed -n 's/[0-3]//;s/ //;p' inputfile | awk -v ORS= '{print $0" ";if(NR%4==0){print "\n"}}'
9,062
Posted By ltomuno
awk 'BEGIN{print...
awk 'BEGIN{print "min\tmax\taverage"}{if(NR==1){min=max=average=$7}else{min=min>$7?$7:min;max=max<$7?$7:max;average+=$7}}END{print min"\t"max"\t"average/NR}' inputfile
36,148
Posted By ltomuno
echo "123X568" | awk 'NF+=0' FS= OFS='\n' | awk...
echo "123X568" | awk 'NF+=0' FS= OFS='\n' | awk '/X/{print NR}'
2,723
Posted By ltomuno
awk '!($0 in a){a[$0];if(FILENAME=="4")print}' 3...
awk '!($0 in a){a[$0];if(FILENAME=="4")print}' 3 4 > new
3,146
Posted By ltomuno
watch -n 5 -d
watch -n 5 -d
3,391
Posted By ltomuno
awk -F'field[1-4]' -v RS= 'BEGIN{print...
awk -F'field[1-4]' -v RS= 'BEGIN{print "field1\tfield2\tfield3\tfield4"}{gsub("\"","");gsub(":","")gsub("\n"," ");sub(" ","",$2);print $2 $3 $4 $5 $6}' file1.txt
3,721
Posted By ltomuno
sed...
sed '/A2B2/!y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' DATA.DAT
3,677
Posted By ltomuno
sed -n '/\/$/!p' inputfile
sed -n '/\/$/!p' inputfile
1,784
Posted By ltomuno
awk -F'OPERATIONNEL' '/OPERATIONNEL/{print...
awk -F'OPERATIONNEL' '/OPERATIONNEL/{print "/OPERATIONNEL"$2}' inputfile
Showing results 1 to 25 of 41

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