Sponsored Content
Full Discussion: why ^M in my file?
Top Forums UNIX for Dummies Questions & Answers why ^M in my file? Post 302274401 by pludi on Wednesday 7th of January 2009 01:27:12 PM
Old 01-07-2009
Maybe a quicker solution: see if TextPad can save the file with UNIX-style line endings. Most editors can do so.
 

3 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Match list of strings in File A and compare with File B, C and write to a output file in CSV format

Hi Friends, I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving... File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies

2. Shell Programming and Scripting

Compare 2 text file with 1 column in each file and write mismatch data to 3rd file

Hi, I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file. File1 - file2 = file3 wc -l file1.txt 58112 wc -l file2.txt 55260 head -5 file1.txt 101214200123 101214700300 101250030067 101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies

3. Shell Programming and Scripting

Shell script (sh file) logic to compare contents of one file with another file and output to file

Shell script logic Hi I have 2 input files like with file 1 content as (file1) "BRGTEST-242" a.txt "BRGTEST-240" a.txt "BRGTEST-219" e.txt File 2 contents as fle(2) "BRGTEST-244" a.txt "BRGTEST-244" b.txt "BRGTEST-231" c.txt "BRGTEST-231" d.txt "BRGTEST-221" e.txt I want to get... (22 Replies)
Discussion started by: pottic
22 Replies
uruk-save(8)						      SYSTEM ADMINISTRATION						      uruk-save(8)

  NAME
      uruk-save - save uruk rc configuration in iptables-save-style format

  SYNOPSIS
      uruk-save [-6 (save ip6tables rules)]

  OPTIONS
      -6 (save ip6tables rules)
	Don't save iptables rules but save ip6tables rules, for IPv6 filtering.

  DESCRIPTION
      uruk-save  saves	the  IPv4 rules in /etc/uruk/rc in iptables-save(5)-style format, without invoking iptables(8). If the -6 option is given,
      the IPv6 rules (if any) in /etc/uruk/rc are saved, in ip6tables-save(5)-style format. It	prints	output	to  stdout;  suggested	invocation
      therefore is

       # uruk-save > /var/lib/uruk/iptables/active

      or

       # uruk-save -6 > /var/lib/uruk/ip6tables/active

      .  This script is useful if you don't like the default behaviour of the uruk init script, and would like it to load the current uruk rc file
      instead of the current active file. Please note: generally you don't need to invoke this script manually: the init script which  comes  with
      uruk is suitable for most cases, it invokes uruk-save if needed.

  WARNING
      Just as uruk, in order to keep the uruk-save script small and simple, the script does very little error handling. It does not check the con-
      tents of the rc file in any way before executing it. When your rc file contains bogus stuff, uruk-save will very likely behave in unexpected
      ways. Caveat emptor.

      Things will likely break if you do fancy stuff in an rc hook file. For instance, uruk-save saves the filter table only. If you define mangle
      or nat tables, things will break.

      If your rc file is in verbose mode (i.e. it features set -x) or in no-act mode (i.e. it features iptables='echo iptables'), uruk-save fails.

  SEE ALSO
      uruk(8), uruk-rc(5) .

  COPYRIGHT
      Copyright (C) 2005 Joost van Baal <joostvb-uruk@mdcc.cx>

      This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License  as  published	by
      the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

      This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABIL-
      ITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

      You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

  AUTHOR
      Joost van Baal <joostvb-uruk@mdcc.cx>

  uruk-save 20120530						      30 mai 2012							uruk-save(8)
All times are GMT -4. The time now is 08:54 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy