Search Results

Search: Posts Made By: Muga801
4,736
Posted By Muga801
I have attached a sample file with data. Hope...
I have attached a sample file with data. Hope this helps.
4,736
Posted By Muga801
Manupulating Records in a fixed width file
I am trying to determine what would be a fast and simple way to manipulate data that comes in a fixed width format. This data has 6 segments within a record. Each record needs to written out with a...
4,248
Posted By Muga801
Thanks to everyone who replied. I was able to...
Thanks to everyone who replied. I was able to use the 1 liner posted by Guru, it worked perfectly. I appreciate all the time and effort everyone put into this.
4,248
Posted By Muga801
I am able to print the line if the the previous...
I am able to print the line if the the previous variable is different, but I am not able to:


Create a new file if the content differs
write to the existing file if they are the same


I...
4,248
Posted By Muga801
Awk script to create new file based on previous line
Need help creating a script that does the following:



Sort a file
Compare the previous line "last field" with current line "last field"
If they are the same, print output to a file
If...
3,228
Posted By Muga801
Read 2 $vars from file line by line
Need some help with the following Bourne Shell script. The script is only looping one time and then stops. The script should loop as many times as there are entries in the input file = $FILE_LIST ...
3,142
Posted By Muga801
Thanks for the reply. I solved this problem with...
Thanks for the reply. I solved this problem with the following:

DUP_FILE="/export/.../.../dup_social_$1"

while (($# > 0 ))
do
# Make sure the file exists
if [[ ! -f $1 ]]
then
print "$1:...
3,142
Posted By Muga801
Redirect output of print statement to file
:confused: I have a ksh script which gathers data from a file. I need to find a way to direct the output to a new file. The code looks something like this:


DUP_FILE=`touch...
9,300
Posted By Muga801
Need awk script to compare 2 fields in fixed length file.
Need a script that manipulates a fixed length file that will compare 2 fields in that file and if they are equal write that line to a new file.

i.e. If fields 87-93 = fields 119-125, then write...
Showing results 1 to 9 of 9

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