Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
3
Newest
 Supporter
Impact
~224 people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
Jan
28
comment can we print the last word of each line in linux using sed command?
Here is a shorter expression: sed -r 's/.* ([^ ]+)/\1/g' if extended regular expressions are allowed, which is usually the case.
Jan
28
answered can we print the last word of each line in linux using sed command?
Jan
28
answered Using head and tail to grab different sets of lines and saving into same file
Nov
20
answered No EOF, when a program reads its own executable file on cifs mount
Nov
7
answered How to find different files in UNIX based on . extension?
Nov
7
comment How to find different files in UNIX based on . extension?
Well, one can replace sort and wc with rev | cut -d. -f1 | rev | uniq -c or even use finds exec option to directly execute awk -F"." '{print $NF}' and then pipe results to uniq -c.
Jan
24
answered Sed find/delete for a string with multiple special characters recursively
Jan
24
awarded  Supporter
Jan
24
awarded  Editor
Jan
24
revised Grep lines but let the first line through
Only grep for C:/Cygwin in the beginning of a line
Jan
24
comment Grep lines but let the first line through
The mount command uses /etc/mtab, which is updated dynamically, and while I am not sure where df gets its data from, I suspect that on Linux it reads /proc/mounts. Either way I don't understand how fstab is relevant and could not reproduce the problem with UUID-mounted disks. Can you elaborate on it?
Dec
19
awarded  Teacher
Dec
19
answered Grep lines but let the first line through