08-31-2012
I may have edited something in underneath you while you replied. Sorry, I'm sneaky like that.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to copy all fiels and directories to another locathon and keep the owner info and rights.
I tried cp -r - p * /newdir
No good. (5 Replies)
Discussion started by: aarono
5 Replies
2. UNIX for Dummies Questions & Answers
I wonder if someone would help me a little here.
I have a directory (folder on a mac) with about 100 subfolders and sub-subfolders and files there in. All sub directories have the same name structure, "AAA Name". Like this:
ISP CompanyName
ITS CompanyName
KEL CompanyName
KRA CompanyName... (2 Replies)
Discussion started by: sigurarm
2 Replies
3. 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
4. Shell Programming and Scripting
Hi,
am having a lease file which contains lots os lease info. In that i have to copy the whole block(shown below) by identifying the mac and change the IP according to the i/p.
I have used like
sed s/${ip_addr}/$ch_ip/g $temp_file | grep -B5 "${mac}" >> $persistent_file
sed... (2 Replies)
Discussion started by: SMNK
2 Replies
5. UNIX for Dummies Questions & Answers
how can i copy those files into other directories have the same name but different in the end
i have files in directory called test:
10_10_asdadfsdfad.txt
10_10_11_asdawqefwkjasd.txt
10_10_11_12_asdafjjhoqwd.txt
i want to put them in exist directory thart i have on my system
i have... (1 Reply)
Discussion started by: t17
1 Replies
6. Shell Programming and Scripting
Hello,
Thank you in advance for helping a newbie who is having great trouble with this simple task.
I'm allowed to copy one file remotely each night due to bandwidth restrictions.
A new file gets generated once a day, and I need to copy the previous day's file.
Here is what I'd like to do:... (1 Reply)
Discussion started by: tmozdzen
1 Replies
7. Shell Programming and Scripting
Beginner/Intermediate shell; comfortable in the command line.
I have been looking for a solution to a backup problem. I need to compare Directory 1 to Directory 2 and copy all modified or new files/directories from Directory 1 to Directory 3. I need the directory and file structure to be... (4 Replies)
Discussion started by: Rod
4 Replies
8. Shell Programming and Scripting
I have directory path in which there are several sub directories. In all these sub dir there will be one env.cnf file. I want to copy this env.cnf file from
each sub dir's and place them in destination path by creating same filename as sub dir_env.cnf.
After copying env.cnf files from source... (4 Replies)
Discussion started by: Optimus81
4 Replies
9. Shell Programming and Scripting
LD:=C:/WindRiver/diab/5.9.3.0/WIN32/bin/dld.exe
CFILES:=$(wildcard *.c)
OBJFILES:=$(subst .c,.o, $(CFILES))
OBJ_PATH:=$(PRJ_PATH)/out/
ADDOBJFILES := $(addprefix $(OBJ_PATH),$(OBJFILES))
FILES:=C:/EB/tresos/workspace/Test_Spi/output/src
copyfiles:
cp ... (3 Replies)
Discussion started by: ushacy
3 Replies
10. Shell Programming and Scripting
I am trying to copy only the date specific folders/directories using the following command. However, the following copy command is also copying files from the root folder (OriginalFolder).
find /OriginalFolder/ -type -d \{ -mtime 1 -o -mtime 2 \ } -exec cp -R {} /CopyTo/'hostname'__CopyTo/ \;... (2 Replies)
Discussion started by: apacheLinux
2 Replies
LEARN ABOUT SUSE
utmpdump
UTMPDUMP(1) Linux System Administrator's Manual UTMPDUMP(1)
NAME
utmpdump - dump UTMP and WTMP files in raw format
SYNOPSIS
utmpdump [-froh] filename
DESCRIPTION
utmpdump is a simple program to dump UTMP and WTMP files in raw format, so they can be examined.
OPTIONS
-f output appended data as the file grows.
-r reverse. Write back edited login information into utmp or wtmp files.
-o use old libc5 format.
-h usage information.
utmpdump can be useful in cases of corrupted utmp or wtmp entries. It can dump out utmp/wtmp to an ASCII file, then that file can be
edited to remove bogus entries and reintegrated, using
utmpdump -r < ascii file > wtmp
but be warned as utmpdump was written for debugging purpose only.
BUGS
You may not use the option -r as the format for the utmp/wtmp files strongly depends on the input format. This tool was not written for
normal use but for debugging.
AUTHOR
Michael Krapp
SEE ALSO
last(1), w(1), who(1), utmp(5),
Februar 8, 2010 UTMPDUMP(1)