Reputation
7,012
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
13 27
Newest
 Enlightened
Impact
~752k people reached

  • 0 posts edited
  • 1 helpful flag
  • 478 votes cast
Aug
11
comment Behaviour of “|” pipe in linux with “>” output redirection
Agreed, unless OP has a reason for having both the a.txt and b.txt files.
Aug
10
reviewed Approve My ext4 partition is corruption-prone possibly because of suspend
Aug
10
reviewed Approve How do I set up dual monitor wallpaper (Ubuntu/NVIDIA)?
Aug
10
answered Behaviour of “|” pipe in linux with “>” output redirection
Jul
6
awarded  Enlightened
Jul
6
awarded  Nice Answer
Jun
18
revised Correct locking in shell scripts?
improved answer using information from an informative comment.
Jun
18
comment Correct locking in shell scripts?
@ClintPachl : Thanks. Interesting reading. I like the solution of using a directory, then creating temp files in that directory, which gets cleaned up automatically.
May
27
reviewed Approve Where is the Programmer's manpage for the open C Function?
May
26
awarded  Enlightened
May
14
awarded  Good Answer
May
7
awarded  Nice Answer
May
2
answered How can I safely get the version of ksh?
Apr
16
reviewed Reject Converting `for file in` to `find` so that my script can apply recursively
Apr
16
comment Converting `for file in` to `find` so that my script can apply recursively
IFS is a variable that defines what your field separator value is going to be. The default IFS is usually "whitespace". So spaces, tabs, newlines, etc, will all be recognized as "field separators". Since some movies and songs may be named with spaces in them, this script is saying ignore spaces and tables, and use newlines as the separator. This way, instead or "Terminator 2.mp4" being recognized as 2 movies, "Terminator" and "2.mp4", it's seen as 1 movie "Terminator 2.mp4". Since IFS was saved as OIFS, the end of the script sets that back as the default.
Apr
16
reviewed Approve How do I extract parts of a string to variables?
Apr
10
reviewed Approve
Apr
7
awarded  Guru
Mar
8
awarded  Enlightened
Mar
8
awarded  Nice Answer