Search results

  1. R

    How to delete lines upto a particular line

    Update: Sorted out, removing those square brackets solved the issue.
  2. R

    How to delete lines upto a particular line

    Hello Linux users, I want help with command line for the following purpose, From a file, I want to delete line 1 to line x, where line x contains a specific phrase; Phrase:[ hbonds_Protein ] Filename: hbond.txt In the attached file, this phrase is on line 37, in this case I want to delete...
  3. R

    Apply same command in multiple directories?

    Thank you again @JasKinasis I am sorry I was just trying to use all resources to get an answer to this as I was struggling in this complex analysis.
  4. R

    Apply same command in multiple directories?

    Thank you @dos2unix @JasKinasis @rado84 for your insights! Yes, I have 20 directories under a parent directory. I want to perform data analysis using same command and same input files from all these 20 directories. One sample analysis (gromacs for simulations) command: gmx rms -f md.trr -s...
  5. R

    Apply same command in multiple directories?

    Is there a way to apply the same command on multiple directories (say 20+) on linux? Any insight would be appreciated!
  6. R

    Command for repeating jobs on Linux

    Any hints would be appreciated, so that I can get a head start on it!
  7. R

    Command for repeating jobs on Linux

    Sorry for not being clear, yes second option "em1..3 another set of simulations that work with the outputs from md1..3"
  8. R

    cat command to print multiple lines from a text file

    Thank you again, it worked with a slight modification of the command you sent! for i in $(seq 25 20 30025) do sed -n ${i}p temp4.txt done
  9. R

    cat command to print multiple lines from a text file

    A follow up question on the sed command: Bash: sed -n '25p;45p;65p' temp4.txt I actually need to print more lines with the same pattern (+20) until line 30025, I currently have the above command with all numbers written out till 30025, that command is pretty long (although it works), is there...
  10. R

    Command for repeating jobs on Linux

    Hello Linux users, I have a job that is to be repeated thrice in the following way. Here em and md refers to energy minimization and data collection stages in the molecular dynamics simulations. Trial 1: (em0 -> md1 -> em1) Trial 2: (em0 -> md2 -> em2) Trial 3: (em0 -> md3 -> em3) Here the...
  11. R

    cat command to print multiple lines from a text file

    Thank you, it works very well!
  12. R

    cat command to print multiple lines from a text file

    Thank you for your detailed reply, however none of those commands worked, there was always an error for all 3 commands
  13. R

    cat command to print multiple lines from a text file

    How to use cat command to print say lines 25, 45, 65 ....... from this attached text file?
Top