Hi,
I have a simple perl script where I am passing array of gziped files to the while loop and trying to read content of each field one line at the time using gzcat. Yet, I can not get it to work
Here is what I am doing
...
while ($filename=shift) {
open(MYFILE, "| gzcat $filename");
... (2 Replies)
I'm looking to write a script where i look in a file called files.txt. This file has a list of other files in there.
I want the script to be able to look at this files.txt and go off and find the files that are listed in another directory.
I am doing it this way as filenames change week in... (1 Reply)
Hi, I have 2 files
file 1
----
10013 This is a text
10014 This is a test
10015 This is a temp
file 2
----
10013 010014737 ADSM 1300004 E
10014 020012323 ABCD 1718888 E
10015 030121212 ADSW 1290991 E
need to compare column1 in... (2 Replies)
hi
i have two files
cat input.txt
123456| 43256
456482|5893242
cat data.txt
xv 123456 abcd dsk
sd 123456 afsfn dd
df 43256 asdf ff
ss 456482 aa
sf 5893242 ff ff
aa 5893242 aa aa
i need to read inputs from input.txt and find data for data.txt.
then i need to print them as a... (2 Replies)
Okay, so I've looked on here and found some similar things, but not exactly what I am looking for. I am working on creating a script that can back up some files, based on the contents of another file - the configuration file.
First file contains the files to back up - we'll call this... (1 Reply)
Hello
I have a requirement where i have to loop through certain directory which will have multiple files. After looping through i have to make a list of file names exisitng in the directory and write them to a sequental file and each file should be delimited by ^%^
i.e If i have 3 files A,... (3 Replies)
hi,
Is it possible to read and compare 2 files which have different Field separators at the same time using awk???
file1:
1,dayal,maruti,Z-234,bangalore,KA,........
2,yash,esteem,Y-007,delhi,DL,...........
.
.
.
fill 2:
Z-234|Registered|Bangalore
Y-007|Registered|Bangalore
.
.
.
... (2 Replies)
Hi All,
Request your expertise in tackling one requirement in my project,(i dont have much expertise in Shell Scripting). The requirement is as below,
1) We store the last run date of a process in a file. When the batch run the next time, it should read this file, get the last run date from... (1 Reply)