10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi folks,
I have several directories with multiple files of all kinds in them. For example
directory ###### contains:
######B1.TIF
######B2.TIF
...........
######B8.TIF
######.tar
######.txt
######.jpg
######r
######r.hdr
######rSVD
######rSVD.hdr
######t
######t.hdr
How do I... (8 Replies)
Discussion started by: spirospap
8 Replies
2. Shell Programming and Scripting
Platform: Oracle Enterprise Linux 6.2
I have several files like below. I want to remove all files except one file
For example , I want to remove all the files below except dasd_91197.trc
$ ls -alrt *.trc
-rw-r----- 1 ecmdev wms 8438784 May 7 21:30 dasd_91177.trc
-rw-r----- 1 ecmdev wms ... (3 Replies)
Discussion started by: John K
3 Replies
3. UNIX for Dummies Questions & Answers
Hello Unix Gurus,
I am using the following find commands:
1)
find Input_Path -name '*.' -exec mv -f
{} Outputpath \;
2)
find Inputpath -name '*.' -exec cp
{} Outputpath \;
3)
find Somepath -name '*.'
Now the problem is my Unix version does not support maxdepth Option for find... (7 Replies)
Discussion started by: pchegoor
7 Replies
4. Solaris
is it possible to use output of one date command as input of another?
I would like to know the date of Monday two weeks ago. so, the idea is that one date command subtracts two weeks, and the other finds the Monday. (2 Replies)
Discussion started by: orange47
2 Replies
5. Shell Programming and Scripting
Hi,
I need help with recursive function. This is not a part of any homework or classroom related. I am trying to learn unix and working on a question posted on site. basically i have to create a script which does what rm -r does.
my code so far:
1 #!/bin/bash
2
3 function recursive... (2 Replies)
Discussion started by: bluebird13
2 Replies
6. Shell Programming and Scripting
Hi All,
I have some 80,000 files in a directory which I need to rename. Below is the command which I am currently running and it seems, it is taking fore ever to run this command. This command seems too slow. Is there any way to speed up the command. I have have GNU Parallel installed on my... (6 Replies)
Discussion started by: shoaibjameel123
6 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
I am experiencing a problem right now while copying a directory as well as its subdirectories to my target directory. I know this is a very simple UNIX command using cp -R source directory target directory. but unfortunatley while doing this an error comes up on the command line saying... (2 Replies)
Discussion started by: Knowledge_Xfer
2 Replies
8. UNIX for Advanced & Expert Users
Hi,
I have question is related to find command. I want to find command should search in current folder only not recursive mode(sub-folders).
I found a one way of,
find . \( -name success -prune \) -o -name "Rajini*"
How ever, my current folder is having lots sub-folders and am not... (7 Replies)
Discussion started by: Nagapandi
7 Replies
9. Shell Programming and Scripting
I am trying to make a script to convert drg files to wav and so far i have this
#!/bin/bash
drg2sbg "$*" -o "$*".sbg
sbagen -Wo "/home/nick/Desktop/I-Doser Wave Files/"$*"" "$*".sbg
rm "$*".sbg
cd "/home/nick/Desktop/I-Doser Wave Files"
rename 's/\.drg$/\.wav/' *.drg
exit
the drg2sbg and... (2 Replies)
Discussion started by: Nickbowlingdude
2 Replies
10. Shell Programming and Scripting
i want to run few c object files one after another in one command. Can i write a acript for that. I'm using Sun Solaris.
for example
./prog < input1 >output1 &
./prog <input2 >output2 &
i want the first to finish before starting the nest one and run them in the back ground
thanks.... (5 Replies)
Discussion started by: narom
5 Replies