Search Results

Search: Posts Made By: protocomm
3,076
Posted By protocomm
Ok, i correct... awk...
Ok, i correct...

awk '$8=="TYPE=snp"{a++};$8=="TYPE=ins"{b++};$8=="TYPE=del"{c++}END{print "snp="a "\n" "ins="b "\n" "del="c}'
3,076
Posted By protocomm
in the spirit of cmccabe: awk...
in the spirit of cmccabe:

awk '$8=="snp"{a++};$8=="ins"{b++};$8=="del"{c++}END{print "snp="a "\n" "ins="b "\n" "del="c}'
1,812
Posted By protocomm
Extract first String, works on OSX: awk ...
Extract first String, works on OSX:

awk '{print $2}' FS="<String>|</String>" file
1,968
Posted By protocomm
replace: ls -l $(find /sasem/* -type f) >...
replace:
ls -l $(find /sasem/* -type f) > "$monitorf"

by:

find /sasem/* -type f | while read -r file; do ls -l "$file" >> $monitorf;done
2,133
Posted By protocomm
try this: awk '{for(i=1;i<=NF;i+=6){print...
try this:

awk '{for(i=1;i<=NF;i+=6){print $i,$(i+1),$(i+2),FS,$(i+3),$(i+4),$(i+5)}}' FS="\n" RS=""
5,692
Posted By protocomm
convert your pdf file to text with the command: ...
convert your pdf file to text with the command:

pdftotext

and parse the title and author's name
2,732
Posted By protocomm
test this: echo $values | tr ' ' '\n'
test this:

echo $values | tr ' ' '\n'
3,314
Posted By protocomm
it's do your job ? echo '...
it's do your job ?

echo ' :20:9400115251184711 :61:1509090908DR991,43NCOL09:04:0032 :86:/OCMT/EUR991,43/PT/FT/BN/ORANGE ESPAGNE S.A.U' | sed 's/[[:space:]]:[0-9][0-9]:/\'$'\n&/g'
1,195
Posted By protocomm
If i understand that you want: i=0;while :...
If i understand that you want:

i=0;while : ;do sleep 1;i=$((i+1));date;if [ $i == 120 ];then break;fi;done
13,199
Posted By protocomm
Hi !!
[QUOTE=anbu23;302952135]$ awk ' /BEGIN/,/END/ { str = str ? str "\n" $0 : $0 } /END/ { if( str ~ /Amit/ ) { print str }; str = "" } ' file
******** BEGIN *****
My name is Amit.
I am learning...
4,569
Posted By protocomm
with command find find pathOfYourFolder ...
with command find

find pathOfYourFolder -name "*OP*"
3,781
Posted By protocomm
I don't know if i have completely understand your...
I don't know if i have completely understand your question but i give you my answer:

min=$(cat file | awk 'BEGIN {min =1000000} {if ($0<min) min=$0} END {print min}');awk -v var="$min" '{if...
2,062
Posted By protocomm
try this: if [ "$(ls file | awk -F_...
try this:

if [ "$(ls file | awk -F_ '$5~/[0-9]{8}/')" != "" ];then echo GoodFile;fi
3,988
Posted By protocomm
test this: find . -type f -name "*.doc" |...
test this:

find . -type f -name "*.doc" | while read -r i;do mv "$i" "$(echo "$i" | tr -d '\227')";done
798
Posted By protocomm
try: echo $make_target_dir_name | sed -n...
try:

echo $make_target_dir_name | sed -n s'/\(.*Db-[0-9]\.[0-9][0-9]\.[0-9]\/\)\(.*\)/\2/p;'
798
Posted By protocomm
why sed ? echo $make_target_dir_name | awk...
why sed ?

echo $make_target_dir_name | awk -F/ '{print $NF}'
give
SQL
3,988
Posted By protocomm
try this: for i in *;do mv "$i" "$(echo...
try this:

for i in *;do mv "$i" "$(echo "$i" | tr -d '\227')";done
3,988
Posted By protocomm
Try this: mv file $(ls file | tr -d '\227')
Try this:

mv file $(ls file | tr -d '\227')
3,750
Posted By protocomm
first...
first field/secondhome/thirthintannf/fourthfoto3/and fifth2015_0313_090651_219.JPG,

-F"[/,]" has 2 field separator

If i have the field separator / the fifth print 2015_0313_090651_219.JPG,and...
3,750
Posted By protocomm
awk -F "[/,]" 'NR>1 {print $5}' file -F...
awk -F "[/,]" 'NR>1 {print $5}' file

-F "[/,]"
Set Field Input Separator to /,

NR>1 skip the first line

{print $5} print the fifth field
3,750
Posted By protocomm
awk -F "[/,]" 'NR>1 {print $5}' file
awk -F "[/,]" 'NR>1 {print $5}' file
2,433
Posted By protocomm
it's probably because the file is encoding with...
it's probably because the file is encoding with the character latin1 (ISO 8859-1) in the world of windows and not in utf8.
Try to convert...
6,888
Posted By protocomm
For the second part of your code, test this... ...
For the second part of your code, test this...

tell application "Safari"
activate

--the source code of current Tab
set sourceOfTab to source of front document

set urlOfTab to...
1,164
Posted By protocomm
try ls -l folder | awk '$5<20340713'
try

ls -l folder | awk '$5<20340713'
2,296
Posted By protocomm
To Chirel No it's a space, it's me i put...
To Chirel

No it's a space, it's me i put this space, and impossible to get it after, in fact i rename it and it's good.
It's a server video diffusion (K2 of grass valley), i have a gui for...
Showing results 1 to 25 of 307

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