10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've been working on a bash script to parse through firewall logs (cisco). I'm nearing the end and have a dilemma.
My data looks as such (actual data is several gigs worth of logs - without the headers):
sourceIP destinationIP destinationProtocol destinationPort
188.8.131.52 184.108.40.206 ... (2 Replies)
Discussion started by: umang2382
2. Shell Programming and Scripting
I have requirement to identify similar records matching about 80% to 90%.I have to black list customers with multiple accounts.
The data is in the Oracle Database, but is there any way I can get the data into flat file and compare the strings and fetch similar matching records?
... (2 Replies)
Discussion started by: kashik786
3. UNIX for Dummies Questions & Answers
NEVERMIND.... "$TIME" did the trick... stupid me. :o
I know that this must be something pretty dumb but I cant figure it out myself.
I have this:
grep $TIME $FILE
And I get the following output:
file.log:Time: 20120611... (2 Replies)
Discussion started by: RedSpyder
4. Shell Programming and Scripting
basically i'm tired of hitting the left arrow a few dozen times when correcting a mistake or modifying a history command
i'd like to use vim style key shortcuts while on the command line so that a 55 moves the cursor 55 places to the left...
and i want all the other vi goodies, search of... (3 Replies)
Discussion started by: marqul
5. Shell Programming and Scripting
I have nine files looking similar to file1 & file2 below.
1 ACTL7 (4 Replies)
Discussion started by: seqbiologist
6. Shell Programming and Scripting
please if anyone can help me make a shell script similar to the command HEAD and TAIL
THANKS (3 Replies)
Discussion started by: BELLA86
7. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
8. UNIX for Dummies Questions & Answers
I am doing this simple script using c shell and korn shell. The commands I use are fgrep , ls, and also some redirecting. Is there any difference in using both of these commands in c shell and korn shell? Thanks and sorry for the stupid question. (1 Reply)
Discussion started by: EquinoX
9. Shell Programming and Scripting
I am having one situation in which I need to run some simple unix commands after doing "chroot" command in a shell script. Which in turn creates a new shell.
So scenario is that
- I need to have one shell script which is ran as a part of crontab
- in this shell script I need to do a... (2 Replies)
Discussion started by: hkapil
10. Shell Programming and Scripting
I want to be able to run a script on one server, that will spawn another shell which runs some commands on another server..
I have seen some code that may help - but I cant get it working as below:
send "telnet x <port_no>\r"
expect "Enter command: "
send "LOGIN:x:x;... (2 Replies)
Discussion started by: frustrated1
platform::shell(n) Tcl Bundled Packages platform::shell(n)
platform::shell - System identification support code and utilities
package require platform::shell ?1.1.4?
The platform::shell package provides several utility commands useful for the identification of the architecture of a specific Tcl shell.
This package allows the identification of the architecture of a specific Tcl shell different from the shell running the package. The only
requirement is that the other shell (identified by its path), is actually executable on the current machine.
While for most platform this means that the architecture of the interrogated shell is identical to the architecture of the running shell
this is not generally true. A counter example are all platforms which have 32 and 64 bit variants and where a 64bit system is able to run
32bit code. For these running and interrogated shell may have different 32/64 bit settings and thus different identifiers.
For applications like a code repository it is important to identify the architecture of the shell which will actually run the installed
packages, versus the architecture of the shell running the repository software.
This command does the same identification as platform::identify, for the specified Tcl shell, in contrast to the running shell.
This command does the same identification as platform::generic, for the specified Tcl shell, in contrast to the running shell.
This command returns the contents of tcl_platform(platform) for the specified Tcl shell.
operating system, cpu architecture, platform, architecture
platform::shell 1.1.4 platform::shell(n)