Search Results

Search: Posts Made By: PointyWombat
1,252
Posted By PointyWombat
Parse out specific lines
Hello,

For the life of me, I can't figure out how to extract only certain lines of a file. For example, the file contains:


project.max-sem-ids
privileged 1.02K - deny ...
19,822
Posted By PointyWombat
Thanks Franklin52, that didn't work, but it did...
Thanks Franklin52, that didn't work, but it did get me in the right direction. I'm using:

awk '$6 ~ /...s./' file

which seems to do what I need.

Thanks.

PW
19,822
Posted By PointyWombat
AWK Print Line If Specific Character Is Matched
Hello,

I have a file as such:

FFFFFFF6C000000 225280 225240 - - rwxs- [ shmid=0x7000181 ]
FFFFFFFF79C00000 3240 3240 - - rwxs- [...
1,237
Posted By PointyWombat
Thanks vgersh99. That got me off and running.
Thanks vgersh99. That got me off and running.
1,237
Posted By PointyWombat
Swapping IP Addresses In A File With Those From Another File
Hello,
I'm looking for a way to change the IP addresses in a large host file with those of matching hostnames in another file.

For example, I have a file with

file1 contains lines like:...
Showing results 1 to 5 of 5

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