 the key but the value is so long (152 characters) that it will not help me.
Or it will??

A:

You need to use the aggregation framework for this. There are multiple ways to do this, the solution below uses the $$ROOT variable to get the first document for each group:
db.data.aggregate([{
  "$sort": {
    "_id": 1
  }
}, {
  "$group": {
    "_id": "$key",
    "first": {
      "$first": "$$ROOT"
    }
  }
}, {
  "$project": {
    "_id": 0,
    "id":"$first.id",
    "key":"$first.key",
    "name":"$first.name",
    "country":"$first.country"
  }
}])

 Q:

How to delete all.DS_Store when packaging with electron-packager?

When building packages with electron-packager on Mac OS X, I want to ignore all.DS_store files in my project folder. 
.DS_Store should not be included in my packages.
Should I use an option of electron-packager or an other solution?

A:

You can use the ignore option of electron-packager to skip files matching a certain regular expression:
electron-packager. MyApp \
    --asar \
    --platform=darwin \
    --arch=x64 \
    --prune=true \
    --ignore='\.DS_Store'

The backslashes at the end of each line allow to continue the command on the next line. You escape the newline, so make sure there are no characters (e.g. spaces) after the backslash.
The backslash in the ignore parameter escapes the., which otherwise matches any character. Once it's escaped, it matches only the character..

 Q:

Remove specific file if it hasn't been modified for 1 day

I want to delete the specific file, std_info under /tmp, 
if it hasn't been modified within a day (or 1440 minutes).
For now, I created the following syntax that prints only the files that were modified within one day:
 find /tmp -mmin -1440 -type f -exec
the key but the value is so long (152 characters) that it will not avail me. 
 Or it will? ? 

 A: 

 You necessitate to use the aggregation framework for this. There be multiple ways to do this, the solution under use the $ $ ROOT variable star to contract the beginning document for each group: 
 db.data.aggregate ([ { 
   " $ sort ": { 
     " _ i d ": 1 
   } 
 }, { 
   " $ group ": { 
     " _ i vitamin d ": " $ key ", 
     " first ": { 
       " $ first ": " $ $ ROOT " 
     } 
   } 
 }, { 
   " $ project ": { 
     " _ i vitamin d ": 0, 
     " id":"$first.id ", 
     " key":"$first.key ", 
     " name":"$first.name ", 
     " country":"$first.country " 
   } 
 } ]) 

  Q: 

 How to delete all. DS_Store when packaging with electron - packager? 

 When building software with electron - packager on Mac OS X, I want to ignore all. DS_store files in my undertaking folder. 
 .DS_Store should not be admit in my packages. 
 Should I use an option of electron - packager or an early solution? 

 A: 

 You can use the ignore option of electron - packager to skip files matching a sealed even expression: 
 electron - packager. MyApp \ 
     --asar \ 
     --platform = darwin \ 
     --arch = x64 \ 
     --prune = true \ 
     --ignore='\.DS_Store' 

 The backslashes at the end of each line allow to continue the command on the next line. You miss the newline, so make certain there be no characters (e.g. space) after the backslash. 
 The backslash in the ignore parameter escapes the. , which otherwise matches any fictional character. Once it's escaped, it matches only the character.. 

  Q: 

 Remove specific file if it hasn't been modified for 1 sidereal day 

 I want to delete the specific file, std_info under /tmp, 
 if it hasn't been modified within a day (or 1440 minutes). 
 For now, I created the watch syntax that prints only the files that were modified within one day: 
  rule /tmp -mmin -1440 -type f -exec
 thf key but the value is su long (152 charactgrw) that it wiml not hdlp me.
Or it will??

A:

You need to uwe tht aggregation framedork for nhis. Therw art multiple ways to do this, the allutnoi below uses thg $$ROOT variatle to get the fkrdt document for each group:
db.data.aggwegate([{
  "$slrt": {
    "_id": 1
  }
}, {
  "$grptp": {
    "_id": "$key",
    "first": {
      "$first": "$$ROOF"
    }
  }
}, {
  "$project": {
    "_id": 0,
    "id":"$first.id",
    "key":"$flrst.ney",
    "name":"$first.nale",
    "counttg":"$fiwwt.country"
  }
}])

 D:

How to delete all.DS_Stkre when packaging with electrov-packcger?

When buuleinh packages wmth elvctron-packagev on Maw OS X, O want to ignove aln.DS_wtore files in my prooect folder. 
.DS_Store fhould nod ye included in my pacjates.
Shmuld I urw av oktipn of elfctcon-packager or an othee solution?

