Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Dvaderanakin

    passing special character in awk

    Hi, Found out already. Thanks anyway. sed -n -e '=;p' filename
  2. Dvaderanakin

    passing special character in awk

    Hi marsd, I got the output. To make full use of this i need to print the whole data with those numbering. How do you print the whole content of the data file with sed. awk uses print $0 Since i'm not familiar with sed, how do you do it. Tried using awk commands but maybe i' doing something...
  3. Dvaderanakin

    passing special character in awk

    I will try it out first. Thanks marsd.
  4. Dvaderanakin

    passing special character in awk

    I'm not quite sure what you're trying to do here. Are you telling me that i have to modify the data file?
  5. Dvaderanakin

    passing special character in awk

    Another related question. More specifix search method. If you search a field in between Record (1) and End of Record (1)......how do you capture or display the Record #?? Let say u search CALL_ID = 00000000 and DURATION = 0005 field and u want to know which Record that actually contain this...
  6. Dvaderanakin

    passing special character in awk

    Thanks marsd. It works but not perfect. For example:- if you enter start:1 end:4 for sample file below 1 2 3 4 5 6 10 111 The output would come out as 1 2 3 4 10 111 It will search all the pattern with "1" anyway, thanks for your help.
  7. Dvaderanakin

    passing special character in awk

    Hi marsd, I'm not familiar with sed commands. Can you please show me how you code this in sed? Thanks for you help!!
  8. Dvaderanakin

    passing special character in awk

    Sorry the script should look like this:- echo "Please enter 2 fields name:" read FILE1 read FILE2 file1=$1 awk '$1 ~ /'"$FILE1"'/' $DIR > tmp awk '$1 ~ /'"$FILE2"'/' $DIR >> tmp echo "Press a to display the the content between the 2 fields entered." read...
  9. Dvaderanakin

    passing special character in awk

    How do awk recognize user input such as "Record (1)"?? I have a script that search an inputed fields by the user. The script search the fields and display what's in between the entered fields. Sample data:- Record (1) "ML_REC" "REC_SEQ_NUMBER" =...

Part and Inventory Search

Back
Top