Search Results

Search: Posts Made By: ad23
5,155
Posted By ad23
Yes, you are right. It is a difficult task. Your...
Yes, you are right. It is a difficult task. Your way sounds good, and it works.

Thanks!
5,155
Posted By ad23
Output as XML File
Hello All,

I am running a shell script, which in turn runs a perl script. When this perl script runs successfully, the output is generated as an XML file. The following is a snippet of my code:
...
1,391
Posted By ad23
Any suggestions?
Any suggestions?
1,391
Posted By ad23
I am using the following version SUSE...
I am using the following version


SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10



Yes, the command works on my system.


date -d "-2 day" +"%Y%m%d"


Also, this deletion...
1,391
Posted By ad23
Thanks! I made a typo in my previous message: ...
Thanks! I made a typo in my previous message:

"I want to delete "20120415" and not "20120416". Therefore keeping the last 3 latest directories"
1,391
Posted By ad23
Delete Directories
Hello All,

My shell script runs everyday to update certain database. Everytime the script runs it creates a directory, with "current date". These directories contain log and data files:

...
21,403
Posted By ad23
Thanks, Works like a charm!
Thanks,

Works like a charm!
21,403
Posted By ad23
Ignore lines in Shell Script
Hi,

I have a shell script, which reads a *.txt file - line by line. In this text file, I have some lines beginning with "#" that I want to ignore :

MY_FILE

#blah blah blah 1
blah blah...
2,441
Posted By ad23
Perl - pass file to subroutine
Hello All,

I have 2 perl sub-routines.


my $myDir = myDir_path;
my $file;

sub convert(){
system ("./$myConvertScript >> $myDir/$file_CONV" );
$file2 = $myDir/$file_CONV;
}

sub...
7,724
Posted By ad23
Never mind, this works: awk...
Never mind, this works:


awk 'NR==FNR{a[$0];next;}{if($1 in a){print "Found\t" $0;}else {print "\t" $0;} }' serialNumbers myFile.xls > xx
7,724
Posted By ad23
Thanks, but it is still not producing the desired...
Thanks, but it is still not producing the desired output. It prints "Found" for ALL records in excel....


awk 'NR==FNR{a[id]=$1;next;}{if(a[id]=$1){print "FOUND\t" $0;}else{print "\t" $0;} }'...
7,724
Posted By ad23
Modify an XLS file with Awk
Hello,

I have 2 files. One has a list of serial numbers:


12345_7
2345_9
35454
4759:1
PEP8794


The other is an excel file, with multiple columns, separated by tab:


12345_7...
1,637
Posted By ad23
Match values/IDs from column and text files
Hello,

I am trying to modify 2 files, to yield results in a 3rd file.
File-1 is a 8-columned file, separted with tab.


1234:1 xyz1234 blah blah blah blah blah blah
1234:1 xyz1233 blah...
1,109
Posted By ad23
(Perl or Unix) Script to get values from two files?
Hello,

I am working on a script to get values from 2 files, and write to a new result file.

File 1: 8-columned file separated by space:

SerialNumber-Abc123 ID-1234:0 Name-xxx Class-yyy...
14,412
Posted By ad23
I am using Suse Linux 10 (x86-64)
I am using Suse Linux 10 (x86-64)
14,412
Posted By ad23
Thanks a bunch! I understand now. Also, I...
Thanks a bunch! I understand now.

Also, I want to add a check-point to this: to avoid updating the database while the input-text-file is being updated or if the file is corrupt (or does not...
14,412
Posted By ad23
Do I need to maintain this manually and update...
Do I need to maintain this manually and update everytime the "text file" is updated? I am confused - could you elaborate?

I do not edit/change the input data file. All I do is check whether or...
14,412
Posted By ad23
Run a cronjob only when a file is modified?
Hello,

I am new to cron. I have a cronjob that updates a dataset in a 3rd party application. The contents of this dataset come from a text file, which is updated irregularly. Currently my cronjob...
9,128
Posted By ad23
Sorry, its test.pl !
Sorry, its test.pl !
9,128
Posted By ad23
yes, I would like to create an output file. My...
yes, I would like to create an output file. My code is as follows :

for i in $(ls test/*.input)
do
new = ${i%%.input}
test.pl -i $new.input.xml -o output_$new -x $new.info -d 86...
9,128
Posted By ad23
Run perl script, with command-line options
Hello everyone,

I have a perl script which takes various command line options from user like :

test.pl -i <input_file> -o <output_file> -d <value> -c <value>

Now I have multiple input files...
944
Posted By ad23
Thanks for your reply. The results I am getting...
Thanks for your reply.
The results I am getting from this are present in all the 3 files. I need only those values which are present in main.txt - - - and NOT in a.txt and b.txt

Thanks once...
944
Posted By ad23
Compare Files !!!
Hello all,

I have 3 text files (say a.txt, b.txt and main.txt) with some values.
I want to find those values which are present in main.txt, but not present in either a.txt nor b.txt.

Any...
6,124
Posted By ad23
Thanks so much!
Thanks so much!
6,124
Posted By ad23
Shell script to run a python program on multiple entries in a file
Hello

I am trying to run a python program using shell script, which takes a single argument from a file.

This file has one entry per line :
1aaa
2bbb
3ccc
4ddd
5eee
...
...
...

My...
Showing results 1 to 25 of 52

 
All times are GMT -4. The time now is 06:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy