Summary: I need a script to filter out records (50,000 plus) from two arrays using a field column and outputs to a new file. Example. File 1: AAAA xxxxx BBBB x...
Summary: ghostdog that's a neat trick. I'll take a shot at explaining it: awk 'FNR==NR{_[++d]=$0;next}{print _[FNR],$4,$5}' file1 file2 First, two definitions:...
Summary: I need to read a specific part of an input file and assign the data as variables until it reaches the "END". So, for captain coke, I need rum, 2, cok...
Summary: I have some broblem about merging two files. this is my perl code which is not completed. $filename = "delete.txt"; unless ( -e $filename ) { print ...
Summary: I need to run the following command in a script, but I need to replace the 603528 with an input file. bpmedialist -ev 603528|grep 'Server Host'|awk '{...
Summary: Hi. I would like to be able to update only one line in a file that matches a key using sed, but I can't seem to get this (the key is right at the begi...
Summary: Hi, I have a perl script that is almost complete. I just need to replace ,, with ,'',. I basically need two single quotes in place of an empty field...
Summary: I need to eliminate duplicates in a text file, and I'm thinking to use Awk, but am a little unsure how to proceed. My input file is like this: Line1:...
Summary: I have an input file containing 2 fields: I need to sort them out by last three char of second field and create an individual file. 68.152.146.118 c...
Summary: Hi, I need to combine 2 files. Requirement is - if the last line of file 1 starts with '99' replace that line with the data ( line 2 through end of...
Summary: Best choice would be for that file to have something besides spaces for the field delimeters (comma, semicolon, bar character). Your only problem rig...
Summary: You may need to define mapping rules to include all matching rules which will be used in the script, for example, US::UNITED STATES::USA. :: is used a...
Summary: Folks, I have a while loop that is taking input from a file while read variable do . . . done < filename.txt However during the loop I am trying ...
Summary: It's been a while since I wrote a script, so I thought I would ask for help. Here is my dilemma. I want to write a script that will do the following...
Summary: You do not need a loop to process the records in a file (or files). However, you might want control-break logic to do something when your input file...
Summary: I am using a ksh script to parse/analyze some text files - files that have records that are over multiple lines. I have used sed and awk in the past; ...
Summary: Take the simple input file: 5BBBBBBBBBBBBBBB1 5BBBBBBBBBBBBBBB2 2BBBBBBBBBBBBBBB1 2BBBBBBBBBBBBBBB3 2BBBBBBBBBBBBBBB2 I need to sort this on position ...
Summary: Hi Jean or You! I read in the man page that awk has a maximum record size that awk processes is 10KB. So I'am cutting down the first input file. I get...
Summary: I'm basically looking for a rough strategy and the commands that can be used to achieve them. For example, I'll need to split it into:- 1. Get list of...
Summary: Hi, I have a file with duplicate records in it. I want to identify the duplicate records and put them into a separate file. Please let me know how to ...
Summary: I need to sort an input file that the user can specify. 1: Ask the user for the name of the file 2: Verify that the file exists and is readable 3: is...
Summary: Ghostdog, Is it alright if the contents of the file is not in order? This is the actually sequence of the input file BSC2|AIA1B10|HAFID11|5|3|3|BOTH|N...
Summary: My script works this way:- rm -f $1/$2 filepath=`/usr/bin/ls -tr $1 | /usr/bin/grep 'USSD_successrate_gt'` if [ "$filepath" != "" ] then for ...