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 TouchToneTommy 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. unixwhoopie

    nfs mount in unix

    Hello, How do you create an nfs mount in hp-ux? Is there any functional difference on how it works in Linux? Regards
  2. unixwhoopie

    locale setting issues

    Hello, I am having an issue setting the locale. This issue is only as root, and not as another user, which means there is something overwriting as root user. when I do locale as root, it gives me the following: LANG=en_US.utf8 LC_CTYPE="C" LC_COLLATE="C" LC_MONETARY="C" LC_NUMERIC="C"...
  3. unixwhoopie

    locale in HP-UX

    Hello, when I do locale in HP-UX, I see the following: # locale LANG= LC_CTYPE="C" LC_COLLATE="C" LC_MONETARY="C" LC_NUMERIC="C" LC_TIME="C" LC_MESSAGES="C" LC_ALL= Does this mean no locale set? Is there a default set to English? Also, how can i set this to japanese in SJIS? THANKS Srikanth
  4. unixwhoopie

    replacing tab with comma and enclosing double quotes

    Hello, I am trying to the following. can you let me know how? 1. I have a tab delimited file. I need to enclose the first field in double quotes. 2. I need to replace the tab with comma. Thanks for the help.
  5. unixwhoopie

    partitioning and bulk processing

    I know Informatica 7.1.3 has bulk processing capability. When you create partitions in a session, do you also need to create partition on the actual Oracle source table or does the session take care of it? Also what about parallel processing in Informatica? How does it work? Does it have to be...
  6. unixwhoopie

    number of cpu's

    How do I specify a process to use a specific number of CPU's? Also, how can I kill all instances of a process for a specific user. Kill -9 PID would kill one instance but I want to kill all instances. thanks
  7. unixwhoopie

    quotes after a certain position

    How do I put quotes after the 2nd comma? if the line reads - 12,34,need quotes,5 I want it to read as - 12,34,'need quotes',5 thanks
  8. unixwhoopie

    sed syntax help

    I am trying to understand sed but this seems to be very confusing to me. What is the best way to learn sed? I am trying to debug a program and not sure what the following lines of code mean - export ARGS=`echo $line | sed 's/,/" "/g'` ARGS=`echo $ARGS | sed 's/^/"/'` ARGS=`echo $ARGS | sed...
  9. unixwhoopie

    format output from diff utility

    The output generated from diff is not easy to understand for a common user. what is the quickest way to format it so the user will be able to understand? I am comparing 2 db schemas and printing the table info using diff. Thanks
  10. unixwhoopie

    grep under subfolders

    If I have main folder called /var/opt/dshs and there are several subfolders like A1, A2, A3,.... The complete dir structure is /var/opt/dshs/A1/input/myfile.txt This myfile.txt is under each folder, A1, A2,... I want to grep a specific word from each of these files myfile.txt. Do I have to...
  11. unixwhoopie

    grep text in a binary file

    I am trying to do a grep on a file, but I am always getting this message - Binary file tmp.log matches. I am giving the following command to search for 3038 and display all the lines in the file - grep -40 '3038' tmp.log I am kind of new to grep and trying to figure it out... thanks
  12. unixwhoopie

    email using elm command

    I am using elm command to email a file from my script. This file is in regular format and not in a zipped format. However, the file goes in the body of the email instead of as a seperate attachment. elm -s "Test Mail" my_email@yahoo.com < /dir/file.txt How can I send it as a seperate...
  13. unixwhoopie

    Zip attachment does not work in email

    I am trying to send out an email that has a zipped attachment. But the attachment is going in the body of the mail instead of a seperate attachment. I am using gzip to zip the file. (cat myrep.txt; uuencode $attach myrep1.tar.gz) | mailx -s "${sub}" "${email}" The email is going to the...
  14. unixwhoopie

    sed command

    I am trying to use sed command to search for a character in a text file and replace all the instances with another character. Can someone give me an example? Thanks
  15. unixwhoopie

    grep records from text files

    We have records in a text file in the file format: I only want to grep records where the last but one field is not null. How do I grep these records? C~234~AS~~~~~~~~~40003~~ (I want to grep this line) C~234~AS~~~~~~~~~~~~ (I dont want to grep this) A~234~AS~~~~~~~~~40003~~ (I dont want to...
  16. unixwhoopie

    gunzip - not read from a terminal error

    I have a .dat.gz file. When I use 'gunzip' command on the prompt, it works just fine. The file is unzipped as .dat However when I use the same command from a script, it gives the following error - gunzip: compressed data not read from a terminal. Use -f to force decompression. Any ideas? I...
  17. unixwhoopie

    problem unzipping a file

    Hello gurus, here is the situation. I am receiving several files from a remote server through an automated process. One of these files is zipped. It initially has a .dat.gz extension. I know there is 'gunzip' command to unzip and read the files. However, when this file arrives into our server...
  18. unixwhoopie

    edit file after it is generated

    I have an external system create a file which contains the number of lines in the file. I need to make sure that this number is correct. So as soon as the file is created, I need to count the number of lines in the file and edit it if the information in the file is not correct. Any ideas how to...
  19. unixwhoopie

    problems with chown

    my script is kicked off by an external process. so whenever a log file is created, it is created with the external process' owner id, thus making it difficult for me to read the file. I tried chown and also copying the file onto a seperate dir. No help so far. Any ideas? thanks
  20. unixwhoopie

    number of files in a directory

    How do I get the number of files in a directory? I want to delete files in a directory but before that I need to make sure there are files. Thanks

Part and Inventory Search

Back
Top