Can I have 2 files as in input to the awk command?
Situation is somewhat below,
File A contains number & value delimited by a space.
File B contains number as a part of a line. I am not supposed
to retrieve more than 1 number from a line.
If number from file B matches with number from... (7 Replies)
Hi All,
I need to select only those records having a non zero record in the first column of a comma delimited file.
Suppose my input file is having data like:
"0","01/08/2005 07:11:15",1,1,"Created",,"01/08/2005"
"0","01/08/2005 07:12:40",1,1,"Created",,"01/08/2005"... (2 Replies)
I want to filter records in one of my file using AWK command (or anyother command). I am using the below code
awk -F@ '$1=="0003"&&"$2==20100402" print {$0}' $INPUT > $OUTPUT
I want to pass the 0003 and 20100402 values through a variable. How can I do this?
Any help is much... (1 Reply)
Hello gurus,
I am new to "awk" and trying to break a large file having 4 million records into several output files each having half million but at the same time I want to keep the similar key records in the same output file, not to exist accross the files.
e.g. my data is like:
Row_Num,... (6 Replies)
I am a beginner in Unix. Though have been asked to write a script to filter(remove duplicates) data from a .dat file. File is very huge containig billions of records.
contents of file looks like
30002157,40342424,OTC,mart_rec,100, ,0
30002157,40343369,OTC,mart_rec,95, ,0... (6 Replies)
Hi,
I look for a awk one liner for below issue.
input file
ABC 1234 abc 12345
ABC 4567 678 XYZ
xyz ght 678
ABC 787 yyuu
ABC 789 7890 777
zxr hyip hyu
mno uii 678 776
ABC ty7 888
All lines should be started with ABC as first field. If a record has another value for 1st... (7 Replies)
Hello,
I want to filter records of a file if they fall in range associated with a second file. First the chr number (2nd col of 1st file and 1st col of 2nd file) needs to be matched. Then if the 3rd col of the first file falls within any of the ranges specified by the 2nd and 3rd cols , then... (4 Replies)
In the file below I am trying to extract a specific instance of path, if the adjacent plugin": "/rundb/api/v1/plugin/49/. Thank you :).
file
"path": "/results/analysis/output/Home/Auto_user_S5-00580-4-Medexome_65_028/plugin_out/FileExporter_out.52", "plugin": "/rundb/api/v1/plugin/49/",... (8 Replies)
The below awk will filter a list of 30,000 lines in the tab-delimited file. What I am having trouble with is adding a condition to SVTYPE=CNV
that will only print that line if CI= must be >.05 .
The other condition to add is if SVTYPE=Fusion, then in order to print that line
READ_COUNT must... (3 Replies)
Dear Experts,
I have a log file that contains a timestamp, I would like to filter record from that file based on timestamp. For example refer below file -
cat sample.txt
Jan 19 20:51:48 mukul-Vostro-14-3468 systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0)... (6 Replies)
Discussion started by: mukulverma2408
6 Replies
LEARN ABOUT SUSE
depmod
DEPMOD(8)DEPMOD(8)NAME
depmod - program to generate modules.dep and map files.
SYNOPSIS
depmod [ -b basedir ] [ -e ] [ -F System.map ] [ -n ] [ -v ] [ version ] [ -A ]
depmod [ -e ] [ -FSystem.map ] [ -n ] [ -v ] [ version ] [ filename... ]
DESCRIPTION
Linux kernel modules can provide services (called "symbols") for other modules to use (using one of the EXPORT_SYMBOL variants in the
code). If a second module uses this symbol, that second module clearly depends on the first module. These dependencies can get quite com-
plex.
depmod creates a list of module dependencies by reading each module under /lib/modules/version and determining what symbols it exports and
what symbols it needs. By default, this list is written to modules.dep, and a binary hashed version named modules.dep.bin, in the same
directory. If filenames are given on the command line, only those modules are examined (which is rarely useful unless all modules are
listed). depmod also creates a list of symbols provided by modules in the file named modules.symbols and its binary hashed version, mod-
ules.symbols.bin.
If a version is provided, then that kernel version's module directory is used rather than the current kernel version (as returned by uname
-r).
depmod will also generate various legacy map files in the output directory for use by the older hotplug infrastructure. These map files are
largely deprecated.
OPTIONS -a --all
Probe all modules. This option is enabled by default if no file names are given in the command-line.
-A --quick
This option scans to see if any modules are newer than the modules.dep file before any work is done: if not, it silently exits
rather than regenerating the files.
-b basedir --basedir basedir
If your modules are not currently in the (normal) directory /lib/modules/version, but in a staging area, you can specify a basedir
which is prepended to the directory name. This basedir is stripped from the resulting modules.dep file, so it is ready to be moved
into the normal location. Use this option if you are a distribution vendor who needs to pre-generate the meta-data files rather than
running depmod again later.
-C --config file or directory
This option overrides the default configuration file at /etc/depmod.conf (or the /etc/depmod.d/ directory if that is not found).
-e --errsyms
When combined with the -F option, this reports any symbols which a module needs which are not supplied by other modules or the ker-
nel. Normally, any symbols not provided by modules are assumed to be provided by the kernel (which should be true in a perfect
world), but this assumption can break espencially when additionally updated third party drivers are not correctly installed or were
built incorrectly.
-F --filesyms System.map
Supplied with the System.map produced when the kernel was built, this allows the -e option to report unresolved symbols.
-h --help
Print the help message and exit.
-n --dry-run
This sends the resulting modules.dep and the various map files to standard output rather than writing them into the module direc-
tory.
-v --verbose
In verbose mode, depmod will print (to stdout) all the symbols each module depends on and the module's file name which provides that
symbol.
-V --version
Show version of program and exit. See below for caveats when run on older kernels.
COPYRIGHT
This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon Masters and others.
SEE ALSO depmod.conf(5), depmod.d(5), modprobe(8), modules.dep(5)
2010-03-01 DEPMOD(8)