10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Trying to sort a bunch of files numerically but can't seem to get the command just right. This is in a IBM AIX machine.
I have a directory that has...
backup.bk1
backup.bk100
backup.bk2
backup.bk200
backup.bk3
backup.bk300
There are a lot more files but this is shortened for the... (5 Replies)
Discussion started by: c3rb3rus
5 Replies
2. UNIX for Beginners Questions & Answers
Hi all, (5 Replies)
Discussion started by: KMusunuru
5 Replies
3. Shell Programming and Scripting
Hi All
I am trying to run sed command to remove first 2 charcaters from a file on Multiple Files in my directory and what to retain the same file name .
I want to know how to retain the same file name but with changes .
Can some one please let me know how to proceed with this .
... (7 Replies)
Discussion started by: honey26
7 Replies
4. Shell Programming and Scripting
Hi Experts,
I want to join two files(file1 ,file2) which are having tab separated values,by sorting them on key column(ID) and want to redirect the output to other file(output file) along with the headers from both the files.
cat file1:
ID Name phone_no
205 mno 90808
200 xyz 32003... (9 Replies)
Discussion started by: bharathbangalor
9 Replies
5. UNIX for Dummies Questions & Answers
Hey Guys,
I am facing an annoying scenario, fewer times when I execute the sort command, it throws out on error saying that "No Space on available on /var/tmp/<temp file name>. May be it is set to /var/tmp directory. I was wondering, if I cant redirect the temporary file creation to any other... (3 Replies)
Discussion started by: abhisheksunkari
3 Replies
6. Shell Programming and Scripting
Hi guys,
I have folder1, folder2 and file1, I want to compress them in a unique file with zip extension (Output.zip).
I've been trying with zip -r Output folder1 folder2 file1
and does the job, but how can I compress them in zip format and removing the originals in the same command?
... (2 Replies)
Discussion started by: Ophiuchus
2 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
I'm having a problem with some basic piping issues...
I have been able to get in a directory and ls | gsed in order to list every N file for instance:
ls | gsed -n '2~5p'
The thing is I want to be able to copy the output files to a new directory. Basically directory /all has a... (4 Replies)
Discussion started by: dgoss
4 Replies
8. UNIX for Dummies Questions & Answers
Team,
Pls help writing a shell script which will sort all the files in a directory with the timestamp they were created. (like ls -lrt) (6 Replies)
Discussion started by: asappidi
6 Replies
9. Shell Programming and Scripting
hi there,
I have a directory which contents I can parse dynamically. I end up with a file list. I then want to display those files sorted by date, oldest files first. I have very very little PERL experience...Would anyone know how to do that ? Thanks in advance. (8 Replies)
Discussion started by: alexf
8 Replies
10. AIX
hello
i have a requirement where i have a direcotry in which i get files in the format
STOCKS.20080114.dat
STOCKS.20080115.dat
STOCKS.20080117.dat
STOCKS.20080118.dat
i need to loop through the directory and sort by create date descending order and i need to process the first file.
... (1 Reply)
Discussion started by: dsdev_123
1 Replies