10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys,
I wrote the following function to compare two csv files column by column.
However, sometimes the input needs to be sorted before parsing it to awk.
I can do this by changing the awk arguments, but I would like to make this variable if possible. The below doesn't work since the... (3 Replies)
Discussion started by: Subbeh
3 Replies
2. Programming
Hi again and thanks to R.Singh.
One more question here.
The code works in awk. (or GAWK)
awk 'BEGIN{print "Enter your Name: ";getline name < "-";print RS "Input entered by user is: "name}'
How to display the variable name again ?
The awk script is running automaticly to the... (3 Replies)
Discussion started by: Zabo
3 Replies
3. Open Source
I have a process that requires me to read data from huge log files and find the most recent entry on a per-user basis. The number of users may fluctuate wildly month to month, so I can't code for it with names or a set number of variables to capture the data, and the files are large so I don't... (7 Replies)
Discussion started by: rbatte1
7 Replies
4. Shell Programming and Scripting
Hi,
If i were to do this an print out the file, it will show as it is in the command
$ awk '/Privilege Use/ {P=0} /Object Access/ {P=1} P' AdvancedAudit.txt
Object Access
File System No Auditing
Registry No Auditing
Kernel... (1 Reply)
Discussion started by: alvinoo
1 Replies
5. Shell Programming and Scripting
Hi Friends,
The below shell script is written by third party to create B2k_session_id.iam trying to execute this script.When i execute below script it is calling some other scripts.How to find which scripts is calling?
. `execom commfunc.com`
echo " $PRESENTATION_MODE "
if
then
echo... (1 Reply)
Discussion started by: vadlamudy
1 Replies
6. Shell Programming and Scripting
Hey guys,
I have a list of urls which I want to download and analyze with bash and lynx, I'm using this codefor each url:
downloader.sh:
#!/bin/bash
lynx -source http://domain.com/product.php?e=123456 > 123456.html
lynx -dump 123456.html > 1234567.dat
cat 123456.html | grep -A 1... (1 Reply)
Discussion started by: Johanni
1 Replies
7. Shell Programming and Scripting
Hi. I am on a Solaris box and have an awk script which calls perl via the command line:
timeTester="'"`perl -e 'use Time::Local;my $time = timelocal(10,10,10,10,10,2011
);print $time'`"'"
But I want to pass awk variables into this call. These are the example awk variables:
secondField = 10... (0 Replies)
Discussion started by: pedro6994
0 Replies
8. Shell Programming and Scripting
Hello everyone,
My requirement is that within a script I need to construct the command line exactly that it was invoked with. For example :
sh a.sh arg1 arg2 arg3 < input.txt > output.txt
Now within a.sh, I construct a file which has these contents "
sh a.sh arg1 arg2 arg3 < input.txt >... (8 Replies)
Discussion started by: hedonist12
8 Replies
9. Shell Programming and Scripting
I am trying to write a awk script that prompts user for input to set the FILENAME varable. I can get it set, but I think awk is not doing anything with it.
this is what I have so far
#!/usr/bin/nawk -f
BEGIN {
FILENAME = ""
printf "Enter name of file to check in : "
... (2 Replies)
Discussion started by: timj123
2 Replies
10. UNIX for Dummies Questions & Answers
Need some help.
I need to load data into some Oracle tables and one of the pieces of data that I need to load is the filename. This filename is distinct every single time. Basically the last 6 characters will be different with no pattern.
ex. testfile_041504_003567
To load the filename... (4 Replies)
Discussion started by: firkus
4 Replies