Search Results

Search: Posts Made By: Grueben
1,323
Posted By rbatte1
You should be able to append on every server. If...
You should be able to append on every server. If the file doesn't exist, it will create it. You really then only need to be sure of setting the permissions correctly for the key to be considered as...
1,731
Posted By RudiC
There may be several reasons for the reported...
There may be several reasons for the reported behaviour:
- You are not running the script with a recent bash and thus don't have "extended pattern matching".
- You did not set the extglob option...
1,731
Posted By Corona688
It always does that to any glob which doesn't...
It always does that to any glob which doesn't match a file, so it's unrelated to @. by itself alone, @ has no special meaning to the shell.

I suspect your script runs using a different shell than...
1,438
Posted By clx
If you have rename utility rename...
If you have rename utility


rename product_host_result output_product_host product_host_result*.txt

Please test first.
3,223
Posted By alister
You can just read the filenames from your file...
You can just read the filenames from your file using a while-read loop. Within that loop, use cp. To generate the destination filename, you can use sed or the shell's parameter expansion operators to...
2,381
Posted By pamu
So who is stopping you from doing this..? ...
So who is stopping you from doing this..?

You can do something like this.

echo "Options are"
echo "1 for --"
echo "2 for --"
read opt
#You can check is $opt is present or not
case "$opt"...
2,381
Posted By ctsgnb
I think what we were trying to say was : first,...
I think what we were trying to say was : first, you should focus on how to use a "case" statement, which is more appropriate to what you are trying to do and easy to read and maintain.

Then, if...
1,469
Posted By frank_rizzo
try using this ssh option. -o...
try using this ssh option. -o StrictHostKeyChecking=no
2,256
Posted By jim mcnamara
I don't think the standards require it. RFC...
I don't think the standards require it.

RFC 854 does not seem to mention asking telnet to echo what port it is connecting to.
Please verify here:

http://www.ietf.org/rfc/rfc854.txt

telent...
1,321
Posted By Don Cragun
On a UNIX system, the size of a file is the...
On a UNIX system, the size of a file is the offset in the file of the last byte in the file. Text files on UNIX Systems can be any size from 0 bytes to several terabytes depending on available disk...
2,622
Posted By zaxxon
It is to keep the shell from interpreting the...
It is to keep the shell from interpreting the semicolon and have it as part of the find command. Another option is to add just an unescaped + at the end of the find command. The + will execute the...
5,150
Posted By elixir_sinari
Use heredoc. usname="someuser" ...
Use heredoc.

usname="someuser"
pass="somepass"
while read i
do
ftp -inv "$i"<<END >> testftplog
user $usname $pass
bye
END
done < /home/grub1/hosty


Then, you can grep all "Login...
Forum: Solaris 04-24-2012
5,597
Posted By methyl
sa1 and sa2 are scripts. If you run sa1 beware...
sa1 and sa2 are scripts. If you run sa1 beware that you must also run sa2 (or your own custom script to maintain the sa data files).
Forum: Solaris 04-24-2012
5,597
Posted By zaxxon
/var/log/sa/ is the default directory to write...
/var/log/sa/ is the default directory to write the daily files. Check it out. If it doesn't exist, you check the man page of your operating system for a definition.
Edit:
Just saw in the Solaris...
1,138
Posted By balajesuri
You don't need to read 'various.txt' line by line...
You don't need to read 'various.txt' line by line for this. Please check if the following command suffices:

grep -f various.txt list2.txt >> list3.txt
1,306
Posted By methyl
Please post: ls -ald filename file filename ...
Please post:
ls -ald filename
file filename
cat -v filename

It could just be a file containing an error message from a failed command.
4,576
Posted By pludi
It's pretty simple with sed:$ cat test.txt Line...
It's pretty simple with sed:$ cat test.txt
Line 1
Line 2
Line 3
Line 4
Line 5
$ sed -ne '3,$p' test.txt
Line 3
Line 4
Line 5
4,576
Posted By bartus11
awk 'NR==FNR{print;next}FNR>2' file1 file2 file3...
awk 'NR==FNR{print;next}FNR>2' file1 file2 file3 ...
4,576
Posted By birei
Hi Grueben, Use the append redirection: ...
Hi Grueben,

Use the append redirection:

$ cat file.txt >>file_with_header.txt
Forum: Solaris 02-14-2012
26,718
Posted By bitlord
I 2nd what was stated above, but will add this....
I 2nd what was stated above, but will add this. The login count in /etc/shadow file can just be deleted.
before

useraccount:cjnhvbvbshb.fem.15251:::::3

after
...
Forum: Solaris 02-14-2012
26,718
Posted By jim mcnamara
The last field of /etc/shadow is a number. The...
The last field of /etc/shadow is a number. The low order 4 bits of that field is the login fail count. Since the "other" bits are not now used, this represents login fails.

If the account is...
26,674
Posted By methyl
In "ksh" [ ] does not invoke /usr/bin/test. ...
In "ksh" [ ] does not invoke /usr/bin/test.
The whole of the test function is built into "ksh" plus a few more extensions. Only the extensions are documented in detail in "man ksh". The vast...
26,674
Posted By jim mcnamara
There also is a difference between [[ ]] and [ ]...
There also is a difference between [[ ]] and [ ] - they are likewise not identical. For example, [[ ]] is a builtin, [ ] actually invokes test.
Therefore [[ ]] is more efficient.
26,674
Posted By methyl
In ksh this not a "Test", it is a Conditional...
In ksh this not a "Test", it is a Conditional Expression.
They are described at length in "man ksh" in the section "Conditional Expressions".

There is much overlap in the syntax between a "Test"...
26,674
Posted By joshiamit
-f stands for if file exist when prefix with ! it...
-f stands for if file exist when prefix with ! it implies if file not exist then ...
Showing results 1 to 25 of 50

 
All times are GMT -4. The time now is 12:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy