Search Results

Search: Posts Made By: Unbeliever
103,685
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...
4,481
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...
Showing results 1 to 2 of 2

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