Search Results

Search: Posts Made By: gwr
3,593
Posted By gwr
Thanks Chubler_XL! I will give that a try. ...
Thanks Chubler_XL! I will give that a try.

gwr
3,593
Posted By gwr
Files attached now, sorry! gwr
Files attached now, sorry!

gwr
3,593
Posted By gwr
Chubler_XL, Can you help me? The commands...
Chubler_XL,

Can you help me? The commands you created were working great for the first file attached, until I encountered the second file attached, which doesn't work. The files should be the...
3,593
Posted By gwr
Thanks Chubler_XL, that's perfect. Cheers, ...
Thanks Chubler_XL, that's perfect.

Cheers,
gwr
3,593
Posted By gwr
Hi Chubler_XL, One further question....
Hi Chubler_XL,

One further question. Attached is the Excel file I get when I import the resulting text file, delimiting it by space and comma. Notice the columns with all 1's, 2's, 3's, etc. Is...
3,593
Posted By gwr
Thanks Chubler_XL! Works a treat. gwr
Thanks Chubler_XL! Works a treat.

gwr
3,593
Posted By gwr
Thanks Chubler_XL! When I execute that...
Thanks Chubler_XL!

When I execute that though as follows, I get the attached output file which I can't plot.
#!/bin/bash

var1=$(awk 'A&&NF!=2 {A=0} A{ printf A" "; L=1; A=x} /^$/&&L { print;...
3,593
Posted By gwr
Commands to reorganize a text file
Hi!

I am trying to create a script to reorder the contents of a text file. Below is the text file initially, followed by how I would like it reordered:

File initially:
---
Initial lines with...
9,179
Posted By gwr
Perfect, works a treat! Cheers Chubler_XL.
Perfect, works a treat! Cheers Chubler_XL.
9,179
Posted By gwr
Search file for string and store last result to variable
Hi,

I'm trying to search a text file for a string: "energy(sigma->0)=". To do so, I executed the grep command, which returned many matches, for example:

energy without entropy = ...
Showing results 1 to 10 of 10

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