Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: Abhishek_1984
18,456
Posted By Abhishek_1984
Hi, I am not sure about the ksh version thing,...
Hi,
I am not sure about the ksh version thing, but it works in my system
#! /usr/bin/ksh
a=9.2
if [ $a > 0 ]
then
echo "Correct"
else
echo "incorrect"
fi

Please use code...
2,755
Posted By Abhishek_1984
you can see the test feature of unix. if [...
you can see the test feature of unix.

if [ -s file1] , it will check what you want.
1,829
Posted By Abhishek_1984
you want to enter letters one by one or user have...
you want to enter letters one by one or user have to pass list of letters?

---------- Post updated at 10:22 AM ---------- Previous update was at 10:22 AM ----------

I will write a perl program...
3,670
Posted By Abhishek_1984
My mitake instead of grep use egrep egrep...
My mitake instead of grep use egrep

egrep -f test1 test2
angie blond
mary brunnet
susan red


I am getting the requird result.

---------- Post updated at 10:17 AM ---------- Previous...
960
Posted By Abhishek_1984
Hi, Mostly binary file doesn't have "." in the...
Hi,
Mostly binary file doesn't have "." in the name. If this applies in your system, I can give command to remove such files.
7,864
Posted By Abhishek_1984
you can open you .profile file which is in your...
you can open you .profile file which is in your home directory and insert one alias stating
e.g.
alias pq="<value>" and execute it.

next time when you will use it , it will give you the value....
7,864
Posted By Abhishek_1984
It will be helpful if you can set aliases in your...
It will be helpful if you can set aliases in your .profile file.

Try it.
3,670
Posted By Abhishek_1984
Hi, Use grep with option -f grep -f...
Hi, Use grep with option -f

grep -f file1.txt file2.txt.

Hope it should work.
7,562
Posted By Abhishek_1984
Hi, Please try to run the script after...
Hi,
Please try to run the script after commenting out the line "Cannot open blade72(66)%".

I am not familiar with such statement but if it is not changing the functionality try it.
7,718
Posted By Abhishek_1984
Try this one: (Not tested) #!bin/ksh echo...
Try this one: (Not tested)
#!bin/ksh
echo "Enter the id_file_name"
read idfile
echo "Enter the inputfile name"
read infile
echo "Enter the outputfile name"
read outfile

while read line
do...
3,733
Posted By Abhishek_1984
Hi Krrishv, as per your sample file, file...
Hi Krrishv,
as per your sample file, file delimiter is , but in second row field has different values.
Confirm how you are saying that "Paese is the 7th column value.

Please help me to...
1,210
Posted By Abhishek_1984
I agree with itkamaraj but still if you want to...
I agree with itkamaraj but still if you want to try on unix.

try this one, assuming ; is delimiter
sort -t ";" -k1,2 file_test| head -10
18,025
Posted By Abhishek_1984
Try this one sed 's/:/,/g' test_sort| sort -t...
Try this one
sed 's/:/,/g' test_sort| sort -t ',' -k 2,7 |sed 's/,/:/3'|sed 's/,/:/3'> test_org_final| mv test_org_final test_sort
Showing results 1 to 13 of 13

 

Featured Tech Videos

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