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

16h
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.
1d
awarded  sed
1d
comment Delete Nth line from each line matching a pattern
presumably, that's why he used FNR rather than NR.
1d
comment Millisecond time in a shell script
the question is tagged /linux. your anti-GNU prejudice is not applicable here.
1d
comment How do I check if a variable exists in bash?
declare -p / typeset -p works in bash now too.
2d
comment Evaluation of find ( -exec )
um, yeah. duh. that makes more sense. also worth making sure that the #! is both at the start of the line, AND is the first line of the file.
2d
comment Evaluation of find ( -exec )
BTW, you might want to try it with this grep command instead: ... -exec grep -E -q '#! *(/usr)?(/local)?/bin/([bd]ash|[zk]sh|t?csh|awk|sed|perl)' ... (note: I removed the pattern that matches /usr/bin/grep because that makes no sense, grep is not a scripting language. Added dash, zsh, ksh, tcsh/csh, sed and perl instead).
2d
comment Is there a Unix equivalent of the Windows environment variable PATHEXT
so, change your habit. get into the habit of always typing the full name, even on windows. 3 extra chars aren't a big deal. IIRC, CMD.EXE has some primitive filename completion anyway.
2d
awarded  Enlightened
2d
awarded  Nice Answer
2d
reviewed Close precise linux video / youtube locks up why?
2d
reviewed Close Script too slow ? Any particular reason?
2d
reviewed Close DRBD - 'node1' not defined in your config (for this host) - Error when setting Primary
2d
reviewed Close How to know the depth of a path?
2d
reviewed Close Describe Linux Project Setup and File Purposes
2d
reviewed Close Understand the meaning of `$_`
2d
reviewed Close Debian apt-get install asks for the DVD Binary
2d
reviewed Leave Closed Unable to run Virtualbox properly on Kali Linux Rolling because of KERN_DIR error
2d
reviewed Close Best installation instructions for Linux Mint for total Linux newbie?
2d
reviewed Approve GRUB confuses kernels/initramfs of Ubuntu and Arch Linux installation