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: 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: If I have a file (in this example, we'll call it junk.file) with one field and that field has the value of ls, then all I have to do to run the ls com...
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: I have a script file, where I wrote:'VAR1=7; export VAR1'. Now, I'm programming in Tcl. I need the variable VAR1 to be loaded from the script file, ...
Summary: Hi, I have a file which has lines as follows. /dev/udb/raw305 /dev/udb/raw306 /dev/udb/raw307 Now i want these lines to be edited as DEVICE '/dev/udb/...
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: 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...
Summary: Actually, the set command is also available in the bourne and korn shells. The set command parses a setting setting the objects equal to the command l...
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: How to disconnect DB connectivity in a UNIX script. I have connected to a DB using sqlplus command in UNIX shell script. I need to know how to check t...
Summary: i deleted a route in routing table using route delete.. its deletes the route.. bt yet again when i use netstat to see the routing table its still th...
Summary: The above code is part of a script which starts a Weblogic server. Output of commands/scripts executed in start script are logged into LOG_FILE_NEW. ...
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: 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: Can u help me out pls. I need to pass the parameter in batch file which contain on SQL file. my.sql file has : conn system/orcl1012#@orcl10 create use...
Summary: Hi There. I am running a unix script that ftp's into an as/400 i-series server and downloads files into a unix filesystem. These files are all suffix...
Summary: Hi, I have a file which has data as path/aa1.txt path/aa2.txt,...(each in separate lines) I want a unix script to sort this file in order. It is not w...
Summary: Hi All, I want a shell script which need to monitor the log file and take the last 10 min update data and put it into a file. Please help me, Please ...
Summary: Hello there. Does anyone here know how to configure a USB flash drive to allow one to install an ISO image which may then be used to boot from? I ha...
Summary: I'm wondering of how to write a script, which would be run only once. It probably cannot harm (a lot) to run it twice, but better is to prevent runnin...