Search Results

Search: Posts Made By: HemaV
5,589
Posted By HemaV
Convert Hex to Ascii in a Ascii file
Hi All,

I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?

Thanks in Advance
2,708
Posted By HemaV
After loading data into text file through...
After loading data into text file through Datastage jobs, in Unix prompt I'm seeing pound symbol representation as £ whereas in Datastage when I view data I'm seeing value as £ and  value is not seen...
2,708
Posted By HemaV
On £ symbol
Hi All,
How do i represent £ symbol in unix and how to retain £ symbol in file.

Thanks in Advance
4,223
Posted By HemaV
In ls -l remove total count
Hi All,

When i give ls -ltr i get 'total 10' like this along with files long listing. is there any option in ls command to remove this line or do we need use head -1 command only.

$ls -ltr...
2,394
Posted By HemaV
Need to split record
Hi All,
Need help in writing a shell script for the below requirement:

i/p: 123456789

o/p:
123
456
789

Req: one record should be split into multiple based on the length ( after every...
11,257
Posted By HemaV
I was thinking CC format is something in Julian...
I was thinking CC format is something in Julian date format and by reading the below posts i came to know that its the 1st 2 digits of year.

Thanks,
11,257
Posted By HemaV
Need specific date in CCYY-MM-DD.HH.MM.SS.mmmmmm format
Hi All,

If i have a specific date say "20130619 01:02:02.123456" [YYYYMMDD format], what is the unix command to display in
CCYY-MM-DD.HH.MM.SS.mmmmmm format?


Thanks in Advance,
2,650
Posted By HemaV
Thanks Awk command is working fine. :)
Thanks Awk command is working fine. :)
2,650
Posted By HemaV
Need a separator string between fields in cut -c command
Hi All,

I'm trying to view data using cut command for a fixed length file using the below command:

cut -c 1-3,4-5 FALCON_PIS_00000000.dat


I want to mention a separator say | (pipe) in...
9,558
Posted By HemaV
Both the servers are unix servers with AIX uname....
Both the servers are unix servers with AIX uname. I'm using Korn Shell.

Is this the information required? if not how to find out.

Thanks in Advance,
9,558
Posted By HemaV
Delete files older than 1 year through FTP
Hi All,

I want to login to a remote server using FTP command and then check for files older than 1 year and delete those files.
Please let me know how can i achieve this using Unix Commands.
...
854
Posted By HemaV
Thanks Guru..It worked..Could you please explain...
Thanks Guru..It worked..Could you please explain that if statement
854
Posted By HemaV
Logic needed
input :
employee_id, salary
-------------------
10, 1000
20, 2000
30, 3000
40, 5000


output:
employee_id, salary, next_row_salary...
1,214
Posted By HemaV
Needed value after the last delimeter in a file with varying number of delimited columns
Hi All,
My file has the records as below:
aaa\bbb\c\dd\ee\ff\gg
zz\vv\ww
pp\oo\ii\uu

How can I get the value after the last delimeter.

My o/p:
gg
ww
uu

Thanks in Advance,
1,673
Posted By HemaV
Thanks above code works ---------- Post...
Thanks above code works

---------- Post updated at 08:14 AM ---------- Previous update was at 08:11 AM ----------

When I use val=4 (i expected 4 records in File_3.txt but getting 2 records)...
1,673
Posted By HemaV
how to give file name as File_$num where num is...
how to give file name as File_$num
where num is incremental as 1, 2, 3........


Thanks
1,673
Posted By HemaV
split records into different files
Hi All,
I want my file to be split based on value of 'N' (passed as argument). If value of 'N' is '2' then 4 new files will be generated from the below source file and the o/p file shoud look like...
15,350
Posted By HemaV
but the problem is b1.sh script takes around...
but the problem is b1.sh script takes around 35mins to run.
i need to run b1.sh for every 1 hour. Is there a way to loop around without sleep command using date command?

Thanks in Advance,
15,350
Posted By HemaV
how to loop script for every 1 hour
Hi All,

Need to run a1.sh script using nohup command (since crontab facility not there in my unix server) as below:
nohup ksh -x a1.sh &

a1.sh contains:
nohup ksh -x b1.sh 2> b1.log &

In...
4,628
Posted By HemaV
Hi -wholename option is giving error as...
Hi

-wholename option is giving error as below:
$ find ./ -wholename ''/home/aa/ab/ac' -prune \
> -o -mtime +90 -type f -exec mv -f {} '/home/aa/ab/ac \;
find: 0652-017 -wholename is not a valid...
4,628
Posted By HemaV
Issue while moving files using find command
Hi All,
I'm facing this below error when I move files using find command....Please help out......

$ find /home/aa/ab -mtime +90 -type f -exec mv -f {} /home/aa/ab/ac \;

mv: 0653-405...
14,795
Posted By HemaV
Hi, the path /usr/bin/base64 is not existing in...
Hi,
the path /usr/bin/base64 is not existing in my server....
14,795
Posted By HemaV
Send files as an attachment without uuencode
Hi All,
Is there anyway we can send files as an attachment? I tried running uuencode but its giving an error as below:

$ uuencode Z1.txt Z1.txt |mailx -s "hi" abc@abc.com
ksh: uuencode: not...
2,532
Posted By HemaV
Hi, I tried the above command using sed and...
Hi,

I tried the above command using sed and sort but I'm unable to get the files in sorted order.

$ cat infile.txt| sed 's/\([^0-9]*\)\([0-9]*\).csv/\1 \2 .csv /' | sort -k2 | sed 's/ //g'...
2,532
Posted By HemaV
Thanks for you reply... Since Perl is not...
Thanks for you reply...
Since Perl is not installed in our servers I'm not able to execute the above perl code.
Is there any shell script to perform the same step?

Thanks in Advance,
...
Showing results 1 to 25 of 51

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