09-08-2008
Hi,
I have large number of txt files (some with same name) located under my home directory and subdirectories --
All files are under this directory (Administrator/home/acokayan) -- in cygwin
What I need is:
1-Find any txt files under home directory and subdirectories
2-then pipe these files to this script " gawk -F '\t' '$8 == "HP" || $8 == "IBM" || $8 == "Dell" {print $1, $4, $8 }'"
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys:
I am trying to delete multiple files in a folder with different names. Below is the script that I was trying, but it doesn't work
**************************
#!/bin/ksh
DATE=`date '+20%y%m%d'`
DEL_DIR=<dir where files have to be deleted>
let DATE2=$(($DATE - 2))
let DATE1=$(($DATE... (12 Replies)
Discussion started by: geomonap
12 Replies
2. Shell Programming and Scripting
Hi,
I have a log file that has the date in this format "2006-05-30_13:14:04,256". I need to find the time difference between two log entries in milliseconds.
How to achieve this in AWK/GAWK script? :confused: (2 Replies)
Discussion started by: omprasad
2 Replies
3. Shell Programming and Scripting
Hi Friends,
I am new for this site.i have a small query.plz let me know the command to find in which shell presently i am working. (2 Replies)
Discussion started by: pineapple
2 Replies
4. Shell Programming and Scripting
Hi all,
find command not working for me in a perticular directory.The same command is working fine in any other directory.
Following is the command i issued:
find . -type f -print
my question is , is it possbile to disable a command only for a perticular directory ??...of course... (4 Replies)
Discussion started by: panyam
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am trying to list all files in every subdirectory from a given location. However, I realise that 1 folder will have files that I am not interested in. This is using a .csh file to execute
I have tried different scripts but to no avail. My current incarnation is below. Would someone be... (4 Replies)
Discussion started by: wonderbison
4 Replies
6. Shell Programming and Scripting
Hi ,
In /home/etc/files path ran the following command
find . -name 'ABC*' | wc -l
The output of the above command is 25 as expected
In path /home path ran the following command
find . -name '/home/etc/files/ABC*' | wc -l
The output of the abvoe command is 0 .
Why the above... (3 Replies)
Discussion started by: smile689
3 Replies
7. Shell Programming and Scripting
Using grep I can easily use:
cvs log |grep -iB 10 -A 10 'date: 2013-10-30'
to display search results and 10 lines before and after. How can this be accompished using gawk? (4 Replies)
Discussion started by: metallica1973
4 Replies
8. Shell Programming and Scripting
if ]
then
leftarray=($(find . -type l -printf "%p\n" 2>/dev/null))
rightarray=($(find . -type l -printf "%l\n" 2>/dev/null))
for var in "${rightarray}"
do
maximumarray=`echo "$var" | tr -dc "/" | wc -c | tr -d " "`
index=$(($index+1))
done
#############
for numbers in... (3 Replies)
Discussion started by: xpukm
3 Replies
9. Shell Programming and Scripting
I have several of the same file names(facts) in different directories that are "|" pipe delimited and are like such:
xxx.xxx.xxx.xx1|blah|a|host|FQDN|domain||extra stuff blah1 blah2 host
xxx.xxx.xxx.xx2|blah|a|host|FQDN|domain||extra stuff blah1 blah2 host... (2 Replies)
Discussion started by: metallica1973
2 Replies
10. Shell Programming and Scripting
I've written a very simple gawk program which runs when I execute it at the POSIX shell but the corresponding '.awk' script I wrote doesn't return
any data. I'm on an HP-UX running gawk version 3.1. (w/all the defaults)
(As you can probably guess I'm a newbie going through the manual and trying... (2 Replies)
Discussion started by: RUCerius
2 Replies
LEARN ABOUT DEBIAN
mdbfontsize
mdbFontSize(5) The m17n Library mdbFontSize(5)
NAME
mdbFontSize - Font Size
DESCRIPTION
In some case, a font contains incorrect information about its size (typically in the case of a hacked TrueType font), which results in a
bad text layout when such a font is used in combination with the other fonts. To overcome this problem, the m17n library loads information
about font-size adjustment from the m17n database by the tags <font, resize>. The data is loaded as a plist of this format.
FONT-SIZE-ADJUSTMENT ::= PER-FONT *
PER-FONT ::= '(' FONT-SPEC ADJUST-RATIO ')'
FONT-SPEC ::=
'(' [ FOUNDRY FAMILY
[ WEIGHT [ STYLE [ STRETCH [ ADSTYLE ]]]]]
REGISTRY ')'
ADJUST-RATIO ::= INTEGER
FONT-SPEC is to specify properties of a font. FOUNDRY to REGISTRY are symbols corresponding to Mfoundry to Mregistry property of a font.
See m17nFont for the meaning of each property.
ADJUST-RATIO is an integer number specifying by percentage how much the font-size must be adjusted. For instance, this PER-FONT:
((devanagari-cdac) 150)
instructs the font handler of the m17n library to open a font of 1.5 times bigger than a requested size on opening a font whose registry is
'devanagari-cdac'.
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 mdbFontSize(5)