Search Results

Search: Posts Made By: expert
1,417
Posted By expert
provide us the code on what you have tried , will...
provide us the code on what you have tried , will help you out with the errors.
1,439
Posted By expert
Usage of # in assignment of variable
guys,

i would like to know what does the below does.


tr=`echo $bfile | cut -d"." -f4`
tr=${tr#TR}


i tried with assigning a value and executed second line. but after that also value of...
1,032
Posted By expert
Get data from file using awk within strings.
i am having the text data file as below.

Processing 1
a 111111
b
c
d
e
f
Processing 2
a
b 222222
c
erorr
d
e
f
Processing 3
a
b 3333
3,716
Posted By expert
thanks a lot guys. it worked out :)
thanks a lot guys.
it worked out :)
3,716
Posted By expert
input 1 12 123 1234 12345 123456 ...
input
1
12
123
1234
12345
123456
1234567
12345678
123456789

required output
100000000
120000000
123000000
123400000
123450000
123456000
123456700
123456780
3,716
Posted By expert
i am sorry . I forgot to mention that "a" will be...
i am sorry . I forgot to mention that "a" will be of variable length 1-9 characters.
3,716
Posted By expert
Suffix formatting with awk
i would like to format the 9 character with suffix as "0".

i tried below it doesn't work.


>a=12345
> echo $a | awk '{printf "%-09s\n",$1}'
>12345


required output is 123450000

can...
Forum: Programming 05-22-2013
3,223
Posted By expert
we are using the same user for sending the...
we are using the same user for sending the messages
Forum: Programming 05-22-2013
3,223
Posted By expert
MQ Error -2035
we are using AIX unix and IBM's MQ for communication purpose.

Currently we are facing the issue with authorization error of 2035.

MQCONN ended with reason code 2035

Searched over net and i...
2,496
Posted By expert
awk is giving the error, but got the required...
awk is giving the error, but got the required output with six slashes \\\\\\ ..

Thanks All ! ! !
2,496
Posted By expert
Escape characters
i am executing script from A server which will execute the script in B server , as below.


ssh A 'ssh B echo 'select * from testing where name ='test''


i am getting the below output....
2,786
Posted By expert
i need the character to cut from 38 to 54. and...
i need the character to cut from 38 to 54.
and also i cannot use awk since it the second column"xxxxxxxxxxxxxx " will have special character or space..

---------- Post updated at 09:47 PM...
2,786
Posted By expert
Remove characters from the file
i know , the below question has been repeated.
can you guys guide me .

I have the below input

999999 xxxxxxxxxxxxxx 123.45 2013-05-02 08:14 1 1 1 xxxx
999999 xxxxxxxxxxxxxx 123.45 ...
Forum: UNIX and Linux Applications 02-19-2013
9,242
Posted By expert
DB2 - Get the last executed queries
hi Team,

i would like to know how to get the queries executed by a "C" binary which connects to the db2 database .

i tried with snapshot but i am not to proceed due to privileges.

let me...
Forum: AIX 09-13-2012
8,112
Posted By expert
thanks for the information Bakunin ! ! since...
thanks for the information Bakunin ! !
since both file timing are going to be incorporate the above, i dont think this is going to be OK to use.

but my question is how we can do that in AIX.
Forum: AIX 09-13-2012
8,112
Posted By expert
Equalent of Linux "stat" in AIX
i would like to know the equivalent of stat -c %Y <file> command in AIX.

i tried "istat" but its not giving the epoch time and also tried with perl

perl -le'printf "%o", 07777 & (stat)[2]...
4,632
Posted By expert
paste -s inputfile
paste -s inputfile
1,090
Posted By expert
try . cat menu_opts |head -n 1;echo -e...
try .


cat menu_opts |head -n 1;echo -e "\n";cat menu_opts |tail -n +2|awk '{print NR "]" $2 " " $3 " " $4 " " $5 " " $6 " " $7 " " $8 " " $9 " " }'
3,058
Posted By expert
try wild characters cat 77_?_SLA8.txt >...
try wild characters

cat 77_?_SLA8.txt > 77_SLA8.txt
1,430
Posted By expert
get the environment variable TZ from change it. ...
get the environment variable TZ from change it.
for ex,
if the TZ is CST6CDT then do it as below.


--> echo $TZ
CST6CDT
--> TZ=CST5CDT
-->date


now it should give you the time reqd .....
2,704
Posted By expert
got it .. thanks:b:
got it .. thanks:b:
2,704
Posted By expert
tried it, but thats not working. even with IFS=""...
tried it, but thats not working. even with IFS="" , its failing . :(
2,704
Posted By expert
sed - with escape character
i have string as below

str=".<date>"

in which i need to replace < with /< , when i tried with sed , got the output.

--> echo $str | sed 's/</\\</g'
.\<date>

when i tried to assign...
2,455
Posted By expert
try below for var in `awk -F " " '{print $1}'...
try below
for var in `awk -F " " '{print $1}' test_file_data | uniq`
do
grep $var test_file_data | sort | tail -1
done

hope this would work out as simple..
2,634
Posted By expert
you want to Zip a directory or a files inside a...
you want to Zip a directory or a files inside a directory ?
Showing results 1 to 25 of 59

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