Search Results

Search: Posts Made By: sandeep_hi
2,239
Posted By sandeep_hi
AWK: How to avoid System
How can we avoid the use of system command inside awk program?
Is there any alternative way in awk programming for removing files, sorting files and to find the differences between two file without...
12,061
Posted By sandeep_hi
Actually i am using cygwin and the problem was in...
Actually i am using cygwin and the problem was in the editor(notepad) which was not displaying it correctly. When i opened the same file in wordpad the display was as desired.

Thanks
Sandeep
2,687
Posted By sandeep_hi
Increase Performance: AWK
I have written a code using AWK & sed to compare two files.
The structure of the files is like this"

Format is this:
<bit code> <file code> <string>
Follwoed by any numbers of properties lines...
12,061
Posted By sandeep_hi
echo " san \n" gives the following output ...
echo " san \n"
gives the following output

san \n

but when we use echo -e " san \n" it gives the desired output on the screen but while inserting into the file it doesn't work.

Please help...
12,061
Posted By sandeep_hi
How to add a new line into a file
I want to insert a new line character inside the file between these two record entries "san" and "man". How can this be done

echo " san " >"C:/\Test/\Output/\Neme"
echo " man "...
17,799
Posted By sandeep_hi
Thanks alot Please help
Thanks alot

Please help
17,799
Posted By sandeep_hi
Using a variable in File Path
How can i add a varying filename at the end of a constant file path?

Eg:
Variable containing file name is varfile (say varfile=newfile)
File path is C:\Test\

I want to access newfile which...
5,622
Posted By sandeep_hi
Awk:Segementation Fault
I am using awk command to sort a large file (7MB) and compare two files of
7 MB. The code is working fine for smaller files. But it gives following error for larger files
Segmentation fault...
3,163
Posted By sandeep_hi
But i still have 2 doubts. 1.) How to access...
But i still have 2 doubts.
1.) How to access folders or path which contains spaces in their names like this:

C:\Documents and Settings\san deep\Desktop\File1



2.) Suppose i want to access a...
3,163
Posted By sandeep_hi
I got the solution it can be done like this ...
I got the solution
it can be done like this
v1="C:/\Test/\Ad.A"


Thanks
Sandeep
4,486
Posted By sandeep_hi
Thank you so much . Regards sandeep
Thank you so much .

Regards
sandeep
3,163
Posted By sandeep_hi
Problem with File path
How to pass a file path to open a file?
I am using cygwin.
I want to open a file from a particular path, say C:\Test\File1,. This file path is stored in a variable.
I am able to cat a file like...
4,486
Posted By sandeep_hi
Thnaks alot !!! I could not understand this...
Thnaks alot !!!

I could not understand this line of code can u please explain me what exactly it is meant for and how is it happening:
4,486
Posted By sandeep_hi
It is not printing MEGAmismatch at all some...
It is not printing MEGAmismatch at all some problem is there.
4,486
Posted By sandeep_hi
gawk HELP
I have to compare records in two files. It can be done using gawk/awk but i am unable to do it. Please help me


File1

ABAAAAAB BC asa sa
ABAAABAA BC bsa sm
ABBBBAAA BC bxz sa
ABAAABAB BC...
1,535
Posted By sandeep_hi
Thank you ..that solves my problem
Thank you ..that solves my problem
1,535
Posted By sandeep_hi
awk help
Can any one tell me why isn't this code working??

echo "Enter string1 and string2"
read str1
read str2
awk 'BEGIN{}
{
for (i=1; i<=23; i++)
{
if(substr(str1,"$i",1) != substr(str2,"$i",1))...
2,151
Posted By sandeep_hi
Hi Glenn While using cmp i had a problem. If...
Hi Glenn

While using cmp i had a problem. If a bit postion value is missing in one file then after that missing bit postions all bits henceforth are mismatching.This results in outputing all the...
6,156
Posted By sandeep_hi
String Compariosn: Use of If and OR
How to use OR with If for string comparison??

What is wrong in these two codes??

1.
if test $1 != "SO" OR $1 != "NO"
then
echo "Invalid"
else
echo "Valid"

2.
if(( $1 != "SO" || $1 !=...
2,151
Posted By sandeep_hi
Thank you Glenn and Jim!! That has solved my...
Thank you Glenn and Jim!!
That has solved my problem

Thanks & Regards
Sandeep
2,151
Posted By sandeep_hi
Yes Glenn i have tried that but how to get exact...
Yes Glenn i have tried that but how to get exact bit postion from the output of diff.
I have been trying to solve this since yesterday but could not make through it as i am new to shell scripting i...
2,151
Posted By sandeep_hi
FILE Comaprison
Is it possible to comapre 2 files bit by bit and output the following things:
1. Bit position of mismatch in each line
2. Missing records in either of the two files


Note 3rd column in both the...
10,195
Posted By sandeep_hi
Thank you so much Glenn... Came to know about...
Thank you so much Glenn...
Came to know about join from you
10,195
Posted By sandeep_hi
FILE:Adding new column
Is it possible to add a new column in a file by matching a key element in second file ?

File 1
2 a
3 b
4 d
5 g
6 j
7 m


File 2

4 hjjjj
5 aaa
6 sasa
7 dsds
2 dsdf
3 fdsfg
3,290
Posted By sandeep_hi
Hi Jim ! Thanks alot... Please tell me...
Hi Jim !

Thanks alot...

Please tell me if you have any links for Shell Script beginer's

Regards
Sandeep
Showing results 1 to 25 of 29

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