| bio | website | |
|---|---|---|
| location | United States | |
| age | ||
| visits | member for | 1 year, 9 months |
| seen | 2 days ago | |
| stats | profile views | 481 |
Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.
|
Nov 23 |
comment |
Is there a shorter way to change username, home directory and move files at the same time What sort of shell are you using that allows positional parameters ( $1, $2, ...) in aliases? |
|
Nov 23 |
comment |
Suggested setup for an ultra-lightweight text-based programming environment in linux This question may be more suitable as a community wiki. |
|
Nov 23 |
comment |
Why do unix-heads say “minus”? @MichaelKjörling Oh I see - I think you misunderstood. I was just making observations about "dash" and "minus" - nowhere do I suggest which term people should be using. There is only one character used for command options, so there's no real need to be pedantically exact. The only possible confusion would be from someone completely new to the Unix command-line argument convention. Otherwise if you said "rm dash/hyphen/minus f" I'm sure most people would understand you. I use "dash" myself because it has the fewest syllables. |
|
Nov 23 |
comment |
Why do unix-heads say “minus”? @MichaelKjörling What? The question is talking about the - character used in Unix command options, which is not U+2212. If you tried using U+2212 in a command option instead of - it probably will not work. The expected character is U+002D: hyphen-minus. If you go to the POSIX spec on Utility Conventions and inspect the - character used there, you will find that it is U+002D hyphen-minus, not U+2212. |
|
Nov 19 |
comment |
Remove line containing certain string and the following line +1 for being both concise and general. |
|
Nov 19 |
comment |
Are there 2 ways to set awk vars via command line? Actually, as explained in Mat`s answer, -v and argument assignment are different in when they take effect. Also -v is in POSIX and should be present in all but the most ancient of awk implementations. Using ./ or making sure the file name contains a non-identifier character is probably the most reliable way to disambiguate. |
|
Nov 19 |
comment |
Remove line containing certain string and the following line To replicate grep -A 100%, you also need to handle any number of consecutive bar lines correctly (by removing the whole block and 1 line after). |
|
Nov 19 |
comment |
How to avoid cp -r ~/some/folder/ . copying all files to the current folder's top level? That behavior for the first example sounds strange and wrong and I am unable to reproduce it with GNU coreutils cp. What version / OS do you have? |
|
Nov 19 |
comment |
Why is there no critical section in the pipe? @user1823811 You can edit your own posts to fix spelling mistakes. |
|
Nov 18 |
comment |
How to read '\n' into variable with Bash's built-in command? Quote the variable; there's no need to quote y. |
|
Nov 17 |
comment |
Accessing another user's files @user1743613 No, there is no such thing. Only root can add users to groups. |
|
Nov 16 |
comment |
Accessing another user's files You could easily create a group called guest but it probably wouldn't have any special significance - it's just a normal group. How is this relevant to the question? |
|
Nov 16 |
comment |
Concatenate multiple files under subdirectories @Jana Don't forget to mark an answer (click on the checkmark) as accepted if your question has been satisfactorily answered. |
|
Nov 16 |
comment |
How to make a permanent variable Reverted edit: in this context label doesn't mean anything |
|
Nov 16 |
comment |
How to make a permanent variable Regarding the new edit: see my first comment. Also, don't misuse variables: variables are not for storing full commands. Use a function or script instead. |
|
Nov 16 |
comment |
put rows of numbers into a column with shell script Just curious, what's the point of the grep .? |
|
Nov 16 |
comment |
put rows of numbers into a column with shell script Are you actually looking for numbers or to limit the output to consecutive digits (i.e. positive integers)? For a more specific example, do you want 123.456 to show up as 1 decimal number or 2 integers or not at all? |
|
Nov 16 |
comment |
How to make a permanent variable The general rule is if it's a variable that is only useful to the shell, don't bother exporting it and just put it in .bashrc. If it's an environment variable put it in .profile, and you'll want to export it too. That should work. There's no way to know why it doesn't for you unless you provide more info (do you do anything weird with your rc files, etc.) |
|
Nov 15 |
comment |
Replace all but a set of characters in a file with newline Your sample output is a bit inconsistent. Why are 32 and 5.500.5.5 both on line 3? Why is there no 3 (from 3de) between the lines for 5.5.5. and .? Why are 3.3.3 and .3. both on the last line? |
|
Nov 15 |
comment |
VMwarePlayer on debian. Missing kernel modules Sounds like you need to install linux-header-2.6.32.5-amd64. |