10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Need a Unix command to save the last 20 versions of a file in a specific directory and delete everything else. Date is irrelevant. Anyone aware of such an animal?
In my test, I came up with:
ls -t1 /tmp/testfile* | tail -n +20 | xargs rm
I don’t quite trust the author though! (1 Reply)
Discussion started by: rwsherman
1 Replies
2. Solaris
unix1{owadmin}% tar tvf /dev/rmt/1
-rw-rw-rw- 1021/10 0 Sep 11 17:54 2011 TinahPF_Far_32bit.segy
tar: directory checksum error
unix1{owadmin}%
i know in this tape 3 files not only one file so what can i do to view 3 files
and what is this error mean ( tar: directory checksum error... (2 Replies)
Discussion started by: ayman
2 Replies
3. Shell Programming and Scripting
Hello
I have the following files
VOICE_hhhh
SUBSCR_llll
DEL_kkkk
Consider that there are 1000 VOICE files+1000 SUBSCR files+1000DEL files
When i try to tar these files using
tar -cvf backup.tar VOICE* SUBSCR* DEL*
i get the error:
ksh: /usr/bin/tar: arg list too long
How can i... (9 Replies)
Discussion started by: chriss_58
9 Replies
4. Shell Programming and Scripting
Hello I'm trying to do an exercise programming in bash where I have to get only the store of files in a directory but NOT all capacity of the directory.
I probe with: du -sh "$directory"*` but I get all the capacity and I probe with ls command but I couldnt.
Are there any way to get only files... (2 Replies)
Discussion started by: adiegorpc
2 Replies
5. AIX
Hi, what happened is we want to count all the files in a directory and inside this directory got many folders and so take long time to count it. Already run for about few minutes but still not done. The command we use to count is find . -type f | wc -l
Just wondering if there is any other... (9 Replies)
Discussion started by: ngaisteve1
9 Replies
6. Filesystems, Disks and Memory
I've starting playing with a tape drive for the first time. Its a new one, an IBM Ultrium LTO 4. After initially copying a file to the tape with tar cvf /dev/st0 /root/dummy, all subsequent files appended take an increasing amount of time with tar rvf /dev/st0 /root/dummyX. Is it normal for each... (2 Replies)
Discussion started by: jeriryan87
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I have kinda inherited this problem, but was wondering if anyone else had any ideas.
Currently all our backup rentention periods are set to 2 weeks, so that we can cycle through tapes (save money etc...). Anyhow the guys next door in IT, decided one day long long ago, that it would... (0 Replies)
Discussion started by: B14speedfreak
0 Replies
8. Shell Programming and Scripting
I did search the posts for info on this and while there were some in the ballpark, none addressed this specifically. (also I tried to post this once it said I was logged out, so hopefully I'm not sending a duplicate here).
I have a set of files (250 +/-) where I need to delete the first "$x"... (4 Replies)
Discussion started by: benair
4 Replies
9. AIX
I have AIX5.1
I have tried to retrieve a file from tape with no sucsess. I had this posted in the newbies section but I think I should have tried here. I did get some good info there though on where to start. This Is what I did.
My back line is so...
cat /rd/tmp/backuplist.full | cpio -ocvBdum... (1 Reply)
Discussion started by: rocker40
1 Replies
10. UNIX for Dummies Questions & Answers
Can anyone please help....
how can I dump just a single file to tape using the ufsrestore command!!! I'm a newbie to unix and It's driving me mad..
Thanks in advance. (2 Replies)
Discussion started by: Jonathan
2 Replies