Search Results

Search: Posts Made By: Mumford
10,842
Posted By Mumford
In-place editing of a file isn't easy, even for...
In-place editing of a file isn't easy, even for perl pros. You should either write to a new file, then replace the old file with the new one when done, or load the entire file into a list (array),...
11,292
Posted By Mumford
Drop boundaries on the regex and replace the .*...
Drop boundaries on the regex and replace the .* with a less greedy \S*:
#!/usr/bin/perl -w

$test = "xx1.p xx2.r \n (xx3.p) ( xx4.p ) \n xx5.r xx.p.pxx \n asdfxx.p \n xxix
iadsf.xx.p \n xx4.p...
23,380
Posted By Mumford
You're seeing this because the find command...
You're seeing this because the find command passes the filenames it finds as a list of words separated by spaces. The problem is some of the files have spaces in the names. If you're on Linux or...
Showing results 1 to 3 of 3

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