01-04-2016
What does "correctly from line 3 onwards" mean? Please describe your problem in more detail.
10 More Discussions You Might Find Interesting
1. Programming
Hi
I am doing file redirection at console for use by my binary.
%console%> bin < inputfile
After reading in the entire file, I want my program to continue taking input from the console. So essentially I want to redirect stdin back to console. But I cant figure out how to do it.
I am... (4 Replies)
Discussion started by: nauman
4 Replies
2. Shell Programming and Scripting
i am trying to find a way to put an interactive script in the background after taking input from the user
a few test lines i was trying:
date
echo "Enter location"
LOCATION=
read LOCATION
sleep 100
sleep 200
date
for this small example i want the script to as the user for the... (7 Replies)
Discussion started by: epsilonaurigae
7 Replies
3. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (1 Reply)
Discussion started by: rits
1 Replies
4. Homework & Coursework Questions
Q. Write a script that behaves both in interactive and non interactive mode. When no arguments are supplied it picks up each C program from the directory and prints first 10 lines.
It then prompts for deletion of the file.
If user supplies arguments with the script , then it works on those files... (8 Replies)
Discussion started by: rits
8 Replies
5. UNIX for Dummies Questions & Answers
:confused:Hi
This was installed on the Linux box a few weeks back by a guy that no longer works for us. All worked fine until last week. Now when we connect its just a blank screen with no icons.
I get a whole bunch of errors when starting the service too:
Tue Feb 23 14:29:45 2010
... (1 Reply)
Discussion started by: wbdevilliers
1 Replies
6. UNIX for Advanced & Expert Users
hi 2 all
whatever in a file that line have to come in console screen .. when i execte that script ...
>cat abc
date
ls
>./abc
>date ---->that line hav to come here
> ls ----> that line hav to come here
please anyone help me ! (4 Replies)
Discussion started by: ponmuthu
4 Replies
7. Shell Programming and Scripting
I'm writing a basic ldapsearch script that prompts the user for their search criteria. The input they're being asked for is the search filter portion of the ldapsearch command. This string must be quoted. When the script executes the command it returns nothing. If I hard code a search filter it... (1 Reply)
Discussion started by: donniemac
1 Replies
8. Linux
how to get the outout from script to console.
i am running one script msg.sh using cron job every suday midnight. as soon as i logged in i want to see the staus is service started or service failed on console.
what command i need to add to script ?
msg.sh
#!/bin/bash
if
then
echo... (1 Reply)
Discussion started by: saku
1 Replies
9. Shell Programming and Scripting
msg.sh
#!/bin/bash
if
then
echo "starting service"
else
echo " service not started"
echo " Please check the start.sh file or manuly start the service"
fi
if i login with root credentials @12.36.34.123 with passwd
username:root
passwd:abc
once i login into linux pc... (6 Replies)
Discussion started by: saku
6 Replies
10. Shell Programming and Scripting
Hello, I want to start out by saying that I am fairly new to scripting and am looking for someone that can point me in the right direction.
Basically what I need is a way to run a interactive script that will prompt users with questions weather that be yes/no or a specific answer.. I want to be... (3 Replies)
Discussion started by: shoutcast
3 Replies
file(1) General Commands Manual file(1)
NAME
file - determine file type
SYNOPSIS
mfile] ffile] file ...
UNIX 2003 (onwards) Synopsis
mfile] Mfile] ffile] file ...
DESCRIPTION
performs a series of tests on each file in an attempt to classify it. If file appears to be an ASCII file, examines the first 512 bytes
and tries to guess its language. If file is an executable file, prints the version stamp, provided it is greater than 0 (see the descrip-
tion of the option in ld(1)).
uses the file to identify files that have some sort of that is, any file containing a numeric or string constant that indicates its type.
Commentary at the beginning of explains the format.
Options
recognizes the following command-line options:
Use alternate magic file
mfile.
(UNIX 2003 onwards Only)
Use alternate magic file Mfile. Do not apply default context-sensitive tests.
Check the magic file for format errors.
This validation is not normally carried out for reasons of efficiency. No file classification is done when this option
is specified.
(UNIX 2003 onwards Only)
Apply position-sensitive tests from the default magic file, and default context-sensitive tests to the file.
Obtain the list of files to be examined from file
ffile. classifies each file whose name appears in ffile.
Do not follow symbolic links.
From UNIX 2003 (onwards) environment, if is not specified and the is a symbolic link referring to a non-existent file, it
is identified as a symbolic link, as if has been specified.
Do not attempt to classify a regular file further.
If the option is specified with the option, option, or both, the concatenation of the position-sensitive tests specified by these
options is applied in the order specified by the appearance of these options.
EXTERNAL INFLUENCES
For information about the UNIX standard environment, see standards(5).
Environment Variables
determines the language in which messages are displayed.
If is not specified in the environment or is set to the empty string, the value of is used as a default for each unspecified or empty vari-
able. If is not specified or is set to the empty string, a default of "C" (see lang(5)) is used instead of
If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See
environ(5).
International Code Set Support
Single- and multi-byte character code sets are supported. However, all non-ASCII text files are identified as "data".
WARNINGS
The command for a release interprets the core files for that particular release correctly. Using the command on a core file generated on a
different release will report incorrect results.
SEE ALSO
ld(1), standards(5).
STANDARDS CONFORMANCE
file(1)