9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi...
Thanks to read this...
I want to use mkdir to create many directories listed in a text file, let's say.
How do I do this?
Sorry for this maybe very basic question :) (13 Replies)
Discussion started by: setub
13 Replies
2. Shell Programming and Scripting
To bakunin and corona688:
My result when text in file is
ms_ww_546
ms_rrL_99999
ms_nnn_67_756675
is
https://www.unix.com/C:\Users\Fejoz\Desktop\ttt.jpg
I hope you can see the picture. There is like a "whitespace character" after 2 of the 3 created directories.
---------- Post... (0 Replies)
Discussion started by: setub
0 Replies
3. UNIX for Dummies Questions & Answers
Hi Unix community,
I got this code from you guys and I tried to modify it to use for my csv dir transfer
basically i want the .csv file to copy itself and populate it to the archive dir.
#!/bin/ksh
dir1="/home/pumela/unixtestprod"
cd "$dir1"
echo "code is running"
for srcd in... (13 Replies)
Discussion started by: phumaree
13 Replies
4. Shell Programming and Scripting
Hello everybody, I wonder if there's a way to make a directory that contains multiple subdirectories. For example, if I want to make /home/student under the current working directory, how do I do it? Can I do it using a single mkdir command or do I have make home first, cd into it and then make... (1 Reply)
Discussion started by: Yongfeng
1 Replies
5. Shell Programming and Scripting
Hello Comunity
I am trying to make a bash shell script that it copies files and subdirs(with files) to a new dir. I would like the dest_dir to contain only subdirectories with files not other subdirs inside.
it called : cpflatdir src_dir dest_dir
Pleaze help me!
Thank you in... (2 Replies)
Discussion started by: BTKBaaMMM
2 Replies
6. Shell Programming and Scripting
hi,
I want to copy files from source directory based on input file (or output of previous command) and i want to have the SAME DIRECTORY STRUCTURE.
Note that i will have other files and directories which i dont want to copy to destination.
For example, dir source has following content:... (22 Replies)
Discussion started by: dragon.1431
22 Replies
7. UNIX for Dummies Questions & Answers
Hello all.
I'm not getting the hang of Paths. I have a dir w/files that I want to copy to another dir. Right now I am in the "source" directory. I want to copy it to Ch7.
"cp -r source Ch7". Ch7 was already created.
1st msg.: cannot stat `source`: No such file or dir.
I typed pwd & got... (3 Replies)
Discussion started by: Ccccc
3 Replies
8. UNIX for Dummies Questions & Answers
Hello-
I need to copy a file into multiple directories, and each directory's sub-directories (of which there are 5)
Currently, the parent directory is set up like this:
dir1
sub-dir1
sub-dir2
sub-dir3
sub-dir4
sub-dir5
dir2
sub-dir1
sub-dir2
sub-dir3
... (1 Reply)
Discussion started by: penlok
1 Replies
9. UNIX and Linux Applications
HI all, I got a CPIO archive that contains a unix filesystem that I try to extract, but it extract to the root dir / unstead of current dir, and happily it detects my file are newer otherwise it would have overwrited my system's file!
I tried all these commands
cpio -i --make-directories <... (2 Replies)
Discussion started by: nekkro-kvlt
2 Replies