Search Results

Search: Posts Made By: pblumenthal
9,077
Posted By pblumenthal
-v OFS='\t' works great (not FS='\t') but...
-v OFS='\t' works great (not FS='\t')

but if(!match(/noatime/, $4)) doesn't seem to work. I get:
proc /proc proc defaults,noatime,noatime 0 0
9,077
Posted By pblumenthal
This really good. 3 questions: 1) why does...
This really good. 3 questions:
1) why does this seems to mess up white space? I think my original fstab is tab delimted, hte result is space delimited
2) what does the 1 do at the end of the awk...
9,077
Posted By pblumenthal
Add option to fstab
I need as script (awk/sed?) to add noatime option to fstab.
It should append ,noatime to whatever is in column 4 if noatime isn't already there, leaving comments alone.

input:
# /etc/fstab
#...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 05:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy