Summary: I am new to Unix and working on some simple shell scripts..Q. Create a script file that sums the numbers passed to it as arguments on the command ...
Summary: Hi, I have two files which have text as follows file1 a b c file 2 a 96.5 b 93.2 c 92.1 d 97.3 Now i want to search all the strings in file 1 and ...
Summary: since you asked for it, this is for the first part, using gawk awk -F"," 'FNR==NR{ a[$2] = $NF next } ($2 in a){ print $0,a[$2] } ' OFS="," file...
Summary: The decimals are the hardest part, since maths on unix tend to be non-decimal based. Let's start with non-decimals: You can get the values of those le...
Summary: I would like to subtract a single value to a file using awk. It has been quite difficult to figure out how ? What I wanted to do is : I have a file th...
Summary: I did a variation of what tvc suggested. If you want to keep the original text, you need to do more than strip out the numbers. Here is what the fol...
Summary: Hi.. Thanks for your response!! I was already trying with the EOT to disonnect from DB in my script but i do get syntax error. I've just pasted with t...
Summary: Nails, thanks for the response. I have worked on it yesterday and found that the following command works. sed -e "s/^/DEVICE\'/" -e "s&$&\'"${3},"&" U...
Summary: Hi Gurus this is working finee with tested values #!/bin/ksh V_DATE="2007-11-30" V_ID=789 V_NAME="john_${V_ID}_has_${V_DATE}_s" FILE_NAME=`echo ${V_NA...
Summary: Hi: The internal awk command gsub function , substitutue globally function, returns the number of substutuions made. I'm using Solaris nawk: #!/bin/ks...
Summary: Hi Gurus, I use below script to add header and trailer to files in a folder. When executed, it is removing the " of 4.5 & yyy.xsd from the header. Ca...
Summary: Thanks for the help, appreciate if you pls let me know - I need to copy files from the existing non-empty folder to existing empty folder (created rec...
Summary: Which route are you trying to delete, so that is can not be deleted. E.g. If your Unix box has 2 network cards, there are also 2 routes for each card:...
Summary: There is a process writing to LOG_FILE_NEW. The following is a piece of code to rename LOG_FILE_NEW to LOG_FILE once you get a result (either RUNNING ...
Summary: Hi frnds, I donno if I amputting in the rt forum or not.But i am trying to get a week number from a given date. This code by a member on computing....
Summary: Hi I try to add file name in end of the line of every row.Its work one file. but same code is not work other same type of file File Data: A,VF-NL...
Summary: Hi nails, I am sorry for that.. Please see the my below log file format [11/16/09 16:07:55:680 EST] 0000002b WSChannelFram A CHFW0020I: The Transport...
Summary: I need a help from you. i am new to shell scripting. please help on this script. i want a script monitor the log file and take the last 10 min update ...
Summary: One way is to use the set command to parse the string. Executing the set command resets the command line arguments. Therefore, save the command line...