Sponsored Content
Top Forums Shell Programming and Scripting extracting information from multiple files Post 302571084 by houkto on Sunday 6th of November 2011 04:38:56 PM
Old 11-06-2011
Thanks a lot ahmed i will give it ago and let you know.

Happy Eid

cheers

---------- Post updated at 04:38 PM ---------- Previous update was at 03:11 AM ----------

Hi again,

I tried the command above, and found there is No Info found for the list file. However, this is not the case when I take a word from the list file and do grep Gene1 file1.txt and I got results (The whole strings that I want). Also I wanted to know if I can put the result into an output file since the results will be too much to copy the displayed resutls. In addition when i get no info found for a specific file e.g
-
Gene000055930
File : 1

No info found
File : 2

No info found
File : 3

No info found
-
Is there a way I can modify the File : 1 into No resutls from "Mutation point of view"

cheers
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting information from Config files /text processing

Hello All, This is my first post on this forums, which I consider one of the best of its kind. The reason for my post is that I want to export some information form Nagios configuration files to a DB. I know that there are other tools available to do this, like NDO, monarch, etc... But I want to... (3 Replies)
Discussion started by: oconmx
3 Replies

2. UNIX for Advanced & Expert Users

Extracting files with multiple links-perl

i want to write a perl script that gets/displays all those files having multiple links (in current directory) (4 Replies)
Discussion started by: guptesanket
4 Replies

3. UNIX for Dummies Questions & Answers

Extracting columns from multiple files with awk

hi everyone! I already posted it in scripts, I'm sorry, it's doubled I'd like to extract a single column from 5 different files and put them together in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is: awk 'NR==FNR{a=$2; next}... (1 Reply)
Discussion started by: orcaja
1 Replies

4. Shell Programming and Scripting

Extracting columns from multiple files with awk

hi everyone! I'd like to extract a single column from 5 different files and put them together in an output file. I saw a similar question for 2 input files, and the line of code workd very well, the code is: awk 'NR==FNR{a=$2; next} {print a, $2}' file1 file2 I added the file3, file4 and... (10 Replies)
Discussion started by: orcaja
10 Replies

5. Shell Programming and Scripting

Merging information from multiple files to a single file

Hello, I am new to unix and need help with a problem. I have 2 files each containing multiple columns of information ie; File 1 : A B C D E 1 2 3 4 5 File 2 : F G 6 7 I would like to merge the information from File 2 to File 1 so that the data reads as follows; File 1: A... (4 Replies)
Discussion started by: crunchie
4 Replies

6. Shell Programming and Scripting

Extracting/condensing text from multiple files to multiples files

Hi Everyone, I'm really new to all this so I'm really hoping someone can help. I have a directory with ~1000 lists from which I want to extract lines from and write to new files. For simplicity lets say they are shopping lists and I want to write out the lines corresponding to apples to a new... (2 Replies)
Discussion started by: born2phase
2 Replies

7. Shell Programming and Scripting

Extracting lines based on identifiers into multiple files respectively

consider the following is the contents of the file cat 11.sql drop procedure if exists hoop1 ; Delimiter $$ CREATE PROCEDURE hoop1(id int) BEGIN END $$ Delimiter ; . . . . drop procedure if exists hoop2; Delimiter $$ CREATE PROCEDURE hoop2(id int) BEGIN END $$ (8 Replies)
Discussion started by: vivek d r
8 Replies

8. Shell Programming and Scripting

search information in multiple files and save in new files

hi everyone, im stuck in here with shell :) can you help me?? i have a directory with alot files (genbank files ... all ended in .gbk ) more than 1000 for sure ... and i want to read each one of them and search for some information and if i found the right one i save in new file with new... (6 Replies)
Discussion started by: andreia
6 Replies

9. Shell Programming and Scripting

Extracting non multiple files via script

Hi, Can somebody help me? I am testing a demo with the given function PATH525="/uscms/home/emily/READme/extra/data/" TEMP=temp FileName=DataFileName CopyFiles() { # PATHNAME="$paths" ... (9 Replies)
Discussion started by: emily
9 Replies

10. Shell Programming and Scripting

Extracting specific files from multiple .tgz files

Hey, I have number of .tgz files and want to extract the file with the ending *results.txt from each one. I have tried for file in *.tgz; do tar --wildcards -zxf $file *results.txt; doneas well as list=$(ls *.tgz) for i in $list; do tar --wildcards -zxvf $i *.results.txt; done... (1 Reply)
Discussion started by: jfern
1 Replies
gnomevfs-info(1)						   User Commands						  gnomevfs-info(1)

NAME
gnomevfs-info - display a list of file information SYNOPSIS
gnomevfs-info URI DESCRIPTION
gnomevfs-info is obsolete. It has been superseded by gvfs-info. See gvfs-info(1). gnomevfs-info displays the following information about a file: o Name: filename o Type: [Regular|Directory] o MIME type: mime-type o Size: file-size o Blocks: #blocks o I/O block size: block-size o Local: [YES|NO] o SUID: [YES|NO] o SGID: [YES|NO] o Sticky: [YES|NO] o Permissions: octal permissions o Link count: #links o UID: owner-uid o GID: owner-gid o Access time: date-and-time o Modification time: date-and-time o Change time: date-and-time o Device #: device# o Inode #: inode# o Readable: [YES|NO] o Writable: [YES|NO] o Executable: [YES|NO] OPERANDS
The following operands are supported: URI Specifies the file or directory location in standard URI format. EXAMPLES
Example 1: Getting File Information for a Local File example% gnomevfs-info file:///etc/nsswitch.conf ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: NLSPATH. EXIT STATUS
The exit value 0 is returned regardless of success or failure. FILES
The following files are used by this application: /usr/bin/gnomevfs-info Executable to display a list of file information ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-vfs | +-----------------------------+-----------------------------+ |Interface stability |Obsolete Volatile | +-----------------------------+-----------------------------+ SEE ALSO
gnomevfs-cat(1), gnomevfs-copy(1), gnomevfs-ls(1), gnomevfs-mkdir(1), gvfs-info(1), attributes(5), environ(5) NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2004. SunOS 5.11 14 May 2008 gnomevfs-info(1)
All times are GMT -4. The time now is 06:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy