Sponsored Content
Full Discussion: Problem with sed
Top Forums Shell Programming and Scripting Problem with sed Post 302558866 by tinman47 on Sunday 25th of September 2011 05:42:54 PM
Old 09-25-2011
IT WORKED! I'm so sorry. I forgot sed doesn't know how to read empty files and I left it empty.

lol This is the best forum ever. Thanks guys. Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sed Problem

I AM TRYING TO APPEND THE HOSTNAME OF A UNIX SERVER I WORK WITH SO I COULD DO A LOADING INTO A DATABASE. THE COMMAND I AM USING IS df -k | sed 's/^/dataserver /' What I intend to do is append the hostname dynamically by using the hostname command instead of having to manually enter... (1 Reply)
Discussion started by: Chelsea
1 Replies

2. UNIX for Dummies Questions & Answers

Problem with sed

Hi , echo "07/05/2008" | sed 's/\(..\)\/\(..\)\/\(..\)/\3\2\1/' Output :: 20050708 Expected output is 20080507 Iam not getting the bug in this. Thanks for the help -- penchal (4 Replies)
Discussion started by: penchal_boddu
4 Replies

3. Shell Programming and Scripting

Problem with SED

Hi, I have to use SED to remove the prefix "219-" from a text file containing phone numbers and I have to remove the ":" as well. I write the following code but it does not seem to work. Can someone help me please? mohit@mohit-desktop:~$ sed -n s/219-/" "/p corp_phones_bak > noprefix1... (2 Replies)
Discussion started by: mojoman
2 Replies

4. Shell Programming and Scripting

Problem in sed.

Hi All! I am trying to use shell variables in a sed statement, but facing an error.I used the double quotes instead if single quotes in the sed statement. # sed -i -e "s/password/$decoded/g;" $CATALINA_HOME/conf/server.xml sed: -e expression #1, char 11: unterminated `s' command # ... (5 Replies)
Discussion started by: nua7
5 Replies

5. Shell Programming and Scripting

Sed Problem

I have a file which contain many lines see below. "/var/www/abc>" I want to remove Both of these values "" and > (5 Replies)
Discussion started by: aliahsan81
5 Replies

6. Shell Programming and Scripting

SED - Problem

I have a file with a lot of numbers in it and I need to clean it up and make it look nice and proper. I found this little gem of a one-liner and basically understand what it is doing but I would like to further understand what each part of the command is doing. Being a newb, I am just trying to... (2 Replies)
Discussion started by: genedc1
2 Replies

7. Programming

sed problem

Hi all In input file I have records like this: 0,1,0,87,0,0,"6,87","170,03",0,"43,5",0,0,0,0,"6,87","126,53"and in output file I need that these records transforms in : 0 1 0 87 0 0 6,87 170,03 0 43,5 0 0 0 0 6,87 126,53 Could you help me in this case? Please (3 Replies)
Discussion started by: shizik
3 Replies

8. Shell Programming and Scripting

sed problem

Hi i am stuck with a very silly problem :mad: below is my code echo 201010_1212_121.xml i need to replace xml with csv so i did echo 201010_1212_121.xml | sed 's/.*\.xml/.*\.csv/' echo 201010_1212_121.xml | sed 's/*.xml/*.csv/' echo 201010_1212_121.xml |... (4 Replies)
Discussion started by: aishsimplesweet
4 Replies

9. UNIX for Dummies Questions & Answers

sed problem

Hi Folks, I want to replace these numbers with words as the following: $echo 1 11 223 I want to replace each number with it name (e.g. "1" replaced with "one", etc.) just to determine how sed works in such case. Thanks in advance:). Leo (8 Replies)
Discussion started by: leo_ultra_leo
8 Replies

10. UNIX for Dummies Questions & Answers

sed Or Grep Problem OR Terminal Problem?

I don't know if you guys get this problem sometimes at Terminal but I had been having this problem since yesterday :( Maybe I overdid the Terminal. Even the codes that used to work doesn't work anymore. Here is what 's happening: * I wanted to remove lines containing digits so I used this... (25 Replies)
Discussion started by: Nexeu
25 Replies
SMBCRC(1)						Samba Commander configuration file						 SMBCRC(1)

