Search Results

Search: Posts Made By: jdhahbi
1,008
Posted By vgersh99
if you're searching for the ''literal" strings...
if you're searching for the ''literal" strings (vs patterns), look into 'fgrep'.
16,447
Posted By anbu23
How will it work, if you change your input. ...
How will it work, if you change your input.

Try this
sed "/^[^ ]*\*/d" file
31,961
Posted By Ygor
Try...awk 'BEGIN{print "name=test color=\"255,0,0...
Try...awk 'BEGIN{print "name=test color=\"255,0,0 0,0,255\""}{print}' infile
1,562
Posted By bartus11
awk 'NR>3{print $2" "$3}' file
awk 'NR>3{print $2" "$3}' file
3,865
Posted By jim mcnamara
awk ' /^>/ { file=substr($0,2)} { print $0 >...
awk ' /^>/ { file=substr($0,2)} { print $0 > file} ' inputfile
24,891
Posted By Scott
Hi. From the OSX man page for SED: ...
Hi.

From the OSX man page for SED:


-i extension
Edit files in-place, saving backups with the specified extension.


So, for example:

sed -i.bak 's/ /_/g' somefile

(I guess that...
Showing results 1 to 6 of 6

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