Sponsored Content
Top Forums Shell Programming and Scripting My first script of day, it looks easy, but... Post 302263580 by trutoman on Tuesday 2nd of December 2008 02:14:22 AM
Old 12-02-2008
Thx all, me too hate for-loops
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Easy script

Hi there, Could you please help me with that ? I want to grep a specific string in an .xml file and then rename the file according to the string I found. How can I do that for many files. Because all the files have similar names but different time stamps I want to name them so it's easy to... (8 Replies)
Discussion started by: guest100
8 Replies

2. Shell Programming and Scripting

Write a shell script to find whether the first day of the month is a working day

Hi , I am relatively new to unix... Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell.. This is very urgent. Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies

3. Shell Programming and Scripting

easy script

a script, cheer that prints its parameter as shown in the example below. eg: $ cheer U N I X Give me a U! U! Give me a N! N! Give me a I! I! Give me a X! X! #!/bin/sh for letter do echo "Give me a $letter!";echo "$letter!" done this is the code i used for the above script (2 Replies)
Discussion started by: problems
2 Replies

4. Shell Programming and Scripting

Help with an 'easy' script

Hello guys, I need some help to solve a little problem that I have here: I have a big file with almost 100.000 lines of data, here is an example of line: 100099C01101C00000000059399489283CREMOVISTAR_TX 010001C00000000000099069799MOVISTAR_Tx ... (7 Replies)
Discussion started by: lestat_ecuador
7 Replies

5. UNIX for Dummies Questions & Answers

Help with an 'easy' script

Hello guys, Forgive me if I duplicate the post but i think i make a mistake choosing the correct forum. I need some help to solve a little problem, I have a big file with almost 100.000 lines of data, here is an example of line: 100099C01101C00000000059399489283CREMOVISTAR_TX ... (3 Replies)
Discussion started by: lestat_ecuador
3 Replies

6. UNIX for Dummies Questions & Answers

Need help on installing an EASY to use and easy to install command line text editor

Hi again. Sorry if it seems like I'm spamming the boards a bit, but I figured I might as well ask all the questions I need answers to at once, and hopefully at least get some. I have installed Solaris 10 on a server. The default text editors are there (vi, ex, ed, maybe others, I know emacs is... (4 Replies)
Discussion started by: EugeneG
4 Replies

7. Shell Programming and Scripting

Easy Checkup Script

Hi, I am planning the following to do. On my linux system I've got different users in the /home/ directory. These users have file limitations. So every user below the /home/ directory should get a text file in a seperate folder /home/$user/files/ which tells him how many files he is already... (2 Replies)
Discussion started by: crusher
2 Replies

8. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

Hi All, I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this. My Requirment is as below: Input for me will be 2000909(YYYYMM) I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies

9. Shell Programming and Scripting

Script to check if last modified day is previous day

Hi, I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it. For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
1 Replies

10. Shell Programming and Scripting

Easy script

Write a script, which of the directory including sources of kernel, choose files with sources in C (files with .c extension), including in name "io" with dirvers (located in random subdirectory drivers) and place their content in file FILE. (to 20 lines). Could someone help me with this task?... (1 Reply)
Discussion started by: Czabi
1 Replies
XCLIP(1)						      General Commands Manual							  XCLIP(1)

NAME
xclip - command line interface to X selections (clipboard) SYNOPSIS
xclip [OPTION] [FILE]... DESCRIPTION
Reads from standard in, or from one or more files, and makes the data available as an X selection for pasting into X applications. Prints current X selection to standard out. -i, -in read text into X selection from standard input or files (default) -o, -out print the selection to standard out (generally for piping to a file or program) -f, -filter when xclip is invoked in the in mode with output level set to silent (the defaults), the filter option will cause xclip to print the text piped to standard in back to standard out unmodified -l, -loops number of X selection requests (pastes into X applications) to wait for before exiting, with a value of 0 (default) causing xclip to wait for an unlimited number of requests until another application (possibly another invocation of xclip) takes ownership of the selection -t, -target specify a particular data format using the given target atom. With -o the special target atom name "TARGETS" can be used to get a list of valid target atoms for this selection. For more information about target atoms refer to ICCCM section 2.6.2 -d, -display X display to use (e.g. "localhost:0"), xclip defaults to the value in $DISPLAY if this option is omitted -h, -help show quick summary of options -selection specify which X selection to use, options are "primary" to use XA_PRIMARY (default), "secondary" for XA_SECONDARY or "clipboard" for XA_CLIPBOARD -version show version information -silent fork into the background to wait for requests, no informational output, errors only (default) -quiet show informational messages on the terminal and run in the foreground -verbose provide a running commentary of what xclip is doing -noutf8 operate in legacy (i.e. non UTF-8) mode for backwards compatibility (Use this option only when really necessary, as the old behavior was broken) xclip reads text from standard in or files and makes it available to other X applications for pasting as an X selection (traditionally with the middle mouse button). It reads from all files specified, or from standard in if no files are specified. xclip can also print the con- tents of a selection to standard out with the -o option. xclip was designed to allow tighter integration of X applications and command line programs. The default action is to silently wait in the background for X selection requests (pastes) until another X application places data in the clipboard, at which point xclip exits silently. You can use the -verbose option to see if and when xclip actually receives selection requests from other X applications. Options can be abbreviated as long as they remain unambiguous. For example, it is possible to use -d or -disp instead of -display. However, -v couldn't be used because it is ambiguous (it could be short for -verbose or -version), so it would be interpreted as a filename. Note that only the first character of the selection specified with the -selection option is important. This means that "p", "sec" and "clip" would have the same effect as using "primary", "secondary" or "clipboard" respectively. EXAMPLES
I hate man pages without examples! uptime | xclip Put your uptime in the X selection. Then middle click in an X application to paste. xclip -loops 10 -verbose /etc/motd Exit after /etc/motd (message of the day) has been pasted 10 times. Show how many selection requests (pastes) have been processed. xclip -o > helloworld.c Put the contents of the selection into a file. xclip -t text/html index.html Middle click in an X application supporting HTML to paste the contents of the given file as HTML. ENVIRONMENT
DISPLAY X display to use if none is specified with the -display option. REPORTING BUGS
Please report any bugs, problems, queries, experiences, etc. directly to the author. AUTHORS
Kim Saunders <kims@debian.org> Peter Astrand <astrand@lysator.liu.se> XCLIP(1)
All times are GMT -4. The time now is 04:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy