tags:

views:

76

answers:

1

I run unsuccessfully

cat Research/Skim.app/Contents/Frameworks/SkimNotes.framework/Versions/A/Resources/info.plist | sed -f Users/Masi/bin/HideTopBar

and I get

sed: Users/Masi/bin/HideTopBar: No such file or directory
[439]

I get the same error message also for the following command

sed -f Users/Masi/bin/HideTopBar Research/Skim.app/Contents/Frameworks/SkimNotes.framework/Versions/A/Resources/info.plist

Users/Masi/bin/HideTopBar has permissions 700 and it is

s/\<dict\>/\<dict\>\n     \<key\>LSUIPresenationMode\<\/key\> \n     \<integer\>4\<\/integer\>/

The file which I am editing: info.plist

...
<dict>
    <key>CFBundleDevelopmentRegion</key>
    ...
</dict>
</plist>

How can you source the SED script?

+4  A: 

Try with /Users... instead of Users... (note the leading /).

Alternatively, if you run the command from your account (Masi) you can use ~/bin/HideTopBar or $HOME/bin/HideTopBar. From another account (provided that privileges are correctly set), you can also use ~Masi/bin/HideTopBar.

mouviciel
Thank you! I did not note that typo.
Masi