I use the cat command to concatenate text files, but one of the rows I was expecting doesn't display in the output file. Is there a verbose mode\logging mechanism for the cat command to help me investigate where the lines I was expecting are going??
to concatenate files.
one of the files 7760-001_1_67_06_2008-02-09t14x54x52.txt contains the following rows (I've cut down the number of columns and inserted string '[null]' for clarity)
A~ZAPPA~Baby of Gigi~[null]~Miss~20080209~20120628
A~ZAPPA~KIM ~[null]~Miss~20120628~20120628
L~ZAPPA~Kim ~[null]~Miss~20120628~[null]
Only 2 of the rows I was expecting make it to the 06.out file (the top 2)
A~ZAPPA~Baby of Gigi~[null]~Miss~20080209~20120628
A~ZAPPA~KIM ~[null]~Miss~20120628~20120628
I don't really know where to begin with this one, or if I've provided enough information.
Hi guys...
I am new to this scripting...so please forgive me if anything worng in my questions...
here is my question..
I have file structure
/home/oracle/<sid>/logs/bkup
now i want to write a script which should grep the sid name from a file..and it should replace the <SID> with... (1 Reply)
Hello,
I'm new to shell scripting and did a search on the forum to what I want to do but couldn't find anything.
I have about 9 routers that outputs to 1 syslog file daily named cisco.year.mo.date.log ex: cisco.2009.05.11.log
My goal is to make a parsing script that cats today's syslog... (2 Replies)
Hi All,
I was testing for blank lines and I want to use the cat command only
for groupline in `cat /home/test/group`
do
if
then
echo "blank found"
fi
done
I want to check if the current line read is a blank line.
I have tested with $groupline="\n" ,... (11 Replies)
Okay, so I have a file containing line after line of three digit numbers. I need a script that does an action based on the last two numbers in this list.
So.... To get the last two numbers, I can have the script do
tail -2 filename.txt
But where I run into trouble is as follows. If... (6 Replies)
Hello All,
I have a bash script and in it at some point I call an Expect Script that does some stuff and saves its
output in a ".txt" file.
Example "/path/to/my/file/Expect_Output.txt" file: notice the 2nd line is empty in the file...
Data for Host-1 (192.168.1.110)
Checking the... (2 Replies)
Hi All,
I have an input file containing data as below:
Input.DAT
XXXXXXX|YYYYYYY|ZZZZZZZZZZ|12334446456|B|YY|111111111|111111111|111111111|111111111|15|3|NNNNNN|Y|3|AAA|111111111... (11 Replies)
I have a file
# cat /root/llll
11
22
33
44
When I cat this file content to a variable inside a shell script and echo that shell script, it does not show up as separate lines. I need echo output similar to cat.
cat /root/shell_script.sh
#!/bin/bash
var=`cat /root/llll`
echo $var (2 Replies)
Team,
we use below command to store the contents in a logfile.
cat a.txt > a.log
a.txt content is
123
345
Is there any options available to store the command used also?
for eg a.log may show as
cat a.txt
123
345 (5 Replies)
plz help me to figure it out
how i remove empty or blank files using cat command.
i will be very thankful if u send me this answer...
thanks (3 Replies)
Hello,
I'm on a remote computer by SSH. How can I get the output of "cat file" into a file on the local computer?
I cannot use scp, because it's blocked.
something like:
ssh root@remote_maschine "cat /file" > /locale_machine/file
:rolleyes: (2 Replies)
Discussion started by: borsti007
2 Replies
LEARN ABOUT DEBIAN
missidentify
MISSIDENTIFY(1) Jesse Kornblum MISSIDENTIFY(1)NAME
missidentify - Find executable files without an executable extension
SYNOPSIS
missidentify [-rqablv] [-s|-S len] [-Vh] [FILES]
DESCRIPTION
Miss Identify looks at the header of every file it processes and determines if it is a PE executable (Windows executable). Such files can
include programs, device drivers, and DLLs. By default the program displays the filename if the extension of the file does not match one of
the known executable extensions (.exe, .com, .sys, or .dll). Other options can make the program display the filename of all executable
files.
-r Enables recursive mode. All subdirectories are traversed. Please note that recursive mode cannot be used to examine all files of a
given file extension. For example, calling missidentify -r *.txt will examine all files in directories that end in .txt.
-q Silent mode. All error messages except fatal errors are surpressed.
-a Display filenames of all executables
-b Enables bare mode. Strips any leading directory information from displayed filenames. This flag may not be used in conjunction with
the -l flag.
-l Enables relative file paths. Instead of printing the absolute path for each file, displays the relative file path as indicated on
the command line. This flag may not be used in conjunction with the -b flag.
-v Verbose mode. Displays the name of every 10th file as a progress indicator.
-s-S len
Prints strings of length len with each filename. With lowercase letter, puts filename before string. With uppercase letter, puts
strings before filename.
-h Show a help screen and exit.
-V Show the version number and exit.
BUGS
The program can be fooled by any file with more than 1024 bytes between the MZ header and the PE header.
AUTHOR
Miss Identify was written by Jesse Kornblum
http://missidentify.sf.net/
COPYRIGHT
Copyright (C) 2008 Jesse Kornblum. This is free software. You may redistribute copies of it under the terms of the GNU General Public
License version 2. There is NO WARRANTY. See the file COPYING for more details.
SEE ALSO file(1)Jesse Kornblum v1.0 - 20 Feb 2008 MISSIDENTIFY(1)