07-18-2013
Quote:
Originally Posted by
Ariean
Hello All,
I have generated a .ppk & .pub key files using Puttygen and saved them into my local machine (windows 8 OS), But when I am navigating and looking for those files in the windows folders I couldn't able to see them even though I have the option to show hidden files is turned on.
But I am only able to see them when I navigate through pageant but can't able to open and see/edit the content, so how do I see and open them physically in a notepad/wordpad file?
Thank you
Go to Puttygen and load the files and then try to choose "Export OpenSSH File." Go to notepad and then see if you can open them.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Guys,
What is the most effecient way to compare the content of 2 seperate files and extract the result of there is a match? We have 2 separate log files and we are trying to find the common errors from the 2 files.
Thanks,
Odogbolu98
:( (3 Replies)
Discussion started by: odogbolu98
3 Replies
2. Shell Programming and Scripting
Hi, all
Need some advise on this script
i have some files in a directory, and i need to change the word XX in each files to YY, how can i perform a bulk changes/
thanks in advance for yr sharing (3 Replies)
Discussion started by: swchee
3 Replies
3. Shell Programming and Scripting
hi
i have a set of files , i need to compare one file content with other file content,
i am using cmp -s abc.1 def.2 , but it is not giving theproper o/p even if the content is different.Please help
thanks
Satya (1 Reply)
Discussion started by: Satyak
1 Replies
4. Shell Programming and Scripting
I'm trying to combine it using awk but still can't figure it out. Here is the file.
cat file1.txt
Mr Smith
Mr John
Ms Linda
cat file2.txt
No 4 Jln Empat
Kuala Lumpur
No 213 Tmn Bunga
Kedah
No 1 Kampung Bukit
Malaysia
I want to combine this file1 and file2 so the output... (5 Replies)
Discussion started by: pisang
5 Replies
5. Shell Programming and Scripting
I have about 11000 files on a hard disk that were generated by copying a directory structure from a dvd. The files are supposed to contain ascii data.
I am unable to read or inspect the contents of several of the files, I receive the error no such file or directory.
I am using cygwin on... (4 Replies)
Discussion started by: jvorwald
4 Replies
6. Shell Programming and Scripting
I am looking for a script where I need to open a file and modify the data like changing the parameters.Can anyone help me?
open a file software.rsp . It already contains following data.
parameter = false
threads=100
user= demf
The above should be changed to
paramter=true
thread= 133... (3 Replies)
Discussion started by: sriki32
3 Replies
7. Shell Programming and Scripting
Hi I have multiple files in a folder and one file which contains a list of files (one on each line). I was to search for a string only within these files and not the whole folder. I need the output to be in the form
File1<tab>string instance 2<tab> string instance 2<tab>string instance 3... (6 Replies)
Discussion started by: pkabali
6 Replies
8. Shell Programming and Scripting
I have two files in unix environment with similer type of contain:
Example:
File1 File2
Milestone1 Milestone1
Milestone2 Milestone12
Milestone3 Milestone13... (11 Replies)
Discussion started by: Mrinal Mondal
11 Replies
9. UNIX for Beginners Questions & Answers
I am having two files file1&file2.i just want to swap the selected contents btwn two files
#file1
content:
Title:xxxx
Hello Imran
#file2
content:
Title:YYYY
Hello Meeran
i just want only second line in both files should be swapped.The title should remain in the same file.
i just... (5 Replies)
Discussion started by: Meeran Rizvi
5 Replies
10. UNIX for Beginners Questions & Answers
I have two file as given below which shows the ACL permissions of each file. I need to compare the source file with target file and list down the difference as specified below in required output. Can someone help me on this ?
Source File
*************
# file: /local/test_1
# owner: own
#... (4 Replies)
Discussion started by: sarathy_a35
4 Replies
OPEN(1) BSD General Commands Manual OPEN(1)
NAME
open -- open files and directories
SYNOPSIS
open [-e] [-t] [-f] [-F] [-W] [-R] [-n] [-g] [-j] [-h] [-s sdk] [-b bundle_identifier] [-a application] file ... [--args arg1 ...]
DESCRIPTION
The open command opens a file (or a directory or URL), just as if you had double-clicked the file's icon. If no application name is speci-
fied, the default application as determined via LaunchServices is used to open the specified files.
If the file is in the form of a URL, the file will be opened as a URL.
You can specify one or more file names (or pathnames), which are interpreted relative to the shell or Terminal window's current working
directory. For example, the following command would open all Word files in the current working directory:
open *.doc
Opened applications inherit environment variables just as if you had launched the application directly through its full path. This behavior
was also present in Tiger.
The options are as follows:
-a application
Specifies the application to use for opening the file
-b bundle_indentifier
Specifies the bundle identifier for the application to use when opening the file
-e Causes the file to be opened with /Applications/TextEdit
-t Causes the file to be opened with the default text editor, as determined via LaunchServices
-f Reads input from standard input and opens the results in the default text editor. End input by sending EOF character (type Control-D).
Also useful for piping output to open and having it open in the default text editor.
-F Opens the application "fresh," that is, without restoring windows. Saved persistent state is lost, except for Untitled documents.
-W Causes open to wait until the applications it opens (or that were already open) have exited. Use with the -n flag to allow open to func-
tion as an appropriate app for the $EDITOR environment variable.
-R Reveals the file(s) in the Finder instead of opening them.
-n Open a new instance of the application(s) even if one is already running.
-g Do not bring the application to the foreground.
-j Launches the app hidden.
-h Searches header locations for a header whose name matches the given string and then opens it. Pass a full header name (such as NSView.h)
for increased performance.
-s For -h, partial or full SDK name to use; if supplied, only SDKs whose names contain the argument value are searched. Otherwise the high-
est versioned SDK in each platform is used.
--args
All remaining arguments are passed to the opened application in the argv parameter to main(). These arguments are not opened or inter-
preted by the open tool.
EXAMPLES
"open '/Volumes/Macintosh HD/foo.txt'" opens the document in the default application for its type (as determined by LaunchServices).
"open '/Volumes/Macintosh HD/Applications/'" opens that directory in the Finder.
"open -a /Applications/TextEdit.app '/Volumes/Macintosh HD/foo.txt'" opens the document in the application specified (in this case, TextE-
dit).
"open -b com.apple.TextEdit '/Volumes/Macintosh HD/foo.txt'" opens the document in the application specified (in this case, TextEdit).
"open -e '/Volumes/Macintosh HD/foo.txt'" opens the document in TextEdit.
"ls | open -f" writes the output of the 'ls' command to a file in /tmp and opens the file in the default text editor (as determined by
LaunchServices).
"open http://www.apple.com/" opens the URL in the default browser.
"open 'file://localhost/Volumes/Macintosh HD/foo.txt'" opens the document in the default application for its type (as determined by Launch-
Services).
"open 'file://localhost/Volumes/Macintosh HD/Applications/'" opens that directory in the Finder.
"open -h NSView" lists headers whose names contain NSView and allows you to choose which ones to open.
"open -h NSView.h" immediately opens NSView.h.
"open -h NSView -s OSX10.12" lists headers whose names contain NSView in the MacOSX 10.12 SDK and allows you to choose which ones to open.
HISTORY
First appeared in NextStep.
macOS April 14, 2017 macOS