Summary: Thanks, its greatly appreciated. I had to change the "print" to "echo" in the shell script and it worked fine, apart from inserting the current fil...
Summary: Hello, I want to give back the first 3 letters of my hostname to a variable in a shell script like this principle: N=awk'{printf substr(`uname -n`,1,3...
Summary: Here's my problem. I'm trying to read a network tunable setting , verify it is the right setting and then show it as pass or fail by assigning it a va...
Summary: Hi! I'm trying to use my shell script variables in my awk-line. Is not working! month3 is my variable and i'm aware that I can't use the $-prefix in a...
Summary: hi , I have a problem in Korn shell script(in dtksh) my program is like that...... #!/usr/dt/bin/dtksh awk ' BEGIN { FS = ":"; # print '$1','$2...
Summary: Thank you so much for the help. I would like to know what is the purpose of ~, :space: in the awk command. I really appreciate if you could give me b...
Summary: hi, i have an entry: FileName=/home/mqm/adr10098/sample.dat in a file. I want to open this file, search for "FileName=" and then replace the value wit...
Summary: In shell script sed or awk command, can I use hexadecimal code for substitution? I want to perform the following: Input file: Line1 Line2 Line3 Line4...
Summary: I have a text data file that has spaces between fields and looks something like:- tom mazda keith ford mary ford I'm trying to write a shell script th...
Summary: If the .csv file is reasonably small (say under 100K) try reading it from PL/SQL using UTL_FILE. Otherwise use SQL*Loader, which is very fast but does...
Summary: Hi, I am trying to read a file which has two fields i.e tab seperated. Each line has an OldImage Name and a NewImage Name. Can anyone help me to write...
Summary: HI, IAM A UNIX BEGINNER AND IAM A COMPLETELY LOST AS TO WHAT THIS PART OF MY SHELL SCRIPT MEANS? (ls|while read xx do if [ -f $xx ] ;then (FULL ...
Summary: #!/bin/csh echo "total arguments $#argv" # check the command line arguments. If they are less than 3 then # show the usage message and exit if ( ${#ar...
Summary: How do i transfer the value from a shell script to awk script... for example: echo "blah.. blah.." read x echo `ls -l | awk '{if (NR=x) print $9}' i'm...
Summary: Thanks Nail.. I would like the output to be printed in the format mmddyyyy..Can we achieve this from the awk command? Thanks again eg.. 02282006-forma...
Summary: awk does not come with ksh. It is a unix (and now DOS/Windows/etc...) utility and is its own interpreter. awk is a great tool and does a good job at...
Summary: The following script perhaps uses awk and system commands Write a simple shell script to do the following. a) Read a set of commands specified in a fi...
Summary: Hi i've been trying to write shell script with awk that I want to search a substring with variable of shell script In old one ,I wrote awk that fi...
Summary: Hi iam new to scripting .I need a shell script that will run on the oracle server to perform the extract using SQLPlus. Use grep, sed, tr, awk, etc to...
Summary: Write a shell script file called letter1. After running the script, it will prompt the user, for an English alphabet, confirm the alphabet chosen, and...
Summary: Shell Scripting -- Variables In the main script i have exported the variable and accessing it in another file but when i echo the value the value of t...
Summary: Thanks Jerry and Finnbarr. I have both AIX and HP-UX system to work on. Does anyone know how to uninstall java software on AIX or HP-UX box by using...
Summary: I'm a student, and I have a hard time completing this term assignment, if anyone could help me I would appreciate it very much. I did my best to do i...
Summary: I want to drive a shell script that will search a word in a text file and then display the line contains that word. For example: I have the file name...
Summary: Hi, I'm trying to write one shell script which will get the first entry form an ascii file whose entries looks like : 121212 xxxxxx zzzzz The crite...