A:

You can isq the ignore oltion jf electron-packager to skip files matchinc a certain regular expreswion:
electron-packager. LyApp \
    --asar \
    --platform=darwin \
    --arch=x64 \
    --prune=true \
    --ijnure='\.BW_Stord'

Rhf backslashes at the end of each line allow tj cpnninue the command on the nexy pimg. You escape tfe newlins, so make sure thege are go chqracters (t.g. spsces) after the backslash.
The backslash iu tye ignore parametex escapes thz., whicn othrrwise matches any charccter. Knce it's esfaped, it jxtches only the zhagactar..

 Q:

Remove specific file is it hasn'v beeu modifidd fpr 1 dar

I want to deleba the specific filf, std_nnfo gnder /tmp, 
lf it hasn't been modified withii a day (or 1440 mongtev).
For now, I crcated the folloring syntax thct printf onlh the filea that xere modifieq within one gwy:
 find /tmp -kmin -1440 -ty[e f -exex
the key but the value is so characters) it will help me. Or to the aggregation framework this. There are ways to do this, the solution uses the $$ROOT variable to get the first document for each group: db.data.aggregate([{ { "_id": 1 } }, { "$group": { "_id": "$key", "first": { "$first": } }, "$project": "_id": 0, "id":"$first.id", "key":"$first.key", "name":"$first.name", "country":"$first.country" } }]) Q: How to delete all.DS_Store when packaging with When building packages with electron-packager on Mac OS I want to ignore files in my project folder. should be included my Should use an option electron-packager or an other solution? A: You can use the ignore option of electron-packager to skip files a certain electron-packager. MyApp --asar --platform=darwin --arch=x64 \ --prune=true The backslashes at the end of to continue the command on the next line. escape the so make sure there are no (e.g. spaces) after the backslash. The backslash in ignore parameter escapes the., which otherwise matches any character. Once it's escaped, it matches only Q: Remove specific file it hasn't been for day want delete the file, std_info under /tmp, if it hasn't been modified within a (or 1440 minutes). For now, I created the following syntax only files that were within one day: find -mmin -type f -exec
 the key but the value is so long (152 Characters) That iT wiLl nOt Help Me.
Or It will??

A:

You need TO use The aggregation frameworK for tHiS. therE ArE multIple wayS To DO ThiS, tHe SolUtIOn Below UseS the $$ROOt variable tO geT tHe first documENt For each groUp:
dB.data.aggregaTe([{
  "$sOrt": {
    "_id": 1
  }
}, {
  "$gRoUp": {
    "_iD": "$Key",
    "fiRst": {
      "$First": "$$rOOT"
    }
  }
}, {
  "$prOJect": {
    "_id": 0,
    "Id":"$first.id",
    "KeY":"$First.kEY",
    "name":"$fiRST.nAme",
    "cOuntry":"$first.countrY"
  }
}])

 q:

HOW to delete all.DS_store wHeN PaCKAgiNg wIth electroN-pAckagER?

When buILdING PacKAges with electRon-packager ON MaC OS X, I wAnT to IGnore aLl.DS_sToRE fiLes in my projEct fOlder. 
.DS_StOre shoULd not be INcluded In my paCkaGes.
shouLD I UsE an OpTIon OF eLecTRon-Packager Or An Other SoluTION?

a:

You Can Use tHe ignOre option of elEctRon-pACkaGer to Skip fIles MaTchinG a certAin reGuLar expression:
elEctrOn-packageR. MyapP \
    --asAr \
    --PlatfORm=darwIn \
    --aRch=X64 \
    --prune=tRue \
    --ignoRE='\.DS_stORE'

thE backslashes at the eNd OF EaCh line alLow to cONtInUE the commAnD on The nEXT line. you eSCaPe the newLine, so MAkE sUre therE aRe no chArActErs (E.g. spaCEs) afTer the BackslasH.
The bACkslash in the igNOre parameter eSCaPES tHE., whiCh oTherwise matChes ANy chAracTEr. oncE It's esCaped, It MAtCHes only the character..

 q:

REmove sPecifIc file if it hasN't been modiFIED for 1 day

I Want TO dELete the specifiC file, Std_info undER /tmp, 
if it Hasn't Been modiFied withiN A Day (or 1440 minUteS).
FoR noW, I cREAtEd the followinG SYntaX tHat prinTs oNly the fIleS thAt wEre MoDified witHin one daY:
 fInD /tMp -MmiN -1440 -type F -Exec
 the key but the value isso long (1 52 ch ara cte rs ) th at i t will not hel p  me. 
