Sponsored Content
Full Discussion: file management in C shell
Top Forums Programming file management in C shell Post 14094 by thehoghunter on Monday 28th of January 2002 09:43:44 AM
Old 01-28-2002
Do the command man cp. This will give you information on coping files. Then read the SEE ALSO portion - these are commands that also deal with the type of information you are looking for. If you don't know a command, this is one way to find others to learn about. A script is just like using a command manually. Just that you type it in once and can use it over and over.

Instead of
% ls -1

#!/bin/csh -f
set myfile=/tmp/lsfile.txt
ls -1 > $myfile
more $myfile

Or however you want to do things. You will be better off learning/ running either sh or ksh if you are a SysAdmin as the startup scripts on UNIX has to be done in sh (to a certain point). Since it is something to know, learn them first then take on csh (IMHO).
thehoghunter
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

file management in unix

hello In unix system, is there any file management like Window Explorer in Windows system. If it has, what is different between them. Could you please help because I do not have any idea about UNIX thank you john (5 Replies)
Discussion started by: johnhelen
5 Replies

2. Windows & DOS: Issues & Discussions

file management in windows 2000 server

i am using windows 2000 server. my query is as follows: there are 2 directories say c:\emp & c:\exe. DataBase (DB) files are there in emp folder and the executables are in exe folder. Now i want to share the exe folder to the clients. If i give read permission to the exe folder and no... (3 Replies)
Discussion started by: raguramtgr
3 Replies

3. UNIX for Dummies Questions & Answers

FILE MANAGEMENT in WINDOWS & UNIX

Hi, I am a new member here. I am in my final year of engineering in Computer & Information Systems. Wanted to know, how file management is done in both windows and unix. Kindly, tell me anyone who knows it in detail, or has any links regarding it. Thanks (1 Reply)
Discussion started by: farazcis
1 Replies

4. UNIX for Dummies Questions & Answers

File management based on date created

Hi There, I was wondering how to manage files (ie. rm, cp , mv) based on date last modified and date created. ie. Say i want to: mv ./* ./temp/* (where the date created < 29/1/2006 ) or mv ./* ./temp/* (where the date modified > 27/1/2006 && date modified < 29/1/2006) Thanks in... (1 Reply)
Discussion started by: Geehog_Rare
1 Replies

5. Programming

how to run socket programme and file management concurrently

hi i have a server socket programme which is running in HP/UX system and then need to add a function about refreshing memory every miniute because the socket programme is blocked , i have no idea about this what should i do thanks (10 Replies)
Discussion started by: benbenpig
10 Replies

6. Shell Programming and Scripting

Shell Scripted Document Management System

Over the past 4 -5 years, I have cobbled together a rudimentary 'Document Management System' for a school district I support using Linux Bash Shell scripts.. The purpose of the scripting was to supplement features of a Job Applicant Center that had very simplistic methods of handle file... (1 Reply)
Discussion started by: rmuledeer
1 Replies

7. UNIX for Dummies Questions & Answers

Hard disk and file management?

Dear experts, I have to write a small project named "Hard disk management and file management in Unix/Linux". I have absolutely NO idea about what Unix/Linux is, except that it is operational system. My question to you is: Whats is the difference between Unix and Linux and since the title of my... (3 Replies)
Discussion started by: makara
3 Replies

8. What is on Your Mind?

Individual Risk Management (Personal IT Security) and Browser Cache Management

Original post from this thread on browser caching. To add to this, it is an effective security measure to clear absolutely all cached data (cookies, web content, ....) when closing the browser - i.e. in case of a shutdown. It takes a bit of work to re-login to all the sites but websites will not... (7 Replies)
Discussion started by: bakunin
7 Replies

9. UNIX for Beginners Questions & Answers

File Management: Removing of files from Server2 IF the same file is removed from Server1.

Hi Folks, I have a requirement of file management on different servers. Source Server is SERVER-A. Two servers will fetch files from SERVER-A: SERVER1 and SERVER2. 4th SERVER is SERVER-B, It will fetch files from SERVER1. If SERVER1 goes DOWN, SERVER-B will fetch pending files from... (2 Replies)
Discussion started by: Raza Ali
2 Replies
CHSH(1)                                                            User Commands                                                           CHSH(1)

NAME
chsh - change login shell SYNOPSIS
chsh [options] [LOGIN] DESCRIPTION
The chsh command changes the user login shell. This determines the name of the user's initial login command. A normal user may only change the login shell for her own account; the superuser may change the login shell for any account. OPTIONS
The options which apply to the chsh command are: -h, --help Display help message and exit. -R, --root CHROOT_DIR Apply changes in the CHROOT_DIR directory and use the configuration files from the CHROOT_DIR directory. -s, --shell SHELL The name of the user's new login shell. Setting this field to blank causes the system to select the default login shell. If the -s option is not selected, chsh operates in an interactive fashion, prompting the user with the current login shell. Enter the new value to change the shell, or leave the line blank to use the current one. The current shell is displayed between a pair of [ ] marks. NOTE
The only restriction placed on the login shell is that the command name must be listed in /etc/shells, unless the invoker is the superuser, and then any value may be added. An account with a restricted login shell may not change her login shell. For this reason, placing /bin/rsh in /etc/shells is discouraged since accidentally changing to a restricted shell would prevent the user from ever changing her login shell back to its original value. FILES
/etc/passwd User account information. /etc/shells List of valid login shells. /etc/login.defs Shadow password suite configuration. SEE ALSO
chfn(1), login.defs(5), passwd(5). shadow-utils 4.5 01/25/2018 CHSH(1)
All times are GMT -4. The time now is 07:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy