Search Results

Search: Posts Made By: infernalhell
5,845
Posted By infernalhell
Yes it would provide sort command ------...
Yes it would provide sort command

------ Post updated at 12:22 PM ------

Hello.thank u

It works but occasionally i am also getting the below prompt..how do i get rid of this



------...
5,845
Posted By infernalhell
I am on AIX and it doesnt support shuf
I am on AIX and it doesnt support shuf
5,845
Posted By infernalhell
Random Password generator with 2 digits and 6 characters
I am using the below to random generate a password but I need to have 2 numeric characters and 6 alphabetic chars

head /dev/urandom | tr -dc A-Za-z0-9 | head -c 8 ; echo ''

6USUvqRB

------...
36,469
Posted By infernalhell
Thank You, it is on network. By Size in...
Thank You, it is on network.

By Size in Blocks - would this give an idea of how much size it occupies in GB ?

But i see the parent directory of this dir has a lower block size.. So i am a...
36,469
Posted By infernalhell
Fields in the Output of ls -ltr for a directory
Could you please let me know what each of the output fields in ls -ltr for a directory imply.

Example :
drwxrwsr-x 4294967295 infamgr infagrp 2147549184 Sep 2 17:01 job

basically would...
2,651
Posted By infernalhell
Thank You So much Corona, i guess this should be...
Thank You So much Corona, i guess this should be good enough for me and meets my requirement
2,651
Posted By infernalhell
Process the ones which have null in the 3rd...
Process the ones which have null in the 3rd column and then update the 3rd column in the file as COMPLETED

Input
123|ABC|
456|PQR|COMPLETED
111|XYZ|
121|ASD|COMPLETED

Output...
2,651
Posted By infernalhell
Assign Values to a Variable in While Loop and Update the File
Hello,

Could anyone please help me with Assigning a value to variable and then updating the value in the original file

IFS='|'
while read -r Serial_ID JOB_NAME STATUS
do
if [ "$STATUS" =...
2,561
Posted By infernalhell
Execute a Command in a .Dat File and use it in other Files
We have a process where we store the database password in a config file like below from where the password is picked up and used in Database Scripts

ID, Password

But we now have a Audit...
2,832
Posted By infernalhell
Update a specific field in file with Variable value based on other Key Word
I have an input file with

A=xyz
B=pqr

I would want the value in Second Field (xyz or pqr) updated with a value present in Shell Variable based on the value passed in the first field. (A or B...
17,623
Posted By infernalhell
I dont think I will be able to change those...
I dont think I will be able to change those details..The similar sftp command is working when connecting to an other server which is been in use,,,,,


Any help on this is greatly appreciated
17,623
Posted By infernalhell
sftp Invalid buffer size
For the above one I am getting an error like Invalid buffer size ...Could some one help
8,584
Posted By infernalhell
Thanks
Thanks itkaraj and Murphy...That was really helpful....

Final Code for converting date from M/D/YYYY to YYYY-MM-DD

awk 'BEGIN {FS="|"; OFS="|"}
{ if (NR > 1)
{nbr = split($2, a...
8,584
Posted By infernalhell
Hi, Its actually for all the dates in that...
Hi,

Its actually for all the dates in that particular column..Not just a single occurrence...

I need a modification on Murphy's code where in I can calculate the lengths of a[3] and append 0s...
8,584
Posted By infernalhell
Hiii..One correction
Hii Murphy...

Thanks a lot for the quick turn around.....
1 Correction in here...

Please find the below code

awk 'BEGIN {FS="|"; OFS="|"}
{ if (NR > 1)
{nbr = split($1, a...
8,584
Posted By infernalhell
Convert the date format from mdy to ymd in column of file
The date format in the delimited file for one column '6/27/2011 12:00:00 AM' Is it possible o change it to '2011-06-27 12:00:00 AM' for all the records..


Thanks in advance.....
25,851
Posted By infernalhell
Awk with or and not operator
awk -F '/' '{ if (($2!="30") print }' f.dat > date_mismatch.dat
The above command is giving the desired results

But I would want use Or in the above but it is returning the complete file
awk -F...
21,603
Posted By infernalhell
test: ] missing
$HOLIDAY=""

if [ $TODAY == Tue && $HOLIDAY <> Mon ]
then
echo "1"
else
echo "2"
fi



Getting an error --test: ] missing...could some one help on this
6,930
Posted By infernalhell
well That form couldnt get my requirement.. ...
well That form couldnt get my requirement..

any other help
6,930
Posted By infernalhell
Subtract days from a variable holding date
Hi,

could someone help on this..

I have a date in variable

procdate="05/30/2009"

I would want to Subtract it with 3 or 4
9,464
Posted By infernalhell
@ pludi
Really sorry for troubling you.....

But let me get back to my script

mypid=$$
(sleep 60 && kill -TERM -$mypid) &
WATCH=$!

mycode

kill -TERM $WATCH

In the Kill statement below kill...
9,464
Posted By infernalhell
Heyy Thanks again...In my original code if I...
Heyy Thanks again...In my original code if I would want to exit the mytmp.sh when my inner code runs within the time ie I dont want the mytmp.sh to run for the entire 1 minute if my inner code gets...
9,464
Posted By infernalhell
Hii..Thanks a lot...its workin now.... Also...
Hii..Thanks a lot...its workin now....

Also can i exit the code with a exit1 when the process is killed owing to time constraints...
9,464
Posted By infernalhell
Kill a Script based on the pid and sleep
I would want to run a code for 1 min and if it doesnt succeed in 1 min..I would want to exit it..I am using the following code...But the script is not going into my code part.It is waiting for 60...
7,197
Posted By infernalhell
Hii...Thanks a lot..That worked great... ...
Hii...Thanks a lot..That worked great...

Could you tell me what is the difference between -vn and -vni
Showing results 1 to 25 of 28

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