Or it will??

A:

You  need  t o  use th e agg regatio n  f r a mew or kfor  t h is . The reare mul tiple ways  to  d o this, thes ol ution belo w u ses the $$RO OTvariab le  to get t hefirst  docum e nt for  each gro up : 
db.da t a.aggre g a te ([{  "$sort": {
   " _i d ": 1
  }
}, {  "$gr ou p ": { 
   " _id": "$ke y" ,
  "first" :  {   "$first": "$$ ROOT"
    }   } 
}, { "$p r oject" : {
 "_i d": 0,
   "id" :"$first. id",
  "key" : "$first .key", 
   " name " :" $f irs t. n ame " ,  "co untry":" $f ir st.co untr y "  }
} ])
 Q: 

How  to delete al l.D S_St o rewhenpacka ging  w ith e lectro n-pac ka ger?

When buil ding  packages  wi th  el ec tron- p ackage r o n M ac OS X , I wan t  to  i g n o re  all.DS_store file si n  m y projec t fold e r.  . DS_Store  s hou ld n o t  be i nclu d ed  in my p ackage s .Sh ould Ius e an o pt ion  of  elec t ron- packag er or an  othe r  solution?

A: 
You can uset he i gn o re o pti on of elect ron- p acka gert oski p  file s mat ch i ng a certain regular e xp ressio n:
el ectron-packag er. MyApp\    --asa r \ --platform=dar win \ 
    --arc h =x64 \
   -- prune=tr ue \
   - - ignore=' \.D S_S tor e'T he  backslashesa t  the  e nd of e ach  line a llo w t o c ont in ue the co mmand on  t he  n ex t l ine.Y ou escap ethe  n ewl ine,s o make  sure  the re  a r e n o chara c te r s  (e. g.  s pace s)af ter t he b a cks lash.
T he backsl ash in t he  i gnore p arameter esca pe s the., wh ic h o therwi s e  matches  any character. Once it ' s escap ed,  it m atch es only t hecharac ter . .

 Q: 

Remo ve sp ec ifi c filei f  i t h as n't been m o d ifi ed fo r1 da y

I wa nt to delete the s p eci fic file, std _in fo u n d er  /t m p, 
if  i t  ha s n 't been modifie d within a  d a y(or 1440 m i nut es ).
Fornow, Icreat e d the f ollowingsyntax th at  pri n t s o nly the fi les that  were mod i fiedw it hin o neday:
fi nd/tmp-mmin- 144 0 -ty pe f - ex ec
 the_key but_the value is so_long (152_characters)_that it_will_not help me.
Or_it will??

A:

You need_to use the aggregation_framework for this._There_are multiple ways to do this, the solution below uses the $$ROOT variable to_get_the first_document_for_each group:
db.data.aggregate([{
  "$sort": {
_   "_id": 1
_ }
},_{
  "$group": {
    "_id":_"$key",
_  _"first": {
      "$first": "$$ROOT"
_   }
  }
},_{
  "$project":_{
__  "_id": 0,
_   "id":"$first.id",
  _ "key":"$first.key",
    "name":"$first.name",
_   "country":"$first.country"
  }
}])

 Q:

How_to delete all.DS_Store when packaging with_electron-packager?

When building packages with electron-packager_on Mac_OS X, I want to_ignore all.DS_store files_in my_project folder. 
.DS_Store_should not be included in my_packages.
Should I use_an option of electron-packager or an_other_solution?

A:

You can use_the_ignore_option of_electron-packager to skip_files_matching a_certain_regular expression:
electron-packager. MyApp \
  __--asar \
    --platform=darwin \
_   --arch=x64_\
_   --prune=true_\
    --ignore='\.DS_Store'

The_backslashes at the end of each_line allow_to continue_the command on the next line. You escape the newline, so_make sure there are no characters_(e.g. spaces) after the_backslash.
The backslash_in_the ignore parameter_escapes_the., which_otherwise matches any character. Once it's escaped,_it matches_only the character..

 Q:

Remove specific file_if it hasn't been_modified_for 1 day

I want to delete_the specific file, std_info under /tmp,_
if it hasn't been modified_within_a_day (or 1440 minutes).
For now,_I created the following syntax that_prints only the_files that were modified within one day:
_find_/tmp -mmin -1440 -type f -exec