Computing.Net > Forums > Unix > Search Results

Quick Links

Computing.Net Solution Center
Desktop Access to Search
Ask a New Question

Sponsored Results for: ksh, for loop, awk, Error

Ads by Google


Show Within: One Month | One Year | Forever
Search Results for: ksh, for loop, awk, Error

Product Search Results


Results 1 - 25 of 29

[higher confidence] - higher confidence, [lower confidence] - lower confidence

file parsing
    Summary: One way is to use awk to check if field 2 matches string "two": #!/bin/ksh var="two" awk '{ if(match($2,v1) > 0) print $0 }' v1=${var} da...

UNIX..basic shell script help
    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 ...

How to delete lines in a file based on string
    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 ...

Compare two files using awk or sed, add value
    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...

how to seach and replace a value using shell
    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...

command output running
    Summary: Often found myself writing commands similar to this: <whatever command> | awk -F"a=" ' { print $2 } ' | awk ' { print "a=" $1 } ' > temp.sh This to...

subtract single value using AWK
    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...

Split large xml file
    Summary: awk '/<tele/{close("row"count".xml");count++}count{f="row"count".xml";print $0 > f}' filename.xml Worked for me ...

Sorting issues
    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...

How to disconnect DB in a UNIX script
    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...

How to use sed editor in a shell script
    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...

Help in Substitution method
    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...

count the occurence of a char in a string
    Summary: Hi: The internal awk command gsub function , substitutue globally function, returns the number of substutuions made. I'm using Solaris nawk: #!/bin/ks...

Add header and footer
    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...

printing all lines after grep using awk
    Summary: You're right Ghost, I missed the question just a little there. ...

How to get latest updated file in a folder
    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...

Scripting Problem
    Summary: for x in *.DZ12504 do mv $x `echo $x|sed "s/\.DZ12504/\.txt/g"`.txt done Just a guess, can't validate exactness here ;) ...

deleting a route in UNIX
    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:...

Separating the Columns based on ColumnSize
    Summary: echo xxx | awk '{ print substr($1,1,3) "~" substr($2,1,2) "~" $3 }' AWK by defaults treats all inputs as text ...

Read/Search file being written to
    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 ...

Get a week number from a date.
    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....

Add file name end of line in every row
    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...

Shell Script
    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...

I need a help from you. i am new to shell scr
    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 ...

Parse a filename
    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...

Jump To: 1 | 2

Sponsored Results for: ksh, for loop, awk, Error

Ads by Google