I'm a little stuck on this problem, I've tried googling it and some trial and error but can't seem to get it working.
Basically I need the script to:
1) create a directory called "mybackups", if it doesn't exist
2) go through all the .sh files in the current directory, and copy them into the
"mybackups" directory.
3) add the date to the end of each filename.
This is what I've got so far:
I think the problem is with the cp $file $file|date "+%Y%m%d" line.
But any help would be awesome, I'm a complete newby to this :s
I'm a little stuck on this problem, I've tried googling it and some trial and error but can't seem to get it working.
Basically I need the script to:
1) create a directory called "mybackups", if it doesn't exist
2) go through all the .sh files in the current directory, and copy them into the
"mybackups" directory.
3) add the date to the end of each filename.
This is what I've got so far:
I think the problem is with the cp $file $file|date "+%Y%m%d" line.
But any help would be awesome, I'm a complete newby to this :s
Hello there,
Here is a KornShell script, that does the job (if you change the first line with
#!/bin/bash it also works but will give a warning message).
I have started reading the book Unix Network Programming, Volume 1: The Sockets Networking API. I downloaded all the source code and the readme says I must make the files.
zuro@zuro:~/book/unpv12e$ cd lib
zuro@zuro:~/book/unpv12e/lib$ make
gcc -g -O2 -D_REENTRANT -Wall -c -o... (5 Replies)
Hello to all,
I have Fujitsu Celzius M470 workstation which has Sun solaris system installed and want to make a complete backup of the hard drive. The existing HDD is SATA II, 500 GB.
I don't have much experience working with SUN solaris systems (not at all) but have some experience with... (5 Replies)
im tring to make backup to the files end with "doc" extension but the code give me error ... what is the problem!!!!
#! /bin/sh
if
then
for name in `ls *.DOC`
do
kk= $(printf "%s_temp" $name)
cp $name $kk
done
else
echo "error" (9 Replies)
Hi Unix members.
I am trying to make a backup to remote mounted filesystems :
fileraseing:/vol/oracliente_revap01
10G 1.3G 8.7G 13% /orarev_ap01
fileraseing:/vol/bobje
10G 5.9G 4.1G 60% /bobje
But I am receiving the follow message when use the ufsdump command:
:$PWD>ufsdump 0fu... (8 Replies)
Hi,
I have a file which keeps on appending the data continuously, i that i am looking for a particular pattern, if i dont find that pattern i want to wait for 30 seconds to check it again.
can we use it like this
-----------------------------
until
do
cat $line |... (1 Reply)
Dear all
I am bit new to shell scripting . I am implemented autossh between two sun solaris machines , so that when I use sftp it will not ask for the password.
Now I need to make shell script in which I have to transfer files from one server to another server automatically through root... (8 Replies)
Dear all
Dear Brother
I am bit new to programming or shell scripting. I have given one shell script which is regarding combining all the 240 or less files in a particular folderwhich is related to one hour of the day. There will be 24 these kind of folders related to a day . It means there... (4 Replies)
Hi Everybody,
I am trying to make the ddd-3.3.9 debugger. I installed all dependencies.
this is what i get:
# make
Making all in themes
make: Entering directory `/space/atoulan/ddd-3.3.9/themes'
make: Nothing to be done for `all'.
make: Leaving directory... (0 Replies)