04-20-2012
really dumb MV command question
Hi,
Im trying to do move a file like this as mart of my script on Solaris
mv /path/to/file/file.txt ..
mv: cannot rename /path/to/file/file.txt to ../file.txt: Permission denied.
Im just trying to move it up one level using the following command on a bunch of directories:
find /path/to/file/ -type f -exec echo mv {} .. \;
Could someone answer this question, I have a very distinct feeling its very easy question, im just a bit on the dumb side sometimes
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
My problem is as follows:
I have to write a korn shell script which will run mutiple java applications one after one. For example,
I will execute the java application A first, after it is done I will run application B.
My question is how do I do this? How does my korn shell script know that... (1 Reply)
Discussion started by: madhab99
1 Replies
2. UNIX for Dummies Questions & Answers
ok i decided to go with Mandrake so i went to the site to download it and that took me to a mirror site. ok. so once i get there were can i find the install file(s) that i need? i only see a series of folder and files. the ones that say intall are instructions but i don't see the files themselves.... (3 Replies)
Discussion started by: justchillin
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i'm dealing with a script and I have one question. If I have these:
#!/bin/bash
wget http://somesite/file.tar
tar xvf file.tar
exit
I need the line that contains the command tar to wait until file.tar is completly downloaded, but it doesn't and continues with the next line... (6 Replies)
Discussion started by: piltrafa
6 Replies
4. UNIX for Dummies Questions & Answers
Does anyone have detailed info on how to download the files. I go to www.freebsd.com and then i dont know what to do. I dont know why i dont know but im drawing a complete blank so is there anyone that can provide a step by step procedure for downloading/installing Linux? :confused: :confused: (3 Replies)
Discussion started by: Corrail
3 Replies
5. AIX
Guys, ive been looking about , but obviously not hard enough, Where do i get AIX 5.3 from ?
DO i need to purchase it or is it free to download on a single user license ?:confused:
Thanks (2 Replies)
Discussion started by: wmccull
2 Replies
6. UNIX for Dummies Questions & Answers
Probably a really easy one for you guru's out there...:rolleyes:
I need to make sure the reverse address lookup daemon in rarpd, is running. How do I do so? :confused:
Did a grep for the process but couldnt find it, also looked in all the normal places, /bin etc...
Cheers (1 Reply)
Discussion started by: JayC89
1 Replies
7. UNIX for Dummies Questions & Answers
When getting a listing of files using "ls -l", my output shows the permissions, #oflinks???, owner, group, size, month-day-time, and file.
In the example below, how would I know what year the file was last modified?
-rw-rw-r--, 28, root, root, 2048, Oct 28 15:10, somefile.txt (2 Replies)
Discussion started by: KGee
2 Replies
8. UNIX for Dummies Questions & Answers
hi,
when we do an "ls -l" on a directory, we get the listing of the contents of that dir...
what is the meaning of some numbers...example in ;
-rw-r--r-- 1 idr supp 0 Feb 18 19:41 dmesg
drwxrwsrwx 2 root sys 96 Dec 27 15:31 test09
drwxr-xr-x 3 bin ... (1 Reply)
Discussion started by: cromohawk
1 Replies
9. Shell Programming and Scripting
can anyone please suggest what is wrong with this command:
for i in ;
do
cat ~/Downloads/Project/p0s0n15.tcl>>~/Downloads/Project/p0s0n15_$i.tcl;
./setdest -n 15 -p 0 -M 5 -t 100 -x 500 -y 500 >>~/Downloads/Project/p0s0n15_$i.tcl;
cat... (3 Replies)
Discussion started by: amithkhandakar
3 Replies
10. UNIX for Dummies Questions & Answers
I have a continuous ping running with export/timestamp to a file. It ran for about 10 hours and the last line in my output is:
ping: sendmsg: Network is unreachable
It looks like the ping stopped after that occurred. Should it do that? Is there a way to make that not happen?
I'm... (2 Replies)
Discussion started by: soleblazer
2 Replies
LEARN ABOUT REDHAT
mac2unix
dos2unix(1) General Commands Manual dos2unix(1)
NAME
dos2unix - DOS/MAC to UNIX text file format converter
SYNOPSYS
dos2unix [options] [-c convmode] [-o file ...] [-n infile outfile ...]
Options:
[-hkqV] [--help] [--keepdate] [--quiet] [--version]
DESCRIPTION
This manual page documents dos2unix, the program that converts plain text files in DOS/MAC format to UNIX format.
OPTIONS
The following options are available:
-h --help
Print online help.
-k --keepdate
Keep the date stamp of output file same as input file.
-q --quiet
Quiet mode. Suppress all warning and messages.
-V --version
Prints version information.
-c --convmode convmode
Sets conversion mode. Simulates dos2unix under SunOS.
-o --oldfile file ...
Old file mode. Convert the file and write output to it. The program default to run in this mode. Wildcard names may be used.
-n --newfile infile outfile ...
New file mode. Convert the infile and write output to outfile. File names must be given in pairs and wildcard names should NOT be
used or you WILL lost your files.
EXAMPLES
Get input from stdin and write output to stdout.
dos2unix
Convert and replace a.txt. Convert and replace b.txt.
dos2unix a.txt b.txt
dos2unix -o a.txt b.txt
Convert and replace a.txt in ASCII conversion mode. Convert and replace b.txt in ISO conversion mode. Convert c.txt from Mac to Unix
ascii format.
dos2unix a.txt -c iso b.txt
dos2unix -c ascii a.txt -c iso b.txt
dos2unix -c mac a.txt b.txt
Convert and replace a.txt while keeping original date stamp.
dos2unix -k a.txt
dos2unix -k -o a.txt
Convert a.txt and write to e.txt.
dos2unix -n a.txt e.txt
Convert a.txt and write to e.txt, keep date stamp of e.txt same as a.txt.
dos2unix -k -n a.txt e.txt
Convert and replace a.txt. Convert b.txt and write to e.txt.
dos2unix a.txt -n b.txt e.txt
dos2unix -o a.txt -n b.txt e.txt
Convert c.txt and write to e.txt. Convert and replace a.txt. Convert and replace b.txt. Convert d.txt and write to f.txt.
dos2unix -n c.txt e.txt -o a.txt b.txt -n d.txt f.txt
DIAGNOSTICS
BUGS
The program does not work properly under MSDOS in stdio processing mode. If you know why is that so, please tell me.
AUTHORS
Benjamin Lin - <blin@socs.uts.edu.au>
Bernd Johannes Wuebben (mac2unix mode) <wuebben@kde.org>
MISCELLANY
Tested environment:
Linux 1.2.0 with GNU C 2.5.8
SunOS 4.1.3 with GNU C 2.6.3
MS-DOS 6.20 with Borland C++ 4.02
Suggestions and bug reports are welcome.
SEE ALSO
unix2dos(1) mac2unix(1)
1995.03.31 dos2unix v3.0 dos2unix(1)