• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

f all

expat

Godlike
Joined
Jul 6, 2005
Messages
8,356
Likes received
182
Thanks received
34
Location
Brutopia
Have a text file, want a copy containing all and only those lines containing, say, character [.

in unix, grep "\[" file.txt > new.txt
on MF, x all;f all [;del all x

How would you do it in Windows?
 
Install perl and write a regex?
 
Download a grep for Dos/windows?
They do exist :D
Otherwise use Find & output to a file if the windows is advanced enough
Works on my xp pc - just tested it. You get a header line - just strip it off

Find "[" filename.txt > fileoutput
 

Advertisers

Back
Top