Search Results

Search: Posts Made By: H2OBoodle
1,333
Posted By H2OBoodle
I usually just use ":r b.txt" while editing...
I usually just use ":r b.txt" while editing a.txt.
15,719
Posted By H2OBoodle
This is the point you go to the man page for awk...
This is the point you go to the man page for awk and look at how RS and ORS are used.
13,476
Posted By H2OBoodle
I'm not sure if this will work for you, but check...
I'm not sure if this will work for you, but check out the Firebug addon. The webpage says:
"You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page..." (emphasis mine.) ...
4,657
Posted By H2OBoodle
Take a look at the rsync man page. Maybe you...
Take a look at the rsync man page. Maybe you could simplify your life and use the following:
--files-from=FILE read list of source-file names from FILE

Just an idea. Not sure if it's...
1,512
Posted By H2OBoodle
What have you tried so far?
What have you tried so far?
16,202
Posted By H2OBoodle
If you are building the first file with the names...
If you are building the first file with the names in it just so you can extract the filenames, then you could skip that step with this:

me@mine:~$ find ./foo -type f -exec basename {} \;

# This...
Forum: Programming 02-14-2008
27,060
Posted By H2OBoodle
Here's an example of dumping the symbols from an...
Here's an example of dumping the symbols from an object file (hello world in foo.c -> foo.o):

me@mine:~$ objdump -t foo.o

foo.o: file format elf32-i386

SYMBOL TABLE:
00000000 l df...
5,464
Posted By H2OBoodle
Please indicate how you're defining...
Please indicate how you're defining "similarity"
5,135
Posted By H2OBoodle
If you wanted to automate the process, stick the...
If you wanted to automate the process, stick the commands into a file and have vim make the changes using the ex mode.

For example:

commandFile:
:% s/\(.*\) \(.*\)/\2 \1/g
:1,$ print <-- not...
18,415
Posted By H2OBoodle
The old split sort join trick. Nice. Thanks.
The old split sort join trick. Nice. Thanks.
11,334
Posted By H2OBoodle
How about using something like this to extract...
How about using something like this to extract all paragraphs with the !'s until a blank line or the next line that starts with a "!"?

sed -n '/^!!![^!]/,/[^$|^!]/p' # !!!
sed -n...
18,415
Posted By H2OBoodle
I responded to your question but I included a...
I responded to your question but I included a link, so I guess it's being held up for administrator review. Anyway, I've tried "sort" and some awk, but still no joy.
18,415
Posted By H2OBoodle
I've studied the sort docs and tried many...
I've studied the sort docs and tried many combinations without success.
sort (http://www.opengroup.org/onlinepubs/009695399/utilities/sort.html)

I'm sure I could muddle my way through with a...
18,415
Posted By H2OBoodle
Sort a file line by line alphabetically
infile:
z y x
c b a

desired output:
x y z
a b c

I don't want to sort the lines into this:
a b c
x y z

nor this:
c b a
z y x

The number of fields per line and number of lines is...
10,046
Posted By H2OBoodle
awk '{print $1,$2,$3,$4"]"}' inputfilename >...
awk '{print $1,$2,$3,$4"]"}' inputfilename > outputfilename
1,652
Posted By H2OBoodle
Well my assumptions on what you were trying to do...
Well my assumptions on what you were trying to do were bad, so my awk solution didn't pan out for me. However I gave it a shot with a really short python script, and I think I may have what you need....
1,652
Posted By H2OBoodle
Two things: I've never used join, so you're...
Two things:

I've never used join, so you're probably going to get a better answer from someone else.

I didn't find the problem statement very clear, and looking at the data didn't help much. It...
2,176
Posted By H2OBoodle
I'm not a vim expert, but you should look in your...
I'm not a vim expert, but you should look in your ~/.vimrc (if you have one) for the following line:

filetype plugin indent on

That's dependent on if your version of vim was compiled with...
Showing results 1 to 18 of 18

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