Search Results

Search: Posts Made By: ganesh123
2,751
Posted By ganesh123
Its working now thanks #!/usr/bin/sh ...
Its working now thanks


#!/usr/bin/sh

source=/home/dev4rice/naveen/test1
target=/home/dev4rice/naveen/test2
file_name=$source/text.txt
target_file=$target/text.txt



if [ -e $file_name...
2,751
Posted By ganesh123
I fixed as per your suggestions but still getting...
I fixed as per your suggestions but still getting following error -

$ ./copy_file.sh
./copy_file.sh[8]: [-f: not found.
cp: /home/dev4rice/naveen/test2/text.txt: A file or directory in the path...
2,751
Posted By ganesh123
Simple Shell Script
Hello Friends,

I am writing a shell script which will grab a file if it exists and copies it to another folder and will append with current date. I have written but gives me error, plz help:...
1,817
Posted By ganesh123
Thanks once again
Thanks once again
5,403
Posted By ganesh123
The Hex value of TM is "99" according to MS and...
The Hex value of TM is "99" according to MS and "D4" according to ISO-8879
5,403
Posted By ganesh123
Append with TM symbol
I have a file with delimiter ";" and 2 columns for eg:


Transparent; ScotchPro™

If you see carefully you can see a special character "TM" at the end of data which is not showing up when I...
1,817
Posted By ganesh123
Thank you guys.
Thank you guys.
1,817
Posted By ganesh123
awk -F "|" {if ($1 != "" && $2 != "") {print $0}...
awk -F "|" {if ($1 != "" && $2 != "") {print $0} else {next} };
END

Plz help if its wrong... Thanks
1,817
Posted By ganesh123
Strange Logic
I am trying to read a file and skip few records based upon the following two columns. Pipe delimiter used between the two columns.
Column1|Column2
Property|CutOff
Target|11111
Min|9999 ...
6,758
Posted By ganesh123
Thankyou everybody for your precious time.
Thankyou everybody for your precious time.
6,758
Posted By ganesh123
thanks for reply but I guess using diff will also...
thanks for reply but I guess using diff will also give the records which are present in old file and not in new file.

I just want to capture the records not present in old file and present in new...
6,758
Posted By ganesh123
Compare 2 flat files
Hi Gurus,

I searched the forum but didnt get much info.
I want to compare 2 files.

1)Newfile comes today with
2)Old file of previous day.

The files are same ,just the new files might have...
5,755
Posted By ganesh123
Anbu23 can you please explain the code sed...
Anbu23 can you please explain the code

sed '1,3 d' f | sed -e :a -e '$d;N;2,4ba' -e 'P;D'

I am confused.
5,755
Posted By ganesh123
Thanks anbu
Thanks anbu
5,755
Posted By ganesh123
Strip 3 header lines and 4 trailer lines
Hello friends,

I want to remove 3 header lines and 4 trailer lines,

I am using following , is it correct ?



sed '1,3d';'4,$ d' filename
10,410
Posted By ganesh123
thanks anbu
thanks anbu
10,410
Posted By ganesh123
Counting the max length of string
Hi all,

I have a flat file of 1000 rows. I want to check the length of the 5th column. The one having the longest length , I want to set it as DEFINED PARAMETER.
So later I can check others with...
1,450
Posted By ganesh123
Moreover I want to add "Sequence" column in the...
Moreover I want to add "Sequence" column in the file as well after the script is completed.
1,450
Posted By ganesh123
Thank you wassem. But can you please explain the...
Thank you wassem. But can you please explain the IF condition you used ? Please
1,450
Posted By ganesh123
Awk help
Hi everybody, I am extracting two columns named SAMPLE_ID and TEST from a flat file. Now i need to do a validation based on the condition:

If SAMPLE_ID<>Previous_SAMPLEID or TEST<>PREVIOUS_TEST...
5,231
Posted By ganesh123
I dont get you awk. Becoz I have to get the...
I dont get you awk.

Becoz I have to get the file from my D: drive of my client PC which is on Windows. :confused:
5,231
Posted By ganesh123
Thank you awk.
Thank you awk.
5,231
Posted By ganesh123
Reverse FTP
Hi Everybody,

I want to write a script in unix which will automatically FTP a .txt file from my client machine D: drive(Windows)

That is I want to FTP a file from my PC to UNIX box but this...
4,346
Posted By ganesh123
Thank you to all gurus for your time.
Thank you to all gurus for your time.
4,346
Posted By ganesh123
Records Duplicate
Hi Everyone,

I have a flat file of 1000 unique records like following : For eg

Andy,Flower,201-987-0000,12/23/01
Andrew,Smith,101-387-3400,11/12/01
Ani,Ross,401-757-8640,10/4/01...
Showing results 1 to 25 of 27

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