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 Mike Lewis 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. jlmilton

    need to add 2 commas to file with many records

    Any thoughts on how I would get a space between the first and second field? Thanks,
  2. jlmilton

    need to add 2 commas to file with many records

    UT11111 Smith Joe "CN=XXX UT11111 OU=Something OU=XXX OU=Somewhere OU=Something O=Something" I have a file with many records like this. I need to insert a comma between the first and second field and the second and third field only so it will look like: UT11111,Smith Joe, "CN=XXX...
  3. jlmilton

    Need Scripting Help

    The version of nawk I am using does not produce anything. I downloaded the gnu version of grep and the command is hanging: sed -n 's/.*,CN=\([^,]*\).*/^\1 /p' editable_langs_new | /usr/local/bin/grep -f - user_truck_list >user_truck_list_new Any help would be appreciated.
  4. jlmilton

    Need Scripting Help

    The nawk command runs but produces a 0 byte file when piped with >>final at the end. If I run it without piping it to a file it just returns to a command prompt.
  5. jlmilton

    Need Scripting Help

    I get syntax errors with the awk statement and the lovely bailing out at line ... On the sed command, my grep does not have a -f option. This is Sun 2.9.
  6. jlmilton

    Need Scripting Help

    My use of awk is rather limited. I have tried awk -F "CN=M" ' {print $2}' editable_langs_new >/tmp/test but so far, nothing is working. I'll keep tryping. Thanks for the help.
  7. jlmilton

    Need Scripting Help

    I have 2 files with many rows: First is called Edit_new and has records like: CN=XXX,CN=M123456,OU=XXX,OU=XXX,OU=XXX,O=XXX,en-du CN=XXX,CN=M654321,OU=XXX,OU=XXX,OU=XXX,O=XXX,en-vu Second is:user_list and has records like: M123456 John Brown M804420 Alice Cooper M654321 Joe Bell What I need is...

Part and Inventory Search

Back
Top