Sponsored Content
Full Discussion: Issues in sed command
Top Forums Shell Programming and Scripting Issues in sed command Post 302882765 by ctsgnb on Thursday 9th of January 2014 05:28:07 AM
Old 01-09-2014
Note that using sed with the -i option may change the inode of the file. Using ed with -s option wouldn't.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed issues with strange char

Hi all, I try to create a shell script to had the xiti tag at the end of servals web pages just before the <body/> tag. here is my script : #!/bin/bash ################################################################## rm -R /home/hibern/TEMP/hibern cp -R... (5 Replies)
Discussion started by: hibern
5 Replies

2. Shell Programming and Scripting

sed issues

Hi guys, not that used to using sed beyond the simple substitution. I am trying to check for a program (program1) and if it exists replace the standard output "program1" with a "program1(part1 part2) output if said program exists. SW="program1 program2" PROGRAM_TEST='echo "$SW" | grep... (3 Replies)
Discussion started by: mikepegg
3 Replies

3. Shell Programming and Scripting

sed edit in place -i issues

Hello, I am attempting to create a command that I can eventually put into a loop so I can edit 1file on many servers. I would like to edit the file in place with sed -i. If not I will take any suggestions on how to use a temp file. I need to remove a email address from the configuration file... (4 Replies)
Discussion started by: abacus
4 Replies

4. Shell Programming and Scripting

Filtering Issues Using sed and awk

Hi, I am currently using the sed and awk commands to filter a file that has multiple sets of data in different columns. An example of part of the file i am filtering is as follows; Sat Oct 2 07:42:45 2010 01:33:46 R1_CAR_12.34 Sun Oct 3 13:09:53 2010 00:02:34 R2_BUS_56.78 Sun... (4 Replies)
Discussion started by: crunchie
4 Replies

5. Shell Programming and Scripting

sed pattern and hold space issues

Good day. Trying to make a sed script to take text file in a certain format and turn it into mostly formatted html. I'm 95% there but this last bit is hurting my head finally. Here's a portion of the text- Budgeting and Debt: Consumer Credit Counseling of Western PA CareerLink 112... (5 Replies)
Discussion started by: fiendracer
5 Replies

6. Homework & Coursework Questions

sed & cut command issues

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: After using the egrep command to pull certain lines from the asg5f1 (creating the asg5f1c file), I am required... (1 Reply)
Discussion started by: robrom78
1 Replies

7. Shell Programming and Scripting

Issues with sed on SunOS

Why does the below command doesnt work fine on SunOS 5.10 $ cat t | AK| | | | | DS | | | | tAR | | | | | FIL | $ sed -e 's/^ *//g' -e 's/ *$//g' -e 's/ *| */|/g' t |AK|||||DS|||| tAR|||||FIL| ##notice before tAR works fine on Linux OR AIX though ... (8 Replies)
Discussion started by: Shivdatta
8 Replies

8. Shell Programming and Scripting

sed special characters issues

I am dusting off the sed cobwebs and had a basic question: I have a file that contains: $firewall = "on"; $cache = "on"; $dataset{'mary had a little lamb'} = "on"; and want to only change the contents of what is between the single quotes: $dataset{'big bad wolf'} = "on"; I... (3 Replies)
Discussion started by: metallica1973
3 Replies

9. Shell Programming and Scripting

Sed: removes \ from text which causes issues

Hi all, Hoping someone hoping someone might be able to help. i've got the following sed command which i'm using in a bash script that i'm trying to use to insert a new line into an already existing file so i don't have to manually enter it when setting stuff up. the existing script test2/3 are... (3 Replies)
Discussion started by: springs2
3 Replies

10. Shell Programming and Scripting

Issues with using sed with word delimiters \< and \>

sed is not applying /d "delete line" option when I also include match word options \< and \> examples... echo cat | sed '/\<cat\>/d' will return cat for some reason echo cat | sed "/\<cat\>/d" will also still return cat. Of course I can just run this... echo cat | sed '/cat/d' and... (1 Reply)
Discussion started by: escooter87
1 Replies
ff_vxfs(1M)															       ff_vxfs(1M)

NAME
ff_vxfs: ff - fast find: list file names and statistics for a VxFS file system SYNOPSIS
num] num] inode-list] num] file] prefix] special... DESCRIPTION
reads the inode list and directories of each special file, assuming it to be a VxFS file system, and prints inode data for files that match the selection criteria. Output consists of the pathname for each saved inode, plus any other file information requested using the print options below. Output fields are positional. The output is produced in inode order; fields are separated by tabs. The default line pro- duced by is: pathname inumber The pathname is preceded by a dot unless you specify the generic option. The maximum information displays is: pathname inumber size owner The num parameter in the options descriptions is a decimal number, where means more than num days, means less than num days, and num means exactly num days. A day is defined as a 24-hour period. prints summary information to standard error output in addition to the report sent to standard output. Options recognizes the following options: Select a file if the inode has been accessed in num days. Select a file if the inode has been changed in num days. Specify the VxFS file system type. Generate names for any inodes specified in the inode-list. Do not display the inode number after each pathname. Generate a list of all pathnames for files with more than one link. Select a file associated with the inode if it has been modified in num days. Select a file associated with an inode if it has been modified more recently than the specified file. Add the specified prefix to each pathname. The default prefix is dot Print only special files and files with set-user-ID mode (VxFS-specific option). Write the file size, in bytes, after each pathname. Write the owner's login name after each pathname. Echo the completed command line, but performs no other action. The command line is generated by incorporating the user specified options and other information derived from This option allows the user to verify the command line. Operands recognizes the following operand: special Name of a VxFS file system. EXAMPLES
List the pathnames and inumbers of all files in the file system Same as above, but suppress the printing of inumbers: List files on the same file system that have been modified in the last two days displaying the pathname, inumber, and owner's user name List all files on the same file system, including the pathname and inumber of each file, that were last accessed more than 30 days ago Find all pathnames associated with inodes and Execute the command on a VxFS file system FILES
Static information about the file systems. SEE ALSO
find(1), ff(1M), ncheck_vxfs(1M), fstab(4). ff_vxfs(1M)
All times are GMT -4. The time now is 08:28 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy