Search Results

Search: Posts Made By: 46019
1,402
Posted By 46019
Openssl issue
Hi,
I am using openssl as below for encryption of a string ( foo) and I have to pass the password twice for the same.

echo 'foo' | openssl aes-256-cbc -a -salt
enter aes-256-cbc encryption...
2,497
Posted By 46019
Compatibility issues between Sun solaries & AIX commands.
Hi,
I am migrating few of the shell scripts from existing SUN Solaries to AIX.
My script contains some command like 'dos2unix' and 'unix2dos' which are not compatible in AIX flavour. Please let me...
12,663
Posted By 46019
Itkamaraj > Your solution is not giving the week...
Itkamaraj > Your solution is not giving the week code of a year. Week code of a year varies from 1 to 52. Hope you understand the requirement.

OS & platform:SunOS-sparc
OS version : 5.10
12,663
Posted By 46019
Both of the above solutions are not working. ...
Both of the above solutions are not working.
date -d '20120404' +%W
date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
...
12,663
Posted By 46019
Week number means the week code... for today...
Week number means the week code...
for today the week code is 16 from the below command.
spdwa526:/axphome/rmund1(133)$date +%W
16

Similarly for any given date how can I know the week code?
12,663
Posted By 46019
Week number from a date.
Hi,
How can we get the week number from any paricular date. lets say date is 20120404 (YYYYMMDD) then how to get the week number?

date +%W --- Thic command gives the week number for current date...
1,332
Posted By 46019
Print using awk
Hi..
I have two files. contents of the files are as below.

header1.dat
-------------
This is a header record.

header2.dat
-------------
This is a header record.
Date:2011-01-05

I am...
12,056
Posted By 46019
Lets say I have file FILE1 which contains 100...
Lets say I have file FILE1 which contains 100 records.

FILE1
------------

aaaaaaaaaaaa
bbbbbbbbbbbb
cccccccccccc
dddddddddddd
eeeeeeeeeeee
fffffffffffffffffff
gggggggggggg
hhhhhhhhhhhh...
12,056
Posted By 46019
Adding a blank line after every 5th line
Hello...
I have a file which contain certain number of records.
I want to generate another file from this file which will contain 1st line as a blank line & after every 5 lines one blank line will...
3,539
Posted By 46019
Increment in date
Hi,

I have a variable lets say DATA_DATE.
I have to pass some value to this variable in YYYYMMDD format.

lets say today I have passed this variable as :

DATA_DATE=20100107

Then pls help...
7,860
Posted By 46019
No, emp will not be present always. But atleast...
No, emp will not be present always. But atleast one of them (emp, sal, loc) will be present.
7,860
Posted By 46019
Rows to Columns - File Transpose
Hi I have an input file and I want to transpose it but I need to take care that if any field is missing for a record it should be popoulated with space for that field - using a shell script
...
2,653
Posted By 46019
Hi Cfajohnson, Thanks for the reply. Your...
Hi Cfajohnson,
Thanks for the reply.
Your code is working fine for the first kind of input which i have mentioned above.
But in case of second kind of input the output should look like :

1,2,3...
2,653
Posted By 46019
File Transpose
Hi ALL
I have one input file say FILE1 which looks as below.
a=1
b=2
c=3
a=4
b=5
c=6
.
.
.

Here a,b,c...etc are variable names.

The output file(FILE2) should look like

1,2,3...
1,673
Posted By 46019
Transposing a file
Hi All,
I have a input file say FILEA.

FILEA
--------
empid1
sal1
location1
manager1
empid2
sal2
location2
manager2
empid3
sal3
location3
manager3
.
.
.
1,521
Posted By 46019
HTML mailing
Hi All,

I have a comma separated file as below.

file-1
----------
a,b,c
d,e,f
g,h,i
.
.
.

I want to send the above file in Mail in HTML format with all the values of each column in...
11,107
Posted By 46019
writing the output of SQL into one file
Hi All,
Please help me writing the below script.

I have two sql queries.

1. Select count(1),Client_id from TABLE_A group by Client_id;
2. Select count(1),Client_id from TABLE_B group by...
2,588
Posted By 46019
String comparison
Hi,

I have the below logic. Here 'X' is a variable having some string.


if [$X = "Today is holiday."]
then
echo "i dont need to go to ofc"
else
echo "i need to go to ofc"

...
1,591
Posted By 46019
Mailing script
Hi,

I have a file lets say FILE1.

FILE1
------
name,age
charlie,25
harry,29
david,32

Pls help me writing a mailing script.... which will mail the content of file in the body of the mail...
1,610
Posted By 46019
Help in for loop.
Hi,

I have a file lets say FILE1 which contains list of files and the contents of this file are not going to change over time.

FILE1
---------

feedset1_${DATA_DATE1}.dat...
20,612
Posted By 46019
Appending two files vertically
Hi

Need ur help for the below question.
I have two files File-1 & File-2.

File-1(This is a fixed file i.e. the content of this file is not going to change over a period of time)
------
a
b...
Showing results 1 to 21 of 21

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