Reputation
19,108
Top tag
Next privilege 20,000 Rep.
Access 'trusted user' tools
Badges
21 55
Impact
~1.3m people reached

5h
comment Prefetch on ARMv7 in Raspberry Pi
I'm voting to close this question as off-topic because this question is off-topic here, it belongs on codereview.stackexchange.com
5h
comment Print multiple fields based on partial substring match inside one of the fields
minor variation of @terdon's answer, preserves the original input format exactly: perl -F, -lane '@k = split(/["|]/, $F[6]); @l = grep{/^10\./} @k; print join(",", $F[0], "\"" . join("|",@l) . "\"")' wmin.txt
21h
comment Safe way to install .sh script in /usr/local/bin?
@terdon, yes i know. i was commenting on the blanket nature of your "there's nothing wrong..." statement. i.e. that there are circumstances where giving sudo access to vim is very wrong.
21h
comment Is there a Unix equivalent of the Windows environment variable PATHEXT
so windows doesn't complete command names that are in the path?
21h
comment the following error occurred while installing x11 in aix. would you please guide me for solution
and don't post images when text will do.
21h
comment Is there a Unix equivalent of the Windows environment variable PATHEXT
@jcast filename "extensions" like ".sh", ".pl" on unix scripts don't indicate that they were written by a clueless amateur, any more than a text file ending in .txt indicates amateurish text. or that a file ending in .snob was written by a snob. The filename extensions have no special meaning to a unix system, but they are convenient because they tell a human what kind of script file they are without having to look inside the file. This is often useful. It's primitive metadata for humans.
22h
comment How to process only certain columns and ignore header and footer in delimited text file using awk?
there, fixed. and -1 because i had to replace the images with text myself. ordinarily, i wouldn't have done that but it was only a few lines.
22h
comment How to process only certain columns and ignore header and footer in delimited text file using awk?
@jasonwryan i'd like to agree, but i don't think that's actually grounds for closure. even if it is extremely annoying.
22h
comment How to process only certain columns and ignore header and footer in delimited text file using awk?
BTW, you really should edit your question and replace those images with text. Never post images in a question when plain text will do. Text is searchable, copy-pastable, editable, and readable on any screen size. Images are not. If you want good answers, make your question as convenient and useful as possible for readers.
23h
comment How to install Octave without GUI in Ubuntu 16.04?
submit a bug report asking for an octave-cli package without Qt/Java/etc.
1d
comment How do I sort on the first column every 4 lines in a file with a key in the second column
does each first column have the same number of key lines?
1d
comment sed - Use file1 to find replacements contained in file2 for lines from file3
It was probably in find.csv. When i created that file on my system I had to strip trailing spaces from each line. I assumed it was just a copy-and-paste artifact at the time, but it looks like it was in your original file.
1d
comment sed - Use file1 to find replacements contained in file2 for lines from file3
If your version of sed doesn't support the -i option, that's no big deal. In fact, you shouldn't use -i if you're redirecting output to out.csv. -i does an in-place edit (i.e. write the output to a temp file, and then mv the temp file over the original file).
1d
comment Getting rid of a line with a perfect match (not substring) using sed
sed -i '/^[[:blank:]]*name[[:blank:]]*$/d'. That will delete lines containing only name and any number (zero-or-more) of leading or trailing spaces or tabs.
1d
comment Safe way to install .sh script in /usr/local/bin?
There's nothing wrong with running vim with sudo - that's true only if the user is supposed to have sudo access to run any command as root. If they're not supposed to have that then giving them sudo access to vim (or any other program that can execute other programs, or edit files like /etc/sudoers) will give it to them.
1d
comment Safe way to install .sh script in /usr/local/bin?
if you don't like the .sh ending then why did you create the script file with it? just create /usr/local/bin/pdf2eps without the .sh ending.
1d
comment The at command suddenly/randomly executes jobs
If you write your mail1.txt so that it has a header block and a body block separated by a blank line, you can use mail's -t option to get Subject:, From:, To:, etc from the headers in the message, and you wouldn't have to use head or tail to extract the subject and the body from the file. See man mail and search for -t.
2d
comment Delete Nth line from each line matching a pattern
presumably, that's why he used FNR rather than NR.
2d
comment Millisecond time in a shell script
the question is tagged /linux. your anti-GNU prejudice is not applicable here.
2d
comment How do I check if a variable exists in bash?
declare -p / typeset -p works in bash now too.