Reputation
670
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
6 16
Impact
~14k people reached

  • 0 posts edited
  • 1 helpful flag
  • 47 votes cast
Feb
1
comment How large is the img that dd creates?
following up on @MichaelHomer's comment, you probably wanted dd if=/dev/sdb2 of=/root/HDD.img ?
Jan
20
answered How to log into a single SSH host without passphrase?
Jan
11
answered move middle part of filename to front
Dec
25
comment rsync exclude directory not working, when also scanning for only *.php files
rsync is a tool designed to backup things, so I don't think it's necessary to tell it --include '*/'. I've tested the command here and seemed to work just fine. maybe you can just copy the command from my reply and see if it makes a difference? besides reordering the arguments, I also made some minor changes(quotes, * at the end of the path etc. )
Dec
25
answered rsync exclude directory not working, when also scanning for only *.php files
Dec
16
awarded  Notable Question
Nov
22
awarded  Yearling
Oct
9
comment uniq showing duplicate lines
@cas you are right. I'm curious why grep home american.txt|sort|uniq -u works?
Oct
9
revised uniq showing duplicate lines
added 7 characters in body
Oct
9
comment uniq showing duplicate lines
I added 2 additional points. I hope that would help somebody.
Oct
9
revised uniq showing duplicate lines
added 173 characters in body
Oct
9
comment uniq showing duplicate lines
@Anonymous6 I would appreciate if you un-accept the answer.
Oct
9
comment uniq showing duplicate lines
@cas I'm so so sorry. I was thinking straight.
Oct
9
answered uniq showing duplicate lines
Oct
9
comment uniq showing duplicate lines
It can be different numbers of white spaces at the end of the line.
Oct
7
answered How to check all desired files have been downloaded in shell script
Oct
7
comment how to run a command in many files by running the command only one time?
In that case, just alter the command a bit, like this: for((i=1;i<32;i++));do cat chr$i.txt | sed 's/.\{5\}/& /g' >> all-in-one.txt; done
Oct
7
comment how to run a command in many files by running the command only one time?
do you mean join them so that one follows another? or each of them in a separate column?
Oct
7
answered how to run a command in many files by running the command only one time?
Oct
6
awarded  Citizen Patrol