10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need to grep/read files from multiple directories, one by one.
I mean something like shuffling the cards uniformly.
cd /directoryA
for i in *.txt;
do
some codes
cd ../directoryB
for i in *.txt;
do
some codes
cd ../directoryC
for i in *.txt;
do
some codes
done
done... (8 Replies)
Discussion started by: baris35
8 Replies
2. Shell Programming and Scripting
Hi forums,
Wondering if someone could assist me!!...
I basically want to do a while read line on a file and input it into a set of parameters for a JSON geospatial demo.. With a loop where every line creates a new "card" to an effect... card example below...
Data CSV one line:
... (4 Replies)
Discussion started by: skoot
4 Replies
3. Shell Programming and Scripting
Hi Guys,
I need to access multiple directories whcih is following similar structure and need to copy those files in desitination path.
for eg :
if ]
then
cd ${DIR}/Mon/loaded
echo "copying files to $GRS_DIR"
cp * ${DIR}/Mon/
echo "Files of Monday are Copied"
fi
if ]
then... (5 Replies)
Discussion started by: rohit_shinez
5 Replies
4. Shell Programming and Scripting
Hello,
I am a bit stumped on this. I am attempting to create 24 empty directories with a loop. Seems like I have incorrect syntax. When I run the following command I get the error below.
Command
$ for i in {2..24}; do mkdir $i_MAY_2011 ; doneError x 24
mkdir: missing operand
Try `mkdir... (2 Replies)
Discussion started by: jaysunn
2 Replies
5. Shell Programming and Scripting
Hi,
I have various log files in different paths. e.g.
a/b/c/d/e/server.log
a/b/c/d/f/server.log
a/b/c/d/g/server.log
a/b/c/h/e/server.log
a/b/c/h/f/server.log
a/b/c/h/g/server.log
a/b/c/i/e/server.log
a/b/c/i/e/server.log
a/b/c/i/e/server.log
and above these have an archive folder... (6 Replies)
Discussion started by: acc01
6 Replies
6. Shell Programming and Scripting
Hi,
Please help me on this.
Suppose i have the following directory structure.
/app/data
/app/data/eng
/app/data/med
/app/data/bsc
each of the directories data,data/eng,data/med,data/bsc holds files with date extension like
a.20081230
b.20081230 and so on
I need a script to loop... (9 Replies)
Discussion started by: sussane
9 Replies
7. Shell Programming and Scripting
I'm trying to write a script that will loop through all files and directories down from a path I give it, and change the permissions and ACL. I was able to do the obvious way and change the files and folders on the same level as teh path...but I need it to continue on deeper into the file... (2 Replies)
Discussion started by: cheetobandito
2 Replies
8. Ubuntu
Basicly im trying to edit a file for apache2 in /var/etc/apache2 and i dont have permissions, my login name is associated with root but i still can't do anything, Does anyone have any ideas?
Thanks in advance! (3 Replies)
Discussion started by: sypherz
3 Replies
9. UNIX for Dummies Questions & Answers
What is the purpose (function) of the following upper level directories: -
/bin
/dev
/etc
/home
/mnt
/media
/sbin
/tmp
/var
I have encountered these, but as i said, i am new to unix and i am not quite sure what they are and what their fucntions are.
Any help would be greatly... (2 Replies)
Discussion started by: carlvernon
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I'm trying create a loop from a txt file and set variables from its contents.
i.e. txt file contains three entries 'command1,command2' I want to loop the txt file and set variable1 as command1 etc etc. (1 Reply)
Discussion started by: pburge
1 Replies