10-29-2007
Issue with cat command
Porter,
I do agree with you. But still how far can we tune to speed up the process. Becuase of this file appending, whole load time is impacted. Let me know if you have any other thoughts on this...
Thanks,
Rajiv
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi,
Function 'mmin' is not in my unix, what is the other alternative to find files created/modified in last 10 minutes.
Unix Command:
find . -min -10
find: bad option -min
find: path-list predicate-list
Thank you (1 Reply)
Discussion started by: Mohee
1 Replies
2. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
3. Emergency UNIX and Linux Support
I have list of files in my current directory
abc.txt
123.csv
234.csv
245.csv
145.csv
123_ex_c.sv
I don't want to open first and last file. i.e (abc.txt and 123_ex_csv)
I tried
cat *.csv, but it won't work.
Can anyone tell me the proper regex only in cat
Thanks
Pritish
... (2 Replies)
Discussion started by: pritish.sas
2 Replies
4. Shell Programming and Scripting
ok..
so problem is:
I have a file that reads:
cat 123
1 and 2
3 and 4
5 and 6
I was using for loops to run through this information.
Code:
for i in `cat 123`
do
echo $i
done
shouldn't the output come as
1 and 2 (3 Replies)
Discussion started by: foal_11
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Im trying to create a command template here. how can i issue this long command in one enter?
echo -e "\nIssue or Request - Analysis Summary \n\nMemory Utilization Utilization Threshold\n\nResolution Summary\n\n1. check Server Info";echo "$(uname -a;uptime;date)"; echo -e "\n\n2. check... (9 Replies)
Discussion started by: jinslick25
9 Replies
6. Shell Programming and Scripting
We have shell script (in ksh) which reads the records from a csv file line by line and does some operation. We have below command to read the file (CSV has the absolute path of files stored on a server something like SER/IMP/TEST/2010/12/123465.1).
P_FILES=`cat $P_BATCH_FILE`
for i in $P_FILES... (2 Replies)
Discussion started by: shreevatsau
2 Replies
7. Shell Programming and Scripting
Hi,
I am facing an issue with mget command, below are the details
The following commands are in a batch file "abc.ctl"
cd /mypath/mydirectory/
mget 'MYFILE_*.touch'
bye
I use this file as a parameter for an sftp command
sftp -b abc.ctl -oIdentityFile=$myserver -oPort=$myport >>... (0 Replies)
Discussion started by: saurabh_mh
0 Replies
8. Shell Programming and Scripting
I have a script to do a couple simple but repetitive commands on files that are provided to us. One of the things is to get rid of the line feeds. This is the section that is causing problems, i even cut this section into its own file to make sure nothing else was affecting it.
#!/usr/bin/bash... (4 Replies)
Discussion started by: oly_r
4 Replies
9. Shell Programming and Scripting
Hi,
I need to ssh remotely to a machine and cat a file assign the value to a variable
Script:
#!/bin/bash -x
value=`cat config.txt`
echo "$value"
ssh me@xxx.host.com "valu='cat /export/home/test.md5'; echo "$valu"" | tee
Execution:
$ ./x
++ cat config.txt
+ value='touch me'
+... (5 Replies)
Discussion started by: close2jay
5 Replies
10. UNIX for Beginners Questions & Answers
Good day to all,
I'd like to ask for your advice with regards to this.
Scenario :
I have here a file named TEST.tmp wherein the value inside is below;
"ONE|TWO|FIVE|THREE|FOUR|SIX~SEVEN~EIGHT" "NINE"
But when I'm trying to use this in a simple command like;
for TESTING in $(cat... (4 Replies)
Discussion started by: asdfghjkl
4 Replies
LEARN ABOUT SUNOS
cklist.high
asetmasters(4) File Formats asetmasters(4)
NAME
asetmasters, tune.low, tune.med, tune.high, uid_aliases, cklist.low, cklist.med, cklist.high - ASET master files
SYNOPSIS
/usr/aset/masters/tune.low
/usr/aset/masters/tune.med
/usr/aset/masters/tune.high
/usr/aset/masters/uid_aliases
/usr/aset/masters/cklist.low
/usr/aset/masters/cklist.med
/usr/aset/masters/cklist.high
DESCRIPTION
The /usr/aset/masters directory contains several files used by the Automated Security Enhancement Tool (ASET). /usr/aset is the default
operating directory for ASET. An alternative working directory can be specified by the administrators through the aset -d command or the
ASETDIR environment variable. See aset(1M).
These files are provided by default to meet the need of most environments. The administrators, however, can edit these files to meet their
specific needs. The format and usage of these files are described below.
All the master files allow comments and blank lines to improve readability. Comment lines must start with a leading "#" character.
tune.low These files are used by the tune task (see aset(1M)) to restrict the permission settings for system objects. Each file is
tune.med used by ASET at the security level indicated by the suffix. Each entry in the files is of the form:
tune.high
pathname mode owner group type
where
pathname is the full pathname
mode is the permission setting
owner is the owner of the object
group is the group of the object
type is the type of the object It can be symlink for a symbolic link, directory for a directory, or file for
everything else.
Regular shell wildcard ("*", "?", ...) characters can be used in the pathname for multiple references. See sh(1). The mode
is a five-digit number that represents the permission setting. Note that this setting represents a least restrictive value.
If the current setting is already more restrictive than the specified value, ASET does not loosen the permission settings.
For example, if mode is 00777, the permission will not be changed, since it is always less restrictive than the current
setting.
Names must be used for owner and group instead of numeric ID's. ? can be used as a "don't care" character in place of
owner, group, and type to prevent ASET from changing the existing values of these parameters.
uid_alias This file allows user ID's to be shared by multiple user accounts. Normally, ASET discourages such sharing for accountabil-
ity reason and reports user ID's that are shared. The administrators can, however, define permissible sharing by adding
entries to the file. Each entry is of the form:
uid=alias1=alias2=alias3= ...
where
uid is the shared user id
alias? is the user accounts sharing the user ID
For example, if sync and daemon share the user ID 1, the corresponding entry is:
1=sync=daemon
cklist.low These files are used by the cklist task (see aset(1M)), and are created the first time the task is run at the low, medium,
cklist.med and high levels. When the cklist task is run, it compares the specified directory's contents with the appropriate
cklist.high cklist.level file and reports any discrepancies.
EXAMPLES
Example 1: Examples of Valid Entries for the tune.low, tune.med, and tune.high Files
The following is an example of valid entries for the tune.low, tune.med, and tune.high files:
/bin 00777 root staffsymlink
/etc 02755 root staffdirectory
/dev/sd* 00640 rootoperatorfile
SEE ALSO
aset(1M), asetenv(4)
ASET Administrator Manual
SunOS 5.10 13 Sep 1991 asetmasters(4)