Search Results

Search: Posts Made By: saleheen
2,435
Posted By saleheen
Awesome man! Thanks! :D
Awesome man! Thanks! :D
2,435
Posted By saleheen
Thanks a lot itkamaraj! It worked! Would you be...
Thanks a lot itkamaraj! It worked! Would you be kind enough the awk part? And how do I make it permanent? It's showing the changes in terminal but not in the file.
2,435
Posted By saleheen
I'm sorry Don. Here's my "input" My counts...
I'm sorry Don. Here's my "input"
My counts should return the values and I want add those values at the 7th line. This is what it should look like-
The numbers obviously can vary depending upon the...
2,435
Posted By saleheen
Thanks a lot Don!So I tried this as you said: ...
Thanks a lot Don!So I tried this as you said:
#!/bin/bash
set count_C=`grep -c C mols`
set count_H=`grep -c H mols`
set count_O=`grep -c O mols`
sed -i "7s/$/ $count_C $count_O ...
2,435
Posted By saleheen
Defining variable problem
Hi

I'd say I'm having this weird problem where my script isn't taking the value off a variable or printing it. My code is like this:
set count_C= `grep -c C mols`
set count_H= `grep -c H mols`...
Showing results 1 to 5 of 5

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