Search Results

Search: Posts Made By: Theo Score
6,216
Posted By Theo Score
Thanks VBE, It worked.
Thanks VBE, It worked.
6,216
Posted By Theo Score
Reading a file from a different directory in a Bash script
Hi all,

Given here under a section of a script I am using.


SIMDIR="/home/Ins/forces"
cd $SIMDIR

for file in `ls *.forces`

do

basename=`echo $file | sed 's/\.[^.]*$//'`...
1,364
Posted By Theo Score
Hi Ravinder, thanks a lot for your input. It...
Hi Ravinder, thanks a lot for your input. It works well now.

Cheers:b:
1,364
Posted By Theo Score
Thank you Scrutinizer, exactly what I wanted.:b:
Thank you Scrutinizer, exactly what I wanted.:b:
1,364
Posted By Theo Score
sed command
Hi all,

I have a file >> data30000.stop. I want to have an output from it which will be the extension+the number i.e stop30000. I used


extname=`echo $file | sed 's/.*\.//'`

and I get...
3,718
Posted By Theo Score
Hi Don, I am using Linux RedHat. I tried...
Hi Don,

I am using Linux RedHat. I tried the script with both ksh and bash with the new script as;

#!/bin/bash
IAm=${0##*/}
if [ $# -ne 1 ]
then printf 'Usage: %s column_1_value\n' "$IAm"...
3,718
Posted By Theo Score
Thank you Don, I am using a bash shell...
Thank you Don,

I am using a bash shell (#!/bin/bash) and would appreciate your help.

Thank you, Theo
3,718
Posted By Theo Score
Grep command
Hi All,

I have a directory of simulation data files with structure dump*.data and an example of such data file is given below.

ITEM: TIMESTEP
10000
ITEM: NUMBER OF ATOMS
6
ITEM: BOX BOUNDS...
8,445
Posted By Theo Score
Thank you so much Don, second contribution was...
Thank you so much Don, second contribution was what I was looking for.
8,445
Posted By Theo Score
Sort Command
Hi All,

I have used sort -k1 -n data.txt > output.txt command on a large text data file with over 1,000,000 rows. The command managed to sort the data but the code did not read data according to...
Showing results 1 to 10 of 10

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