Reputation
992
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
7 9
Impact
~100k people reached

  • 0 posts edited
  • 0 helpful flags
  • 20 votes cast
Nov
10
awarded  Popular Question
Oct
23
comment How to recover a shell after a disconnection
@Dojo When the connection is terminated, the tmux instance will be stopped, but the tmux session (and the shells it manages) will stay up.
Sep
4
awarded  Yearling
Aug
13
awarded  Guru
Oct
31
awarded  Nice Answer
Jul
24
awarded  Yearling
Mar
19
awarded  Good Answer
Jan
8
comment Truncating strings after a word in unix
As stated, a perfectly valid solution is: echo Albert Einstein was born in Ulm, in the Kingdom. How exactly to you want this transformation? Do you want a grammar analysis (difficult) or do you just want the first 3 words after punctuation, or do you want the first 9 words, or ...?
Jun
29
awarded  Critic
Feb
7
awarded  Yearling
Dec
7
comment unix command to print till 3rd occurence of “/” in each line
If your input is representative, it would probably be better to instead print everything up to the first ?, and awk '{print $1}' FS=? works nicely.
Oct
6
comment Find files which are created a certain time after or before a particular file was created
No common file system records the creation time of a file. You can use the last time a file was modified, the last time it was accessed, and the last time its meta-data was modified. There is no way to know when a file was created (unless you are using an exotic file system.)
Sep
26
comment The most universal scripting language for Linux is?
Certainly bash can be installed and run on (nearly) any Linux box, but many debian users will install only dash and prefer not to install bash.
May
31
comment bash using a file name as input
@choroba My mistake, I thought the solution had ${first_u_file#U} and did not notice the space after the U, which removes the space I was concerned about.
May
31
comment bash using a file name as input
You need to be careful: this solution leaves an extra blank at the beginning of first_u_file, which may be an issue depending on how it is used.
May
31
answered bash using a file name as input
Apr
7
comment Renaming a bunch of files but keeping the number part
There's never a need for quotes around $(). The operator itself serves as a quoting mechanism.
Apr
7
awarded  Commentator
Apr
7
comment Renaming a bunch of files but keeping the number part
@Digital Robot -- try it with double quotes (edited)
Apr
7
revised Renaming a bunch of files but keeping the number part
Add quotes