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)
Hi
I need to perform certain tests on information contained in a file, a lot of what is contained in the file is duplicate data, so what I want to do as it is a failrly substantial file size is to start and finish reading from a specifed line in the file.
Can someone tell me how to indicate... (3 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)
Hello everyone,
Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware.
I hope I am not missing anything! :p (4 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,
I am newbie to Solaris and system administration in general, and I have a couple of questions about files in my HOME directory.
When I perform ls -la, I get the following list of files:
drwxr-xr-x 7 XXXYYY staff 17 Aug 24 07:31 .
drwxr-xr-x 7 root root 7... (2 Replies)
In C, given a name or path to a file, how do I check if the path is valid, and how can I check its permisions will let me read from it, and how do i check if its an empty file? (15 Replies)
Hi folks,
I would like to get familiar with shell script programing.
The first task is:
write a shell script that:
scans your home-folder + sub-directory for all txt-files that all users of your group are allowed to read and write
then output these files sorted by date of last... (4 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)