9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
dear all
suppose I have two files file_000 and file_id:
file_000:
blablablabla000blablabla000
000blahblah000blahblah
blah000blahblahfile_id:
001
002
003now, based on file_id, I want to create 3 files; the name of each file would be file_001,file_002,file_003,respectively, and the... (4 Replies)
Discussion started by: littlewenwen
4 Replies
2. Shell Programming and Scripting
Hi,
Is there a direct command or need to write a shell script for following requirement?
Everyday a folder is populated with approx 25k to 30k xml files. I need to create multiple zip files in the same folder each containing 50 xml files. The last zip file may or may not contain 50 xml files.... (6 Replies)
Discussion started by: Rakesh Thobula
6 Replies
3. Shell Programming and Scripting
Dear All,
I am trying to write a Unix Script which fires a sql query. The output of the sql query gives multiple rows. Each row should be saved in a separate Unix File.
The number of rows of sql output can be variable. I am able save all the rows in one file but in separate files.
Any... (14 Replies)
Discussion started by: Rahul_Bhasin
14 Replies
4. Shell Programming and Scripting
I need a script file for backup (zip or tar or gz) of old log files in our unix server (causing the space problem). Could you please help me to create the zip or gz files for each log files in current directory and sub-directories also?
I found one command which is to create gz file for the... (4 Replies)
Discussion started by: Mallikgm
4 Replies
5. Shell Programming and Scripting
I have a file details.csv and I need to create 5 files in same folder named as details1.csv,details2.csv,details3.csv,details4.csv,details5.csv along with contents of details.csv
Thanks in Advance. (9 Replies)
Discussion started by: Prashanth B
9 Replies
6. Shell Programming and Scripting
Hi everyone!
I usually get large files with different groups of entries; for example, each line starts with A, B, C, D, or E. Is there a way to separate all these entries and then write them in 5 different files with one awk program?
Thank you! (4 Replies)
Discussion started by: Avro1986
4 Replies
7. Shell Programming and Scripting
HI,
I would like to create the files as
file1.txt
file2.txt
file3.txt
......
.......
.......
filen.txt
in a single unix command, i dont want to use the loops.
n is user specific
Kindly help me in this.
THank you
Jagadeesh (2 Replies)
Discussion started by: jagguvarma
2 Replies
8. Shell Programming and Scripting
I have a list of pattern in a file, I want each of these pattern been searched from 4 files. I was wondering this can be done in SED / AWK.
say my 4 files to be searched are
> cat f1
abc/x(12) 1
abc/x 3
cde 2
zzz 3
fdf 4
> cat f2
fdf 4
cde 3
abc 2... (6 Replies)
Discussion started by: novice_man
6 Replies
9. Shell Programming and Scripting
Hello,
I need to find all *.xml files that matched by pattern on Linux. I need to have written the file name on the screen and then change the pattern in the file just was found.
For instance.
I can start the script with arguments for keyword and for value, i.e
script.sh keyword... (1 Reply)
Discussion started by: yart
1 Replies