10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi everyone :-)
I ran into a small issue. I would like to copy some files in the precise order they were created.
So the oldest files should be copied first and the newest ones last.
I tried cp -r $(ls -1t) ./destination but the files are still not sorted properly. I was thinking, that... (11 Replies)
Discussion started by: officiallyme
11 Replies
2. Shell Programming and Scripting
Hello, how in bash i can get directory loop and order by creation date?
THX! :)
#!/bin/bash
for folder in /home/test/*
do
if ; then
echo $folder;
fi (12 Replies)
Discussion started by: ZerO13
12 Replies
3. Shell Programming and Scripting
Hi,
i had a data block (coming from pipe from other codes) as:
H YF_CO.dat 77164 11/17/2013 04:00:02 731374590.96 1 1 731374590.96 76586 77164 578 2988 Y
H YF_CO.dat 77164 11/17/2013 04:00:07 731374590.96 1 4 731374590.96 76586 77164 578 2988 Y
H YF_CO.dat 77178 ... (5 Replies)
Discussion started by: pr5439
5 Replies
4. Shell Programming and Scripting
Hi,
I want to run a script over a series of files with the names :
Sample_1.sorted.bam
Sample_2.sorted.bam
Sample_3.sorted.bam
How can I specify it in my script. Thanks a lot in advance. (3 Replies)
Discussion started by: Homa
3 Replies
5. Shell Programming and Scripting
Dear all,
I am having date as input 01-08-2011 ...i want to convert it by removing - (hyphens) in reverse order...i.e 20110801
can u please help me (1 Reply)
Discussion started by: suryanarayana
1 Replies
6. UNIX for Dummies Questions & Answers
I'm looking for a simple solution to rename a batch of files. All of the files in this directory start with a date in the format mm.dd.yy followed by a space and then additional descriptive text.
Example:
01.21.10 742 P.xlsx
02.24.09 730 Smith.xlsx
The information following the date can... (3 Replies)
Discussion started by: kreisel
3 Replies
7. Shell Programming and Scripting
I need some help with this shell script for class. All it does is organize your files. It works, but in the log file, it needs to show the new filepaths of the moved files. Heres my log of my output:
Starting to organize...
movie2.wmv -->
movie3.mov -->
movie1.mpg -->
song1.mp3 --> ... (3 Replies)
Discussion started by: ryandamartini
3 Replies
8. Shell Programming and Scripting
I need to build a k shell script that will sort files in a directory where files appear like this "XXXX_2008021213.DAT. I need to sort by date in the filename and then move files by individual date to a working folder. concatenate the files in the working folder then start a process once... (2 Replies)
Discussion started by: rebel64
2 Replies
9. Shell Programming and Scripting
hi
Is there a way to sort files in the order they were created ,and move them to another directory one by one ,oldest being the first to be moved.
Thanks
Arif (4 Replies)
Discussion started by: mab_arif16
4 Replies
10. UNIX for Dummies Questions & Answers
Im on HP/UX and am trying to find the command like an ll but that will sort showing the most currently modified programs first.
Can anyone help me with that? :cool: (2 Replies)
Discussion started by: Jeannine
2 Replies