Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: bharat1211
2,498
Posted By bharat1211
Want to Schedule Shell Script on AIX
Hi All,

I want to schedule a shell script on AIX.
But Crontab is not working in my AIX Server.Is there any alternative?
Please Suggest..
1,857
Posted By bharat1211
You Can try This too awk -F"\t" '{...
You Can try This too

awk -F"\t" '{ for(i=1;i<=NF;i++)
{
$i=substr($i,1,1)"\t"substr($i,2,1)
}
print $0
}' OFS="\t"...
1,369
Posted By bharat1211
Hi Cokedude, Question was not clear. Could...
Hi Cokedude,

Question was not clear.
Could explain more precisely....

---------- Post updated at 06:54 AM ---------- Previous update was at 06:49 AM ----------

Try this


grep "10 2 12...
7,323
Posted By bharat1211
Yes U can combine.....
Yes U can combine.....
1,360
Posted By bharat1211
Hi Siva, Use Code Tags.Please read forum rules.
Hi Siva,
Use Code Tags.Please read forum rules.
1,247
Posted By bharat1211
Try This.. awk -F"#" '{ arr[$1]=$0;} ...
Try This..


awk -F"#" '{ arr[$1]=$0;}
END{ for(v in arr) print arr[v]}' sample.txt


Output


three.zip#three.pdf#three.jpeg#1
one.zip#one.pdf#one.jpeg#1...
696
Posted By bharat1211
Hi saps19, Thanks for you quick reply. But...
Hi saps19,
Thanks for you quick reply.
But Written logic in given link doesn't full fill my requirement.
please help me out
696
Posted By bharat1211
Transpose using awk
Hi Friends,
Very urgent requirement
please do needful ASAP..

Input:

|1||1|1||1|3||3|2||2|4||4|2||2|3||3|NA||0|5||5|NA||0|4||4|3||3


output:

|1||1
|1||1
|3||3
|2||2
|4||4
|2||2...
607
Posted By bharat1211
Typical problem in UNIX
Input file
I have a file with four fields.

f1,f2,f3,f4
A,1,10,00,S
B,2,20,00,00,D
C,3,100,00,00,G


I want Output like

f1|f2|f3|f4
A|1|10,00|S
B|2|20,00,00|D
C|3|100,00,00|G
...
1,826
Posted By bharat1211
file 1: ...
file 1:
AAAAA 3.465830E-12
BBBBB 4.263280E-08
CCCCC 1.113320E-17
DDDDD 0.000000E+00

file 2:

3.932350E-12
1.194380E-07
4.901480E-17...
650
Posted By bharat1211
file.. File 1 -Field 1=BUDGET_CURR_FX File...
file..

File 1 -Field 1=BUDGET_CURR_FX
File 2 -Field 1=BUDGET_MTH_AVGFX
File 3 -Field 1=BUDGET_PREV

script

awk -F"=" '{OFS="\=";split($2,a,"_");d=length($2);s=length(a[1]);
print $1,a[1]"...
522
Posted By bharat1211
Hi New Shellscripter, provide me your...
Hi New Shellscripter,

provide me your expected output..
Forum: What is on Your Mind? 08-04-2014
928
Posted By bharat1211
Use of bits.....
Hi Friends..

Can anyone explain me the usage of bits....
I am unable to understand .....




I've moved this to a more appropriate forum on the board. Please consider where you are posting.
2,163
Posted By bharat1211
Input File... cat file3.txt "123","This...
Input File...


cat file3.txt
"123","This is unix file","Unix"
"121","This is
C file","C"

Script..

awk -F"," 'BEGIN{print "Id"",""Text"",""File";OFS=",";}
NF==3{split($2,a," ");print...
2,610
Posted By bharat1211
Other way to accomplish the task... Input...
Other way to accomplish the task...

Input file:


cat list.txt
df00231587.dat
df01231587.dat
df03231587.dat
df05231587.dat
df0631587.dat
df0731587.dat
df08231587.dat
df09231587.dat ...
2,675
Posted By bharat1211
Another way to do: awk -F"," 'NF != 3 {next} ...
Another way to do:
awk -F"," 'NF != 3 {next}
{
total+=$2;
count+=$3;
print "amount "$1":"$2;
Print "count "$1":"$3;
}
END {
print "total amount :", total;
print "total count :", count;
}'...
4,916
Posted By bharat1211
:):):) thanks
:):):) thanks
4,916
Posted By bharat1211
Ha soo we cannot capture commands output instead...
Ha soo we cannot capture commands output instead of status.....okay thanks for quick reply

---------- Post updated at 11:34 AM ---------- Previous update was at 11:29 AM ----------

Soo there is...
4,916
Posted By bharat1211
Thanks Yeah I agree with you...but I want to...
Thanks
Yeah I agree with you...but I want to know how to store result of system() function..........
4,916
Posted By bharat1211
How to capture system() function output in variable
How to capture system() function output in awk variable and the print that awk variable.....
1,541
Posted By bharat1211
Cd {directory path} Ls -ltr >> test.txt Cat...
Cd {directory path}
Ls -ltr >> test.txt
Cat test.txt | awk -F" " '{print $9}| while read fl
Count=`Grep "not found" ${fl} | wc -l`
If [ ${Count} -eq 2 ]
Then
Echo ${fl} having "not found"...
8,816
Posted By bharat1211
Okay specify remote file name next to get.....so...
Okay specify remote file name next to get.....so that it will download the file from your remote server i.e from your windows server
8,816
Posted By bharat1211
Okay.Then u have written some code that is fine...
Okay.Then u have written some code that is fine just give file name after get keyword...so that it will pull the file from windows. ..

---------- Post updated at 05:52 PM ---------- Previous...
8,816
Posted By bharat1211
Okay first tell me are able to access the remote...
Okay first tell me are able to access the remote server? ???
8,816
Posted By bharat1211
U can use winscp to transfer files from windows...
U can use winscp to transfer files from windows to Unix
Showing results 1 to 25 of 25

 

Featured Tech Videos

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