Sponsored Content
Top Forums Shell Programming and Scripting script for inserting line at specific place in file Post 302484164 by barrydocks on Thursday 30th of December 2010 03:04:34 AM
Old 12-30-2010
output from mv command:
Code:
mv: target `/etc/samba/smb.conf' is not a directory

I ran this as root so there shouldn't be any permissions problems?

Having said all that, it's now working fine!! SmilieSmilieSmilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

insert file 1 at a specific place of file 2

Hello, I need to search in file2 for class A : public B { and insert right after that the content of file1. I am a bit lost as to which tools (which bash functions, awk...). I should use. Thanks for some directions here. Regards (1 Reply)
Discussion started by: JCR
1 Replies

2. Shell Programming and Scripting

Splitting av file in 2 at specific place based on textpattern

I have a file that I want to split in 2 (with Bourne shell sh) preferably. The file consists of groups of lines separated by newline. The file can vary in length, so I need to check number of groups of text. Here's an example ====EXAMPLE START==== #fruit banana #color yellow #surface smooth... (0 Replies)
Discussion started by: borgeh
0 Replies

3. Shell Programming and Scripting

Jump to a specific place in a file?

If I cat a file And want to go to the first instance of a particular value - what command would I use? And then from that point where I jumped to search for another value - but only search from that point forward not before the file? Thanks~ (2 Replies)
Discussion started by: llsmr777
2 Replies

4. Shell Programming and Scripting

Problem inserting text into file after specific line

this is utterly embarassing :( after posting here i revisited my files and found that when i used "vi" instead of a gui based editor, i suddenly found that the indentations were in fact wrong :( sorry about this :( (0 Replies)
Discussion started by: mocca
0 Replies

5. Shell Programming and Scripting

Read from file specific place in file using inode

Hello, I am using tcsh on AIX. I would like to write a script that does the following: 1. given an inode, how do I find exactly the name of the file? I know I could do this using ls -i | grep <inode> but it returns: <inode> <filename>. I need some string manipulation or something to... (1 Reply)
Discussion started by: lastZenMaster
1 Replies

6. Shell Programming and Scripting

Inserting text into a file but searching for the place to put it!

Hi I would love a bit of help with a problem im having with a script. I need to insert a line of text which is saved in a variable called $fwInsert into a file whos name is saved in a variable called $server but it needs to be in a certain order. The file is a forward file for a network and... (12 Replies)
Discussion started by: KatieV
12 Replies

7. Shell Programming and Scripting

Inserting file after specific line in another file

Im attempting to insert the contents of File1 at a specific point of File2. File1 AD004 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 File2 AA001 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 AB002 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 AC003 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1 Result AA001 0 1 0 0 1 0 1 0 0 1 0 1 0 1 0 1... (13 Replies)
Discussion started by: ncwxpanther
13 Replies

8. Shell Programming and Scripting

Commenting a specific line and inserting a new line after commented line.

Hello All, I have following file contents cat file #line=aaaaaa #line=bbbbbb #line=cccccc #line=dddddd line=eeeeee #comment=11111 #comment=22222 #comment=33333 #comment=44444 comment=55555 Testing script Good Luck! I would like to comment line line=eeeeee and insert a new line... (19 Replies)
Discussion started by: manishdivs
19 Replies

9. Shell Programming and Scripting

How to merge variable data from another file into specific place?

Hello, I'm trying to create multiple commands using a variable input from another file but am not getting any successful results. Basically, file1.txt contains multiple lines with single words: <file1.txt> yellow blue black white I want to create multiple echo commands with these... (8 Replies)
Discussion started by: demmel
8 Replies

10. Shell Programming and Scripting

awk to place specific contents filename within text file

I am trying to use awk to place the contens of a filename in $1 and $2 followed by the data in the text file. Basically, put the filename within the text file. There are over 1000 files in the directory and as of now each file is saved with a unique name but it is not within the file. Thank you... (10 Replies)
Discussion started by: cmccabe
10 Replies
smbnetfs(1)						      General Commands Manual						       smbnetfs(1)

NAME
smbnetfs - User-space filesystem for SMB/NMB (Windows) network servers and shares DESCRIPTION
usage: smbnetfs mountpoint [options] general options: -o opt,[opt...] mount options -h --help print help -V --version print version SMBNetFS options: -o config=PATH path to config (~/.smb/smbnetfs.conf) -o smbnetfs_debug=N SMBNetFS debug level (N<=10) -o smb_debug_level=N Samba debug level (N<=10) -o log_file=PATH File to store SMBNetFS debug messages -o local_charset=CHARSET Local charset (autodetected) -o samba_charset=CHARSET Charset used by samba (utf-8) -o use_gnome_keyring=BOOL Enable/disable usage of gnome-keyring -o gnome_keyring_timeout=T auth retrieving timeout for gnome_keyring (500ms) -o max_rw_block_size=N Maximum size of r/w block in Kb (autodetected) -o smb_tree_scan_period=T Period of scanning samba network tree (300s) -o smb_tree_elements_ttl=T TTL of scanned elements in samba tree (900s) -o smb_query_browsers=BOOL Enable/disable scanning of samba tree (on) -o show_$_shares=BOOL Enable/disable showing of hidden shares (off) -o show_hidden_hosts=BOOL See in documentation (off) -o free_space_size=N Free space size in pages (0) -o quiet_flag=BOOL Do not fail on chown/chgroup (on) -o stat_workaround_depth=N konquerror and gnome termal hack (3) -o time_step=T Scheduler sleep interval (10s) -o config_update_period=T Configuration update interval (300s) -o max_ctx_count=N Maximum number of childs (15) -o max_retry_count=N Number of retries before fail (3) -o listen_timeout=T Child process inactivity timeout (300s) -o reply_timeout=T Child process reply timeout (30s) -o max_passwd_query_count=N See in documentation (10) FUSE options: -d -o debug enable debug output (implies -f) -f foreground operation -s disable multi-threaded operation -o allow_other allow access to other users -o allow_root allow access to root -o nonempty allow mounts over non-empty file/dir -o default_permissions enable permission checking by kernel -o fsname=NAME set filesystem name -o large_read issue large read requests (2.4 only) -o max_read=N set maximum size of read requests -o hard_remove immediate removal (don't hide files) -o use_ino let filesystem set inode numbers -o readdir_ino try to fill in d_ino in readdir -o direct_io use direct I/O -o kernel_cache cache files in kernel -o umask=M set file permissions (octal) -o uid=N set file owner -o gid=N set file group -o entry_timeout=T cache timeout for names (1.0s) -o negative_timeout=T cache timeout for deleted names (0.0s) -o attr_timeout=T cache timeout for attributes (1.0s) FILES
Please create configuration directory ~/.smb. This directory should contain at least two files: smb.conf and smbnetfs.conf. You may copy smb.conf from the /etc/samba directory. You can find a sample of smbnetfs.conf in the /etc directory. AUTHOR
This manual page was written by Varun Hiremath <varunhiremath@gmail.com>, for the Debian project (but may be used by others). August 06, 2010 smbnetfs(1)
All times are GMT -4. The time now is 11:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy