Search Results

Search: Posts Made By: jdhahbi
1,006
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,402
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,942
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,557
Posted By bartus11
awk 'NR>3{print $2" "$3}' file
awk 'NR>3{print $2" "$3}' file
3,848
Posted By jim mcnamara
awk ' /^>/ { file=substr($0,2)} { print $0 >...
awk ' /^>/ { file=substr($0,2)} { print $0 > file} ' inputfile
24,869
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:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy