10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I am on AIX.
I need to list the contents of the directory based on a pattern and write an XML output file with file names.
If a filename does NOT match the below pattern then write an OUTPUT xml file in the below xml format
Starts with (.abc) and contains (def)
Starts with... (4 Replies)
Discussion started by: techedipro
2. Shell Programming and Scripting
I need to do a patten match between files .
I am new to shell scripting and have come up with this so far. It take 50 seconds to process files of 2mb size . I need to tune this code as file size will be around 50mb and need to save time.
Main issue is that I need to search the pattern from... (2 Replies)
Discussion started by: nitin_daharwal
3. UNIX for Dummies Questions & Answers
I am working on designing the archival process for my system, where I will have to find distinct file names ( when excluded time_stamp extention ) from given directory and for each file type keep the latest and move all other older to different location ( lets say dir Back ). Below are... (2 Replies)
Discussion started by: freakabhi
4. Shell Programming and Scripting
My file :test.txt just like this:
I want a script to capture the string between sip: & @
Please help! (4 Replies)
Discussion started by: Alex Li
5. UNIX for Dummies Questions & Answers
I have got some 10 filenames stored in a file or displayed in the console as a result of some query i made.. Now I need to open each of these files and search for a pattern in these 10 files.. Can someone help me with this?
Jean (9 Replies)
Discussion started by: jeanjkj
6. Shell Programming and Scripting
I have about 35,000 files in one directory. Here I have to write a ksh to take only the filenames of 500 files at a time and put them into a new file. Can anyone please help me.
Thank you. (8 Replies)
Discussion started by: vpv0002
7. Shell Programming and Scripting
I guess by "pattern," I mean something different from how that word is defined in the Linux world. If you take $ to mean a letter (a-z) and # to mean a number (0-9), then the pattern I'm trying to match is as follows:
I'd like to write a script that reads in a list of files... (4 Replies)
Discussion started by: SilversleevesX
I have a list of files in a directory ..which are look like:
Here when i do ls 42420031* |sort it gives the output as
... (3 Replies)
Discussion started by: sanj_eck
9. Shell Programming and Scripting
If I run a program from within shell, the output is displayed in the command line terminal. Is there a way I can capture that output and choose only the very last string in it to send it to a new file?
Thank you (6 Replies)
Discussion started by: Lorna
10. UNIX for Advanced & Expert Users
I need a clarification on one of the scripts that i have written, I new to file handling and i need help:
I am trying to find a particular pattern in a file "****** PBX" in set of 5 files named:
in a directory. If i find the files starting with these... (16 Replies)
Discussion started by: bsandeep_80