NAME
smbcrc - configuration file for Smbc DESCRIPTION
An smbcrc file includes all parameters for Smbc. The value in parameters you can set at two types: username John Doe or username "John Doe" OPTIONS
username User name that is used during login to remote host, default "guest". Example: username Jon Doe password Password that is entered during login to remote host, default none. Example: password bryDS2team smbclient Path to file "smbclient", necessary for sending WinPopup message, default none. Only functions concatenate with send and receive a Win- Popup messages work as frontend, Samba Team doesn't include this functions in libsmbclient library. Example: smbclient /usr/bin/smbclient localdir Start local directory when running Smbc, default HOME. Example: localdir /home/rafim/tym workgroup Start workgroup, default none. Example: workgroup WORKGROUP host Start host, default none. Example: host AIR share Start remote host dir, default none. Example: share /sciepa/mpg/ typeofsort-left typeofsort-right Type of sort files and directories in selected panels, default 1. typeofsort-left 1 - sort by filenames typeofsort-left 2 - sort by extension typeofsort-left 3 - sort by size typeofsort-left 4 - don't sort Examples: typeofsort-left 1 typeofsort-right 1 reversesort-left reversesort-right Type of reverse sorting, default 0. reversesort-left 1 - reversesort on reversesort-left 0 - reversesort off Examples: reversesort-left 0 reversesort-right 0 group-left group-right Group files and directories, default 1. group-left 1 - group on group-left 0 - group off Examples: group-left 1 group-right 1 timeout Connection time out in seconds, default 3 seconds. This parameter was used when Smbc tries connect to remote host and waits for response. If you have the Samba in version oldest than 3.0.0 this parameter don't work and Smbc may be waiting for very long time. Example: timeout 3 autoresume Auto resume download, doesn't ask if connection is broken, default 0. If connection to remote host or to local file was broken and autoresume was set 1 Smbc sets retry-delay-time for this file and immediately goes to next item in download/upload list. autoresume 1 - autoresume on autoresume 0 - autoresume off Example: autoresume 1 indextime Time between smbc restarts network files indexing in seconds, default 300 seconds. indextime 0 smbc disable indexing network files indextime 1 smbc ony once index network files indextime 300 smbc index network files then delay 300 second and restart indexing Example: indextime 300 char-convert Converts all chars from UTF-8 to terminal charset, default 1. char-convert 1 - char-convert on char-convert 0 - char-convert off Example: char-convert 1 retry-delay-time Delay time of retrying download is seconds, default 60 second. Example: retry-delay-time 60 askquit Ask if quit from smbc, default 1. retry-read-groups How many times smbc retries to read groups when samba returns fail or empty result, default retry-read-groups 5. retry-read-groups = -1 - retries to success retry-read-groups = 0 - doesn't retry retry-read-groups > 0 - retries retry-read-groups times retry-read-hosts How many times smbc retries to read hosts when samba returns fail or empty result, default retry-read-hosts 5. retry-read-hosts = -1 - retries to success retry-read-hosts = 0 - doesn't retry retry-read-hosts > 0 - retries retry-read-hosts times retry-read-shares How many times smbc retries to read shares when samba returns fail or empty result, default retry-read-shares 5. retry-read-shares = -1 - retries to success retry-read-shares = 0 - doesn't retry retry-read-shares > 0 - retries retry-read-shares times colorK XXXX,YYYY,ZZZZ Defines three colors, where XXXX,YYYY,ZZZZ are red,green,blue and have value = <0000..1000> ,K has value <0..2>, default 0 colors defined. Examples: color0 0100,0100,0610 color1 0900,0080,0900 color2 0010,0500,0500 extcolorK Define color for file extension, K has value <0..2>, one definition per line, maximal extension length = 10 chars ,default 0 colors defined. Examples: extcolor0 exe extcolor0 bin extcolor0 bat extcolor0 tar extcolor0 gz extcolor0 tgz extcolor1 mp3 extcolor1 wav extcolor1 mod extcolor2 avi extcolor2 mpg extcolor2 mpeg SEE ALSO
smbcrc(1) AUTHOR
Originally written by Rafal Michniewicz <rafim@data.pl>. SMBCRC for SMBC Version 1.1.2 February 2005 SMBCRC(1)
All times are GMT -4. The time now is 12:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy