Search Results

Search: Posts Made By: Unbeliever
4,429
Posted By Unbeliever
You can check to see if any file has a particular...
You can check to see if any file has a particular file open using the lsof command.

lsof filename

produces no output if no process has that file open. If you're running on Solaris then you can...
103,423
Posted By Unbeliever
perl -e 'while (<>) { if (! /\|$/ ) { chomp; }...
perl -e 'while (<>) { if (! /\|$/ ) { chomp; } print ;}' input.dat > output.dat

should work assuming the correct end of line is always preceeded with a '|' character.

If you have trailing...
Showing results 1 to 2 of 2

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