Sponsored Content
Top Forums Shell Programming and Scripting One line to copy to do a rootfs Post 302748345 by rdrtx1 on Tuesday 25th of December 2012 10:27:28 AM
Old 12-25-2012
try:
Code:
for i in /* ; do echo $i | grep -q -E "/bin$|/usr$|/var$|/tmp$|/sys$|/guest_rootfs$" || mv "$i" /guest_rootfs ; done

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl script to search a line and copy it to another line

Hi I have a log file (say log.txt). I have to search for a line which has the string ( say ERROR) in the log file and copy 15 lines after this into another file (say error.txt). Can someone give me the code and this has to be in PERL Thanks in advance Ammu (3 Replies)
Discussion started by: ammu
3 Replies

2. Shell Programming and Scripting

Copy first word of line

Usually I find the answers to my beginner-script-problems here in this forum but this time I had no luck so far...:( I want to modify a Japanese vocabulary file to import it into granule. Every line looks like this: I would like to have it like this: The lenght of the words always differ,... (2 Replies)
Discussion started by: shusai
2 Replies

3. UNIX for Dummies Questions & Answers

copy a line from one file to another

I like to know what unix command i can use to append the second line of file #1 to the end of file #2 so that it performs the following. Thanks in advance. The purpose of this is to keep track of another log file (from crontab) that i have which the log content is flushed every 5 minutes so that... (5 Replies)
Discussion started by: shingpui
5 Replies

4. Shell Programming and Scripting

Read and copy xml line by line and preserve tab?

I'm trying to read an xml file and copy it line by line to another file and want to preserve the tabs. What i'm trying to do is if I get to a certain line in the xml, I'm going to check to see if the next line is specifically what I want. If it's not, then I want to insert a single line of text... (4 Replies)
Discussion started by: DeuceLee
4 Replies

5. UNIX for Dummies Questions & Answers

rootfs query

Hi Guys actually I have installed the library of qt on my desktop with the help of a blog and after the installation the following thing is written in the blog , which I didn't mean , so please help me out of it. the code is: Build filesystem, copy necessary Qt libraries to the filesystem... (1 Reply)
Discussion started by: piyush011
1 Replies

6. Shell Programming and Scripting

Copy a field into n line in another place

I have a file contains 100 section (here i show 2 section of that); i want to replace date from 1st & 2nd field of 1st line of each section (1st line of each section is header and the other lines are body) and merg them into one field, then copy it on 7th field of the lines in each section... (17 Replies)
Discussion started by: oreka18
17 Replies

7. UNIX for Dummies Questions & Answers

vim copy line and paste at the beginning, middle, and end of another line

How would you do vim copy line and paste at the beginning, middle, and end of another line. I know yy copies the whole line and p pastes the whole line, but on its own separate line. Sometimes I would like to copy a line to the beginning, middle, or end of another line. I would think this would be... (3 Replies)
Discussion started by: cokedude
3 Replies

8. Red Hat

where to get redhat's guest's rootfs image

Hi experts I can't find a redhat's rootfs image for guest, where can find it Lei (2 Replies)
Discussion started by: yanglei_fage
2 Replies

9. Shell Programming and Scripting

Copy some line and paste it after some line in same file

Hi, I want to know how I can copy line 6th to 10th and paste it after 17th line in same file. Thanks, Biplab (19 Replies)
Discussion started by: Biplab
19 Replies

10. Shell Programming and Scripting

Copy Column Value Of Next Line Into Current Line

Hello All, I am looking for help to achieve the following: Here is the data set 1757890237|42|55570025|1468796400|0 1757890237|32|55570025|1471474800|0 1757890237|54|55570025|1474153200|1476745200 1757890237|34|55570026|1468796400|0 1757890237|44|55570026|1471474800|0... (7 Replies)
Discussion started by: angshuman
7 Replies
NAMESPACE(4)						     Kernel Interfaces Manual						      NAMESPACE(4)

NAME
namespace - structure of conventional file name space SYNOPSIS
none DESCRIPTION
After a user's profile has run, the file name space should adhere to a number of conventions if the system is to behave normally. This manual page documents those conventions by traversing the file hierarchy and describing the points of interest. It also serves as a guide to where things reside in the file system proper. The traversal is far from exhaustive. First, here is the appearance of the file server as it appears before any mounts or bindings. / The root directory. /adm The administration directory for the file server. /adm/users List of users known to the file server; see users(6). /adm/keys Authentication keys for users. /adm/netkeys SecureNet keys for users; see securenet(8). /adm/timezone Directory of timezone files; see ctime(2). /adm/timezone/EST.EDT Time zone description for Eastern Time. Other such files are in this directory too. /adm/timezone/timezone Time zone description for the local time zone; a copy of one of the other files in this directory. /bin /dev /env /fd /net /proc /srv /tmp All empty unwritable directories, place holders for mounted services and directories. /mnt A directory containing mount points for applications. /n A directory containing mount points for file trees imported from remote systems. /68020 /386 /sparc /960 /mips Each CPU architecture supported by Plan 9 has a directory in the root containing architecture-specific files, to be selected accord- ing to $objtype or $cputype (see 2c(1) and init(8)). Here we list only those for /mips. /mips/init The initialization program used during bootstrapping; see init(8). /mips/bin Directory containing binaries for the MIPS architecture. /mips/bin/aux /mips/bin/games etc. Subdirectories of /mips/bin containing auxiliary tools and collecting related programs. /mips/lib Directory of object code libraries as used by vl (see 2l(1)). /mips/include Directory of MIPS-specific C include files. /mips/9* The files in /mips beginning with a 9 are binaries of the operating system. /mips/mkfile Selected by mk(1) when $objtype is mips, this file configures mk to compile for the MIPS architecture. /rc Isomorphic to the architecture-dependent directories, this holds executables and libraries for the shell, rc(1). /rc/bin Directory of shell executable files. /rc/lib Directory of shell libraries. /rc/lib/rcmain Startup code for rc(1). /lib Collections of data, generally not parts of programs. /lib/bible The King James edition /lib/chess /lib/sky etc. Databases. /lib/ndb The network database used by the networking software; see ndb(6) and ndb(8). /lib/namespace The file used by newns (see auth(2)) to establish the default name space; see namespace(6). /lib/font/bit Bitmap font files. /lib/font/hershey Vector font files. /sys System software. /sys/include Directory of machine-independent C include files. /sys/include/alef Directory of ALEF include files. /sys/lib Pieces of programs not easily held in the various bins. /sys/lib/acid Directory of acid(1) load modules. /sys/lib/troff Directory of troff(1) font tables and macros. /sys/lib/yaccpar The yacc(1) parser. /sys/man The manual. /sys/doc Other system documentation. /sys/log Log files created by various system services. /sys/src Top-level directory of system sources. /sys/src/cmd Source to the commands in the bin directories. /sys/src/9 Source to the operating system for terminals and CPU servers. /sys/src/fs Source to the operating system for file servers. /sys/src/lib* Source to the libraries. /sys/src/alef Source for ALEF compilers and libraries. /sys/src/alef/lib Source for ALEF libraries. /mail Directory of electronic mail; see mail(1). /mail/box Directory of users' mail box files. /mail/lib Directory of alias files, etc. /acme Directory of tools for acme(1). /cron Directory of files for cron(8). The following files and directories are modified in the standard name space, as defined by /lib/namespace (see namespace(6)). / The root of the name space. It is a kernel device, root(3), serving a number of local mount points such as /bin and /dev as well as the bootstrap program /boot. Unioned with / is the root of the main file server. /boot Compiled into the operating system kernel, this file establishes the connection to the main file server and starts init; see boot(8) and init(8). /bin Mounted here is a union directory composed of /$objtype/bin, /rc/bin, $home/$objtype/bin, etc., so /bin is always the directory con- taining the appropriate executables for the current architecture. /dev Mounted here is a union directory containing I/O devices such as the console (cons(3)), the bitmap display (bit(3)), etc. The win- dow system, 81/2(1), prefixes this directory with its own version, overriding many device files with its own, multiplexed simula- tions of them. /env Mounted here is the environment device, env(3), which holds environment variables such as $cputype. /net Mounted here is a union directory formed of all the network devices available. /net/cs The communications point for the connection server, ndb/cs (see ndb(8)). /net/il /net/tcp /net/udp Directories holding the IP protocol devices (see ip(3)). /net/dk A directory holding the Datakit protocol devices (see dk(3)). /proc Mounted here is the process device, proc(3), which provides debugging access to active processes. /fd Mounted here is the dup device, dup(3), which holds pseudonyms for open file descriptors. /srv Mounted here is the service registry, srv(3), which holds connections to file servers. /srv/boot The communication channel to the main file server for the machine. /mnt/81/2 Mount point for the window system. /mnt/term Mount point for the terminal's name space as seen by the CPU server after a cpu(1) command. /n/kremvax A place where machine kremvax's name space may be mounted. /tmp Mounted here is each user's private tmp, $home/tmp. SEE ALSO
intro(1), namespace(6) NAMESPACE(4)
All times are GMT -4. The time now is 06:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy