« first day (733 days earlier)      last day (1012 days later) » 

5:50 AM
1
Q: awk print specific column with specific output field separator

Porcupinecat A.tsv 1,a,d 2,b,e 3,c,f $ awk -F ',' -v OFS="," '{print $2, $3}' A.tsv a,d b,e c,f I expected the following 4 commands to give the same results as above: $ awk 'FS=","; OFS=","; {print $2, $3}' A.tsv 1,a,d 1,a,d , 2,b,e 2,b,e b,e 3,c,f 3,c,f c,f $ awk -F ',' 'OFS=","; {print $2, $3}' A...

 
 
2 hours later…
7:27 AM
1
Q: CentOS 7 - how to login as root

some userI have a CentOS 7 image on my local machine that I want to allow login as root. This is going to be a system dedicated for testing. I initially tried using rescue mode and added kernel param "systemd.unit=emergency.target" but it says root login is locked. So I start /bin/bash instead. I see root...

 
 
1 hour later…
8:41 AM
1
Q: Meaning of the SFTP command

MoonCould anyone help explain the parameters in the following SFTP command please? sftp://user:xx@test.com:22 This was used as part of the LFTP command of the source. What is the xx after the first :? Is that the directory (couldn't find any such directory on the sever of this user)?

 
 
5 hours later…
1:13 PM
2
Q: Mapfile not removing trailing newline

Porcupine Sample Data: Tab separated tsv file a.1.58 fadado/CSV https://github.com/fadado/CSV a.1.63 jehiah/json2csv https://github.com/jehiah/json2csv a.1.80 stedolan/jq https://github.com/stedolan/jq/issues/370 Following selects one record using fzf, and stores 2nd and 3rd column to an array Link...

 
 
4 hours later…
5:26 PM
1
Q: GRUB update and multi linux

VincentRGI've got Windows 10 alongside with Debian, and recently I also installed Linux Mint. GRUB was installed in the first place by Debian. From what I've read, only one distro on a system "controls" GRUB settings (in my case Debian). From what I've tested it seems right: under Mint when I issue grub-...

 
5:51 PM
2
Q: When are grouped parentheses for multiple options necessary?

PietruI am using the find and grep commands. Getting quite confused about when multiple options are joined by "or" with the -o flag and the use of grouped parentheses, and when grouped parentheses are not used. When using find, grouped parentheses seem necessary find $fdir ( -name *.texi -o -name *.org...

 
 
2 hours later…
7:58 PM
1
Q: How to introduce support for command line options in a script that is written to use positional arguments?

FerencI have a script that is currently used with positional arguments, like this: ./script.sh fname lname address I want to also support ordinary command line options when I call this script, so that I may skip arguments I don't want to give: ./script.sh -f fname -a address fname is the only mandato...

 
 
3 hours later…
11:20 PM
2
Q: How to match two patterns using OR?

KBwonderI need to use grep and awk in order to match two types of patterns but I cannot figure out the syntax. My file has values such as: sample1,gicode1,123,4541,221,3661,Sodalis sp.1 sample2,gicode1,123,0322,12,112342,Sodalis sp.2 sample3,gicode1,112,4541,00,2342,Candidatus sp. sample4,gicode1,2341,45...

 

« first day (733 days earlier)      last day (1012 days later) »