Find answers to your questions about Unix & Linux or help others by answering their Unix & Linux questions.
Sorry for so simple question, but I could not find a solution myself. I run:$ echo {1..4}1 2 3 4And that's OK to me. But if I:$ echo...
Asked on 10/31/2021 by Luis Santos
2 answerI am using a bash command, gps location, that returns a date, time and location information.[john@hostname :~/develp] $ gps locationLocation: {"date": "16/07/20", "time": "19:01:22", "latitude": "34.321", "longitude": "133.453", "altitude":...
Asked on 10/31/2021 by Beaker
7 answerAs GNU parallel's manual shows, you can use a zenity progress bar with parallel:seq 1000 | parallel -j30 --bar '(echo {};sleep 0.1)' ...
Asked on 10/31/2021 by ChameleonScales
2 answerAfter executing the command declare -i a=5, the command a+=2 succeeds, but the command a-=2 fails. Can someone explain this strange behavior of bash?...
Asked on 10/31/2021 by tmpbin
4 answerI manage software on a bunch of RHEL 6.10 VMs, typically either as a service account or root using sudo -i. Periodically, my shell starts dropping every other character. For...
Asked on 10/31/2021 by Michael Davis
3 answerRestricting "globbing" grammar to, specifically, suffix-globbing, * characters only, suppose I have:// foo.txtfoo.*biz// bar.txtbarfoo.barAnd I would like to write:diff <(sort -u foo) <(sort -u bar)# alternativelycomm -3 <(sort...
Asked on 10/31/2021
1 answerI'm trying to use eval command to eval a comment -- I'm not sure if this is the right way to do it. Example: i=?? (What I want here is...
Asked on 10/31/2021 by Raywando
1 answerMy server runs out of memory even though there is swap available. Why? I can reproduce it this way:eat_20GB_RAM() { perl -e '$a="c"x10000000000;print "OKn";sleep 10000';}export -f eat_20GB_RAMparallel...
Asked on 10/31/2021
1 answerI created new directory called dir1 Then I use touch command to add apple banana carrot date egg fish grape ham After that I created file Wildcards.sh (incidentally I...
Asked on 10/31/2021 by brocharvey
4 answerI have the following text:somegarbageSTARTfirstgroupENDsomeendgarbagesomeohtergarbageSTARTsecondgroupENDsomeotherendgarbage...I would like to extract firstgroup using sed. I tried sed -nr 's/.*START(.*)END.*/1/p', but it doesn't work, it extracts all matches not only the first...
Asked on 10/31/2021
2 answerGet help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP