Comment by msndm on How can we check whether the user input equal to one...
No. I just tried many ways but as I'm new learner I did not find a good way.
View ArticleComment by msndm on How can we check whether the user input equal to one...
If we want to call the corresponding number of each element in the array instead of inserting the words like ''one'' or ''two'', what can we do? for example: Enter the number: 2
View ArticleComment by msndm on How can I plot string as x axis insted of numbers in...
And if we have two string columns how can it possible?
View ArticleHow can organize the disordered columns using awk/sed?
I have 2 columns including some data like: one two one two one two How can we convert it to: one two one two one two
View ArticleHow can I plot string as x axis insted of numbers in gnuplot?
I have two column, first consists of vocabularies and the second includes numbers. How can I set gnuplot in this case?
View ArticleHow can we avoid entering the path of every different file each time in a...
I have to submit a script for slurm. I should enter the directory path whenever I change the submit script path. for example if I am in folder1 I should write manually: /home/job/folder1 if I want to...
View ArticleAnswer by msndm for How to convert gjf format to xyz format?
I wrote some thing like below and it works but it is almost stupid #!/bin/bash for file_name in *.gjf; do grep '[0-9]\.[0-9][0-9]' $file_name | cat > tmp cp tmp tmp2 wc -l < tmp >...
View ArticleAnswer by msndm for How to convert gjf format to xyz format?
It is also good but not always! #!/bin/bash for file_name in *.gjf; do tail -1 $file_name > ${file_name%.*}.xyz echo"" >> ${file_name%.*}.xyz grep '[0-9]\.[0-9][0-9]' $file_name >>...
View ArticleHow to convert gjf format to xyz format?
The gjf format is as follows: %chk=test.chk # hf/3-21g geom=connectivity Title Card Required 0 1 C 0.53424883 1.46721985 -0.02620215 H 0.89090326 0.45840985 -0.02620215 H 0.89092167 1.97161804...
View Articlesearch for a string through the whole website
In my specific goal, I'd like to go to a journal website and search for my keywords. I can define the keywords then grep for a string like below: keyword="Hello" web="https://whatever_webpage"...
View Article
More Pages to Explore .....