Search Results

Search: Posts Made By: ksgreen
1,519
Posted By ksgreen
Thank you. this would be easier but there are...
Thank you. this would be easier but there are several reasons to keep the current structure...

So my question is, without changing the current structure, any better way to loop more efficiently?...
1,519
Posted By ksgreen
Thanks for the response. Maybe I should be more...
Thanks for the response. Maybe I should be more clearer about the data structure.

in each of the directory, dir1, or dir2, etc, all contains 40 folders (1, 2, 3, .., 10, 20, 21, 22, 23, .., 29,...
1,519
Posted By ksgreen
multiple groups of files processing
I have five directories, dir1 to dir5
for each directory, I have all same number-named folders. There are four types of folders, {1..10}, {20..30}, { 40..50}, {60..70}

Now for each types of...
1,790
Posted By ksgreen
Yes, you are right with the red colored...
Yes, you are right with the red colored correction.

total input files is about 10-20 files

Yes, file* can be in different directory for file*_result.

Do you have any idea how to proceed...
1,790
Posted By ksgreen
how to convert this to a loop
I have a list of files in the same directory need to do the following


cut -d "=" f2 file1 > file1_result
cut -d "=" f2 file2 > file2_result
...

past file1_result file2_result .... >file_sum...
1,154
Posted By ksgreen
question about append columns
I like to do the following, please help! Thanks a lot
for f in seq(f1 f2 f3 g1 h1 t2)
do
cut -d "+" -f2 $f > $f.nums
paste ? # each loop will attach additional column to the created file...
1,072
Posted By ksgreen
a question about the text string
Hi I have a question for creating a text string

I have a table and wanted to attach a column header for it, can i do this:

header = "id gender age phone"
cat header table > finaltable

Thanks
1,577
Posted By ksgreen
Thank you. I may not express very well I...
Thank you. I may not express very well

I still need $i (1, 2, 3, ...) inside of the loop for writing.

would this work?

for i in (1:5) #not sure this is the right way?
do
echo "processing...
2,478
Posted By ksgreen
Thank you for suggestion! Additional...
Thank you for suggestion!

Additional question

I like to loop a list of files which named file1, file2, file3, file4, etc

if I like to loop them all over
for f in file1, file2, file3, file4...
1,577
Posted By ksgreen
a question about a regular expression
I like to loop a list of files which named file1, file2, file3, file4, etc

if I like to loop them all over

for f in file1, file2, file3, file4
do
echo "processing" $f
done

how to use a...
2,478
Posted By ksgreen
How to loop this process?
for two txt files, f1 and f2, I like to do the following

grep "abcde" f1 > abcde$f1
grep "xyz" f1 > xyz$f1

can I use a loop to get this done? Thanks

for i in f1 f2
do
grep "abcde" $i >...
2,416
Posted By ksgreen
Here is what I need to do. Thanks a lot! The...
Here is what I need to do. Thanks a lot!

The folder structure is

under f1 and f2,

a list of subfolders, some contain folder name containing "abcde"
if there is folder containing...
1,466
Posted By ksgreen
Thank you very much! Here is what I need to...
Thank you very much!

Here is what I need to do. Thanks a lot!

The folder structure is

under f1 and f2,

a list of subfolders, some contain folder name containing "abcde"
if there is...
1,466
Posted By ksgreen
Please help me on how to loop subdirectories
Here is my question in bash

for f in f1 f2
do
cd $f
cd ??? # i need to enter the two layers of sub folders then find the folder named "abcde" ?
cd .. # how to get out two layers...
2,416
Posted By ksgreen
Please help me on how to loop subdirectories
Here is my question in bash

for f in f1 f2
do
cd $f
cd ??? # i need to enter the two layers of sub folders then find the folder named "abcde" ?
cd .. # how to get out two layers...
Showing results 1 to 15 of 15

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