Search Results

Search: Posts Made By: luja
2,671
Posted By luja
Thank you! This works as well!
Thank you! This works as well!
2,671
Posted By luja
thank you, yes first got an error, then added the...
thank you, yes first got an error, then added the brackets:
awk 'NF>0 {if (NF==4) {fn=$1; print $2,$3,$4 > (fn".txt")} else {print $0 >> (fn".txt")}}' test_fsl.txt
so that worked.
the resulting...
2,671
Posted By luja
sorry, this was confusing. the <empty> means...
sorry, this was confusing. the <empty> means there is a space. so the solution does not work. there is no empty in the file. the file looks like this:

SC 32.245 24.153 1
213.179 ...
2,671
Posted By luja
Splitting textfile based on pattern and name new file after pattern
Hi there, I am pretty new to those things, so I couldn't figure out how to solve this, and if it is actually that easy. just found that awk could help:(.

so i have a textfile with strings and...
Showing results 1 to 4 of 4

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