0

Dear Experts,

to give a better picture i will explain the directory structure first

the files have the same naming convention and the only difference is the first letters which is the title of that account, there is a total of 210 files only the bold letters change for each file
exe: file 1,
/Data/KG-02/ACT/KG-02-PEF-RHOX-NOR.dat
file 2
/Data/KG-64/ACT/KG-64-PEF-RHOX-NOR.dat

+>Data
-----> /KG-02
-------->/ACT/
-------->KG-02-PEF-RHOX-NOR.dat
i have to concatinate these file with all the other files of similar name in the different directories, so i can have one account summary.

id appreciate any help

2
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by slbit
0

thanks, but i got an error message declaring illegal variable name

for i in Data/KG-*;do cat "$i"/ACT/*dat>"${i##*/}.dat";done
0

You're using a very old shell, try with a different one: bash, ksh, zsh (for example, do not use /usr/bin/sh on Solaris).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.